1MEMCACHED_SET_USER_DATA(3) libmemcached-awesome MEMCACHED_SET_USER_DATA(3)
2
3
4
6 memcached_set_user_data - libmemcached Documentation
7
9 #include <libmemcached/memcached.h>
10 Compile and link with -lmemcached
11
12 void *memcached_get_user_data(memcached_st *ptr)
13
14 Parameters
15 ptr -- pointer to initialized memcached_st struct
16
17 Returns
18 opaque pointer to the user supplied data
19
20 void *memcached_set_user_data(memcached_st *ptr, void *data)
21
22 Parameters
23
24 • ptr -- pointer to initialized memcached_st struct
25
26 • data -- opaque pointer to user supplied data
27
28 Returns
29 opaque pointer to the previously set data
30
32 libmemcached allows you to store a pointer to a user specific data in‐
33 side the memcached_st structure.
34
35 memcached_set_user_data() is used to set the user specific data in the
36 memcached_st structure.
37
38 memcached_get_user_data() is used to retrieve the user specific data in
39 the memcached_st structure.
40
42 memcached_set_user_data() returns the previous value of the user spe‐
43 cific data.
44
45 memcached_get_user_data() returns the current value of the user spe‐
46 cific data.
47
49 memcached(1) libmemcached(3)
50
51
52
53
541.1 Feb 02, 2022 MEMCACHED_SET_USER_DATA(3)