DOKK / manpages / debian 12 / libmemcached-dev / memcached_get_user_data.3.en
MEMCACHED_GET_USER_DATA(3) libmemcached-awesome MEMCACHED_GET_USER_DATA(3)

memcached_get_user_data - libmemcached Documentation

#include <libmemcached/memcached.h>
Compile and link with -lmemcached

ptr -- pointer to initialized memcached_st struct
opaque pointer to the user supplied data


  • ptr -- pointer to initialized memcached_st struct
  • data -- opaque pointer to user supplied data

opaque pointer to the previously set data


libmemcached allows you to store a pointer to a user specific data inside the memcached_st structure.

memcached_set_user_data() is used to set the user specific data in the memcached_st structure.

memcached_get_user_data() is used to retrieve the user specific data in the memcached_st structure.

memcached_set_user_data() returns the previous value of the user specific data.

memcached_get_user_data() returns the current value of the user specific data.

memcached(1) libmemcached(3)

March 6, 2023 1.1