MEMCACHED_USER_DATA(3)
π MEMCACHED_USER_DATA π
okay so bestie, this is the memcached_user_data page from libmemcached β you know, the C library that talks to memcached π«Ά. It lives in libmemcached-awesome and it's literally about stashing your pointer inside their struct. iconic behaviour honestly.
β¨ NAME β¨
memcached_user_data β libmemcached Documentation π
πΈ SYNOPSIS πΈ
#include <libmemcached/memcached.h>
Compile and link with -lmemcached
void *memcached_get_user_data(memcached_st *ptr)
Parameters
ptrβ pointer to initializedmemcached_ststruct
Returns
- opaque pointer to the user supplied data
void *memcached_set_user_data(memcached_st *ptr, void *data)
Parameters
ptrβ pointer to initializedmemcached_ststructdataβ opaque pointer to user supplied data
Returns
- opaque pointer to the previously set data
π¦ DESCRIPTION π¦
so here's the tea π β libmemcached lets you store a pointer to your own user specific data right inside the memcached_st structure. like, it's your little corner of the struct, your locker, your emotional support pointer. no cap. π
memcached_set_user_data() is the one you call to set the user specific data in the memcached_st structure. that's it. that's the job.
memcached_get_user_data() is the one you call to retrieve the user specific data from the memcached_st structure. the way these two are literally a matched set ππ«Ά
π RETURN VALUE π
memcached_set_user_data() returns the previous value of the user specific data. yes bestie, it hands you back the old one β lowkey thoughtful.
memcached_get_user_data() returns the current value of the user specific data. as it should. β
π SEE ALSO π
and that's the whole page, fr fr π this was version 1.1, dated Jul 24, 2025, from the libmemcached-awesome girlies β ty for coming to my ted talk, mwah πβ¨
π¦ 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