Update documentation.
[m6w6/libmemcached] / docs / memcached_user_data.rst
1 ==============================================
2 Storing custom user information in the client.
3 ==============================================
4
5 .. index:: object: memcached_st
6
7 Manage user specific data
8
9
10 -------
11 LIBRARY
12 -------
13
14
15 C Client Library for memcached (libmemcached, -lmemcached)
16
17
18 --------
19 SYNOPSIS
20 --------
21
22
23
24 .. code-block:: perl
25
26 #include <libmemcached/memcached.h>
27
28 void *memcached_get_user_data (memcached_st *ptr);
29
30 void *memcached_set_user_data (memcached_st *ptr, void *data);
31
32
33
34 -----------
35 DESCRIPTION
36 -----------
37
38
39 libmemcached(3) allows you to store a pointer to a user specific data inside
40 the memcached_st structure.
41
42 memcached_set_user_data() is used to set the user specific data in the
43 memcached_st structure.
44
45 memcached_get_user_data() is used to retrieve the user specific data in
46 the memcached_st structure.
47
48
49 ------
50 RETURN
51 ------
52
53
54 memcached_set_user_data() returns the previous value of the user specific
55 data.
56
57 memcached_get_user_data() returns the current value uf the user specific
58 data.
59
60
61 ----
62 HOME
63 ----
64
65
66 To find out more information please check:
67 `http://libmemcached.org/ <http://libmemcached.org/>`_
68
69
70 --------
71 SEE ALSO
72 --------
73
74
75 memcached(1) libmemcached(3)
76