diff options
author | Continuous Integration <ci@tangent.org> | 2014-02-16 03:31:37 -0800 |
---|---|---|
committer | Continuous Integration <ci@tangent.org> | 2014-02-16 03:31:37 -0800 |
commit | b163cbc1e82ea834b66e3b4c1e8070394ccb506d (patch) | |
tree | 999734df2e2c288d6726af31f9336beadb2a781a /docs/source/memcached_user_data.rst | |
parent | 8541a9863cffad457f4d583af6a6c3613250193d (diff) | |
parent | 37deb7fa75a0b3fbea4d58c032446213f0d5a02a (diff) | |
download | libmemcached-trunk.tar.gz |
Diffstat (limited to 'docs/source/memcached_user_data.rst')
-rw-r--r-- | docs/source/memcached_user_data.rst | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/docs/source/memcached_user_data.rst b/docs/source/memcached_user_data.rst new file mode 100644 index 00000000..a0bc602b --- /dev/null +++ b/docs/source/memcached_user_data.rst @@ -0,0 +1,75 @@ +============================================== +Storing custom user information in the client. +============================================== + +.. index:: object: memcached_st + +Manage user specific data + + +------- +LIBRARY +------- + + +C Client Library for memcached (libmemcached, -lmemcached) + + +-------- +SYNOPSIS +-------- + + + +.. code-block:: c + +#include <libmemcached/memcached.h> + +.. c:function:: void *memcached_get_user_data (memcached_st *ptr) + +.. c:function:: void *memcached_set_user_data (memcached_st *ptr, void *data) + +Compile and link with -lmemcached + + + +----------- +DESCRIPTION +----------- + + +libmemcached(3) allows you to store a pointer to a user specific data inside +the memcached_st structure. + +:c:func:`memcached_set_user_data` is used to set the user specific data in the +:c:type:`memcached_st` structure. + +:c:func:`memcached_get_user_data` is used to retrieve the user specific data in the :c:type:`memcached_st` structure. + + +------ +RETURN +------ + + +:c:func:`memcached_set_user_data` returns the previous value of the user specific data. + +:c:func:`memcached_get_user_data` returns the current value uf the user specific data. + + +---- +HOME +---- + + +To find out more information please check: +`http://libmemcached.org/ <http://libmemcached.org/>`_ + + +-------- +SEE ALSO +-------- + + +:manpage:`memcached(1)` :manpage:`libmemcached(3)` + |