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