logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

memcached_user_data - libmemcached Documentation

Description

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.

Name

memcached_user_data - libmemcached Documentation

Return Value

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.

See Also

memcached(1)libmemcached(3) 1.1 Mar 31, 2024 MEMCACHED_USER_DATA(3)

Synopsis

#include<libmemcached/memcached.h> Compile and link with -lmemcached void*memcached_get_user_data(memcached_st*ptr)Parametersptr -- pointer to initialized memcached_st struct Returns opaque pointer to the user supplied data void*memcached_set_user_data(memcached_st*ptr,void*data)Parametersptr -- pointer to initialized memcached_st struct • data -- opaque pointer to user supplied data Returns opaque pointer to the previously set data

See Also