1 ==============================================
2 Storing custom user information in the client.
3 ==============================================
5 .. index:: object: memcached_st
7 Manage user specific data
13 C Client Library for memcached (libmemcached, -lmemcached)
19 #include <libmemcached/memcached.h>
21 .. function:: void *memcached_get_user_data (memcached_st *ptr)
23 .. function:: void *memcached_set_user_data (memcached_st *ptr, void *data)
25 Compile and link with -lmemcached
31 libmemcached(3) allows you to store a pointer to a user specific data inside
32 the memcached_st structure.
34 :func:`memcached_set_user_data` is used to set the user specific data in the
35 :type:`memcached_st` structure.
37 :func:`memcached_get_user_data` is used to retrieve the user specific data in the :type:`memcached_st` structure.
43 :func:`memcached_set_user_data` returns the previous value of the user specific data.
45 :func:`memcached_get_user_data` returns the current value uf the user specific data.
53 :manpage:`memcached(1)` :manpage:`libmemcached(3)`