MEMCACHED_EXIST_BY_KEY(3) libmemcached-awesome MEMCACHED_EXIST_BY_KEY(3)

memcached_exist_by_key - libmemcached Documentation

#include <libmemcached/memcached.h>
Compile and link with -lmemcached
  • ptr -- pointer to an initialized memcached_st <#_CPPv412memcached_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
memcached_return_t <#_CPPv418memcached_return_t> indicating success

Added in version 0.53.

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

memcached(1) https://linux.die.net/man/1/memcached libmemcached(3) https://linux.die.net/man/3/libmemcached memcached_strerror(3) https://linux.die.net/man/3/memcached_strerror

March 7, 2026 1.1