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

NAME

6       memcached_exist_by_key - libmemcached Documentation
7

SYNOPSIS

9       #include <libmemcached/memcached.h>
10              Compile and link with -lmemcached
11
12       memcached_return_t memcached_exist(memcached_st *ptr, char *key, size_t
13       *key_length)
14
15       memcached_return_t   memcached_exist_by_key(memcached_st   *ptr,   char
16       *group_key, size_t *group_key_length, char *key, size_t *key_length)
17
18              Parameters
19
20ptr -- pointer to an initialized memcached_st struct
21
22group_key -- the key namespace
23
24group_key_length -- length of the group_key without any
25                       terminating zero
26
27key -- the key to check
28
29key_length -- length of the key without any terminating
30                       zero
31
32              Returns
33                     memcached_return_t indicating success
34
35       New in version 0.53.
36
37

DESCRIPTION

39       memcached_exist() can be used to check if a key exists.
40

RETURN VALUE

42       MEMCACHED_SUCCESS
43              The key exists.
44
45       MEMCACHED_NOTFOUND
46              The key was not found.
47

SEE ALSO

49       memcached(1) libmemcached(3) memcached_strerror(3)
50
51
52
53
541.1                              Feb 02, 2022        MEMCACHED_EXIST_BY_KEY(3)
Impressum