1MEMCACHED_SET_USER_DATA(3)   libmemcached-awesome   MEMCACHED_SET_USER_DATA(3)
2
3
4

NAME

6       memcached_set_user_data - libmemcached Documentation
7

SYNOPSIS

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
24ptr -- pointer to initialized memcached_st struct
25
26data -- opaque pointer to user supplied data
27
28              Returns
29                     opaque pointer to the previously set data
30

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

49       memcached(1) libmemcached(3)
50
51
52
53
541.1                              Mar 06, 2023       MEMCACHED_SET_USER_DATA(3)
Impressum