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 the memcached_st structure. 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 the memcached_st structure. 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