Memcac...ersion(3pm)
π memcached_lib_version, memcached_version β Get library version π
okay bestie, so this page is Memcac...ersion(3pm) and it lives in the User Contributed Perl Documentation section of your man pages. It's a lil' baby page but it's doing important work: it's literally just "what version are we running??" energy. Two functions, both about versions, both slaying. β¨
π LIBRARY π
C Client Library for memcached (libmemcached, -lmemcached) β that's the one, that's the girl π
π SYNOPSIS π
#include <memcached.h>
const char *
memcached_lib_version (void)
memcached_return_t
memcached_version (memcached_st *ptr)
β¨ DESCRIPTION β¨
okay so there's two of them and they are NOT the same thing, don't get it twisted π«Ά
memcached_lib_version() hands you back a simple version string representing the libmemcached version. and like, read this part carefully bestie β it's the version of the client library, not the server. client. not server. the client. okay good. π
memcached_version() is the other one. it sets the major, minor, and micro versions of each memcached server being used by the memcached_st connection structure. every server, not just one, they all get their versions set. and it returns the memcached server return code, obviously. π
β RETURN β
memcached_lib_version() returns a string with the version of the libmemcached driver. just a string. that's it. iconic of it tbh π
memcached_version() returns a value of type memcached_return_t. on success that value will be MEMCACHED_SUCCESS. π
but no cap, watch out: if you called it with theMEMCACHED_BEHAVIOR_USE_UDPbehavior set, then you getMEMCACHED_NOT_SUPPORTEDinstead. UDP said "not today." π
and if you want that return value to actually be readable by a human, use memcached_strerror() to translate it into a printable string. it's giving translator bestie, we love her π§
π¦ HOME π¦
if you wanna know more (and you should, nosy queen π) please check:
<https://launchpad.net/libmemcached>
π AUTHOR π
Brian Aker, <brian@tangent.org> β thank you for your service king π«‘π
πΈ SEE ALSO πΈ
and that's the whole page bestie, go check your versions, you got this π β¨
kisses, this was perl v5.42.3, dated 2026-08-19, filed under Memcac...ersion(3pm) β mwah ππ¦π
π¦ 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