Memcac...r_data(3pm)
π NAME
memcached_set_user_data, memcached_get_user_data β bestie, this is how you stash your own lil data inside a memcached struct π
π LIBRARY
C Client Library for memcached (libmemcached, -lmemcached) β yes queen, that's the one you link against π
β¨ SYNOPSIS
#include <memcached.h>
void *memcached_get_user_data (memcached_st *ptr);
void *memcached_set_user_data (memcached_st *ptr, void *data);
π DESCRIPTION
okay so libmemcached(3) is out here letting you tuck a pointer to your very own user specific data inside the memcached_st structure. it's giving "sneak your stuff into the struct" and honestly? iconic.
memcached_set_user_data()β this is the one that sets the user specific data in thememcached_ststructure. put your lil pointer in, it lives there now π«Άmemcached_get_user_data()β and this one retrieves the user specific data that's chilling in thememcached_ststructure. get your pointer back, no cap β¨
π₯ RETURN
memcached_set_user_data()hands you back the previous value of the user specific data. like, the old one, before you replaced it. swoop it up if you want it π¦memcached_get_user_data()hands you back the current value uf the user specific data. (that's a typo for "of" in the original, i'm just keeping it real, bestie π)
π HOME
To find out more information please check:
https://launchpad.net/libmemcached
go read, it's literally right there π
πΈ AUTHOR
Trond Norbye, <trond.norbye@gmail.com> β thank you for your service, king π
π SEE ALSO
that's the whole vibe check, bestie π this was Memcac...r_data(3pm) from the User Contributed Perl Documentation β perl v5.42.3, dated 2026-08-19. periodt β¨π
π¦ 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