Memcac..._flush(3pm)
π NAME π
memcached_flush β bestie, this one wipes the contents of your memcached servers. Like, all of it. Gone. Slay, but also be careful β¨
π LIBRARY π
C Client Library for memcached (libmemcached, -lmemcached) π
πΈ SYNOPSIS πΈ
#include <memcached.h>
memcached_return_t
memcached_flush (memcached_st *ptr,
time_t expiration);
β¨ DESCRIPTION β¨
okay so memcached_flush() is the "clean slate" button π§Ήβ¨ It wipes clean the contents of your memcached(1) servers.
It's gonna do one of two things:
- wipe everything immediately, or
- expire the content based on the expiration time you hand to the method
and like, heads up: a value of zero causes an immediate flush. zero = right now, no waiting, periodt π
β οΈ the operation is not atomic to multiple servers β it's only atomic to a single server. so it will flush the servers in the order that they were added. one at a time, bestie, in the order they showed up π
π₯ RETURN π₯
A value of type memcached_return_t is returned. On success, that value will be MEMCACHED_SUCCESS π
Use memcached_strerror() to translate this value into a printable string, iykyk π
π HOME π
wanna find out more? go check it out here:
<https://launchpad.net/libmemcached>
π AUTHOR π
Brian Aker, <brian@tangent.org>
π¦ SEE ALSO π¦
and that's the whole vibe, bestie π«Ά this was documented for perl v5.42.3 and dated 2026-08-19. go forth and flush responsibly πβπ
π¦ where this page comes from
- ubuntu stonking: libmemcached-libmemcached-perl 1.001801+dfsg-6build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms