Determine if a keys exists.¶
+Determine if a keys exists¶
SYNOPSIS¶
-#include <libmemcached/memcached.h>
--
+
- #include <libmemcached/memcached.h> +
- Compile and link with -lmemcached +
-
-memcached_return_t
memcached_exist
(memcached_st *ptr, char *key, size_t *key_length)¶
+memcached_return_t -
-memcached_return_t
memcached_exist_by_key
(memcached_st *ptr, char *group_key, size_t *group_key_length, char *key, size_t *key_length)¶
- +
++ + + +Parameters: +-
+
- ptr -- pointer to an initialized
memcached_st
struct
+ - group_key -- the key namespace +
- group_key_length -- length of the
group_key
without any terminating zero
+ - key -- the key to check +
- key_length -- length of the
key
without any terminating zero
+
+ +Returns: +
+memcached_return_t
indicating success- ptr -- pointer to an initialized
SYNOPSIS¶
+-
+
memcached_exist
(memcached_st *ptr, char *key, size_t *key_length)¶-
+
memcached_exist_by_key
(memcached_st *ptr, char *group_key, size_t *group_key_length, char *key, size_t *key_length)¶+
Compile and link with -lmemcached
New in version 0.53.
+New in version 0.53.
RETURN VALUE¶
--
-
MEMCACHED_SUCCESS
The key exists.
-
-MEMCACHED_NOTFOUND
The key was not found.
-
+MEMCACHED_SUCCESS
+- The key exists. +
MEMCACHED_NOTFOUND
+- The key was not found.
-
+