MEMCACHED_FLUSH(3)
π MEMCACHED_FLUSH(3) π
okay bestie, so this is a page from libmemcached-awesome and it's literally about one function and one function only: memcached_flush. it's giving "small but powerful" energy and we're gonna go through it together, no cap.
β¨ NAME β¨
memcached_flush β libmemcached Documentation
πΈ SYNOPSIS πΈ
#include <libmemcached/memcached.h>
and like, compile and link with -lmemcached obviously π
memcached_return_t memcached_flush(memcached_st *ptr, time_t expiration)
π Parameters π
ptrβ pointer to an initializedmemcached_ststructexpirationβ expiration as a unix timestamp or as relative expiration time in seconds
π«Ά Returns π«Ά
memcached_return_t indicating success
π¦ DESCRIPTION π¦
so memcached_flush() is the "clean slate" button, fr fr. it wipes clean the contents of memcached(1) servers. π§Ήβ¨
the way it works is it'll either do the thing immediately or it'll expire the content based on the expiration time you pass in β and psst, a value of zero causes an immediate flush. zero means NOW, periodt. π₯
β οΈ important bestie: this operation is not atomic to multiple servers, it's just atomic to a single server. that is, it will flush the servers in the order that they were added. so like, don't expect some magical all-at-once group-chat moment across your whole cluster, okay? it's a queue, not a vibe. π
π RETURN VALUE π
a value of type memcached_return_t is returned. on success that value will be MEMCACHED_SUCCESS. π
and if you ever need to turn that number into actual human-readable words, use memcached_strerror() to translate this value to a printable string. she's the interpreter of the group chat, iykyk. π¬
π SEE ALSO π
k that's the whole page, you ate it, go flush responsibly πβ¨πΈπ¦ππ π«Ά
this was libmemcached-awesome version 1.1, dated Jul 24, 2025 β mwah, iconic, no notes. π
π¦ where this page comes from
- fedora 43: libmemcached-awesome-devel 1.1.4-7.fc43 Β· BSD-3-Clause
- fedora 43: libmemcached-awesome-devel 1.1.4-7.fc43 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms