1 ==============================================
2 Storing custom user information in the client.
3 ==============================================
5 .. index:: object: memcached_st
7 Manage user specific data
15 C Client Library for memcached (libmemcached, -lmemcached)
26 #include <libmemcached/memcached.h>
28 .. c:function:: void *memcached_get_user_data (memcached_st *ptr)
30 .. c:function:: void *memcached_set_user_data (memcached_st *ptr, void *data)
32 Compile and link with -lmemcached
41 libmemcached(3) allows you to store a pointer to a user specific data inside
42 the memcached_st structure.
44 :c:func:`memcached_set_user_data` is used to set the user specific data in the
45 :c:type:`memcached_st` structure.
47 :c:func:`memcached_get_user_data` is used to retrieve the user specific data in the :c:type:`memcached_st` structure.
55 :c:func:`memcached_set_user_data` returns the previous value of the user specific data.
57 :c:func:`memcached_get_user_data` returns the current value uf the user specific data.
65 To find out more information please check:
66 `http://libmemcached.org/ <http://libmemcached.org/>`_
74 :manpage:`memcached(1)` :manpage:`libmemcached(3)`