MEMFLUSH(1)
π MEMFLUSH β the libmemcached glow-up
okay bestie, so this is memflush, and it lives in the libmemcached-awesome family (the manual is literally MEMFLUSH(1), yes we're fancy). Buckle up π
β¨ SYNOPSIS β¨
memflush [options]
Reset a server or list of servers π₯
πΈ DESCRIPTION πΈ
memflush resets the contents of memcached(1) servers. Here's the link if you wanna go read it yourself: <https://linux.die.net/man/1/memcached> π¦
β οΈ Warning: This means that all data in the specified servers will be deleted. Like, gone-gone. Not me nuking your whole cache π
π OPTIONS π
-h,--helpβ Display help. Your girl's got you π«Ά-V,--versionβ Display version. Iconic.-q,--quietβ Operate quietly. shhh π€«-v,--verboseβ Operate more verbosely. Tell me everything, I'm nosy π-d,--debugβ See-v|--verbose. Same energy, different flag.-s,--servers <list of servers>β Specify the list of servers ashostname[:port][,hostname[:port]...]. Comma-separated, port optional, yes you can list a whole squad π-n,--non-blockingβ Enable non-blocking operations. No waiting around, periodt.-N,--tcp-nodelayβ Disable Nagle's algorithm. Immediate vibes only β¨-b,--binaryβ Enable binary protocol. Fancy mode.-B,--bufferβ Buffer requests. Stockpile those little guys.-u,--username <username>β Use username for SASL authentication.-p,--password <password>β Use password for SASL authentication. (with-u, obvi, that's the whole point)-e,--expire <expiration>β Use expiration seconds (or a UNIX timestamp). Now THIS one needs a whole yap session π
π Note: Using an expiration time (period), all keys, which have not bean updated until expiration will cease to exist. Quoting the memcached protocol documentation β <https://github.com/memcached/memcached/blob/master/doc/protocol.txt> β 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).
π± ENVIRONMENT π±
MEMCACHED_SERVERSβ Specify a list of servers. Yes, the env var girlies get a say too π
π§ NOTES π§
PROGRAM PREFIX
The prefix of this program is variable, i.e. it can be configured at build time. lowkey customizable fr fr.
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 cute, a whole rebrand π
π SEE ALSO π
memcached(1) <https://linux.die.net/man/1/memcached> β libmemcached(3) <https://linux.die.net/man/3/libmemcached>
- C/C++ Client Library for memcached <>
- Wiping clean the contents of a server <>
okay pookie that's the whole page, version 1.1, dated Jul 24, 2026, brought to you by libmemcached-awesome π go forth and flush responsibly, and remember: flushing is forever β¨ππ
π¦ where this page comes from
- ubuntu stonking: libmemcached-tools 1.1.4-1.2build1 Β· BSD-3-clause-TangentOrg
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms