1 Determine if a keys exists
2 ==========================
7 #include <libmemcached/memcached.h>
8 Compile and link with -lmemcached
10 .. function:: memcached_return_t memcached_exist(memcached_st *ptr, char *key, size_t *key_length)
12 .. function:: memcached_return_t memcached_exist_by_key(memcached_st *ptr, char *group_key, size_t *group_key_length, char *key, size_t *key_length)
14 :param ptr: pointer to an initialized `memcached_st` struct
15 :param group_key: the key namespace
16 :param group_key_length: length of the `group_key` without any terminating zero
17 :param key: the key to check
18 :param key_length: length of the `key` without any terminating zero
19 :returns: `memcached_return_t` indicating success
21 .. versionadded:: 0.53
26 :func:`memcached_exist()` can be used to check if a key exists.
35 The key was not found.
42 :manpage:`memcached(1)`
43 :manpage:`libmemcached(3)`
44 :manpage:`memcached_strerror(3)`
48 * :manpage:`memcached(1)`
49 * :doc:`../libmemcached`
50 * :doc:`memcached_strerror`