MEMCACHED_GET_USER_DATA(3)
β¨ MEMCACHED_GET_USER_DATA β¨
okay so bestie, welcome to the libmemcached-awesome corner of the man pages π this one is all about memcached_get_user_data β like, the little pocket in your memcached_st where you can stash a pointer to literally whatever your heart desires. no cap, it's the cutest lil storage feature. πΈ
π NAME π
memcached_get_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 π
okay so here's the tea β β libmemcached lets you store a pointer to user specific data right inside the memcached_st structure. it's giving "your stuff, your rules" energy. π«Ά
memcached_set_user_data() is the one you call to set that user specific data in the memcached_st structure. you're putting the thing in the pocket. π
memcached_get_user_data() is the one you call to retrieve the user specific data in the memcached_st structure. you're reaching into the pocket and pulling the thing back out. β¨
π RETURN VALUE π
memcached_set_user_data() returns the previous value of the user specific data. like, it hands you back whatever was already chillin' in there before you swapped it out. π
memcached_get_user_data() returns the current value of the user specific data. the now. the present. the main character pointer. π
π SEE ALSO π
and that's a wrap, bestie!! π this was version 1.1, dated Jul 24, 2025 β slay, iconic, periodt. go forth and stash those pointers. ππ¦β¨
π¦ 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