MEMFLUSH(1)
π
MEMFLUSH(1) π
okay so bestie, welcome to memflush from libmemcached-awesome β the manual page for the βnuke it and start freshβ command. itβs giving reset button energy, and yes, itβs iconic, but also please read the warning. π
β¨ NAME β¨
memflush β libmemcached Documentation. thatβs the whole name section, bestie: this is the libmemcached-awesome page for memflush. π
π οΈ SYNOPSIS π οΈ
memflush [options]
Reset a server or list of servers
π DESCRIPTION π
memflush resets the contents of memcached(1) servers.
WARNING: This means that all data in the specified servers will be deleted.
likeβ¦ all of it. gone. no cap. so do a little vibe check before you run this, okay? π«Ά
β¨ OPTIONS β¨
-h,--helpβ Display help. your little βwhat does this do again?β lifeline π-V,--versionβ Display version. cute for checking what youβre working with β¨-q,--quietβ Operate quietly. less yapping, more doing π€«-v,--verboseβ Operate more verbosely. give me all the lore, bestie π-d,--debugβ See-v/--verbose. same energy, literally πͺ-s,--servers <list of servers>β Specify the list of servers ashostname[:port][,hostname[:port]...]. this is where you tell it which servers are catching the reset π-n,--non-blockingβ Enable non-blocking operations.-N,--tcp-nodelayβ Disable Nagleβs algorithm.-b,--binaryβ Enable binary protocol.-B,--bufferβ Buffer requests.-u,--username <username>β Use username for SASL authentication.-p,--password <password>β Use password for SASL authentication.-e,--expire <expiration>β Use expiration seconds (or a UNIX timestamp).
NOTE: Using an expiration time (period), all keys, which have not bean updated until expiration will cease to exist.
and yes, βbeanβ is right there in the original β Iβm not fixing the docβs typo, Iβm just delivering the content, bestie π
Quoting the memcached protocol documentation, it states:
Its effect is to invalidate all existing items immediately (by default) or after the expiration specified. After invalidation none of the items will be returned in response to a retrieval command (unless it's stored again under the same key after flush_all has invalidated the items).
The most precise definition of what flush_all does is the following: it causes all items whose update time is earlier than the time at which flush_all was set to be executed to be ignored for retrieval purposes.
The intent of flush_all with a delay, was that in a setting where you have a pool of memcached servers, and you need to flush all content, you have the option of not resetting all memcached servers at the same time (which could e.g. cause a spike in database load with all clients suddenly needing to recreate content that would otherwise have been found in the memcached daemon).
so yeah β delayed reset is a whole strategy, not just chaos. iykyk πΈ
π ENVIRONMENT π
MEMCACHED_SERVERSβ Specify a list of servers.
π·οΈ NOTES π·οΈ
π PROGRAM PREFIX π
The prefix of this program is variable, i.e. it can be configured at build time.
Usually the client programs of libmemcached-awesome are prefixed with mem, like memcat or memcp.
It can be configured, though, to replace the prefix with something else like mc; in case of that, the client programs of libmemcached-awesome would be called mccat, mccp, etc. respectively.
so if you see mc-something instead of mem-something, donβt panic β thatβs just the build-time glow-up. β¨
π SEE ALSO π
- C/C++ Client Library for memcached
- Wiping clean the contents of a server
xoxo, your libmemcached-awesome bestie π β this page is rockinβ version 1.1, dated Jul 18, 2024. periodt. π
π¦ where this page comes from
- epel 10: libmemcached-awesome-tools 1.1.4-5.el10_0 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms