logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

memcached_exist_by_key - libmemcached Documentation

Description

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

Name

memcached_exist_by_key - libmemcached Documentation

Return Value

MEMCACHED_SUCCESS The key exists. MEMCACHED_NOTFOUND The key was not found.

See Also

memcached(1)libmemcached(3)memcached_strerror(3) 1.1 Mar 31, 2024 MEMCACHED_EXIST_BY_KEY(3)

Synopsis

#include<libmemcached/memcached.h> Compile and link with -lmemcached memcached_return_tmemcached_exist(memcached_st*ptr,char*key,size_t*key_length)memcached_return_tmemcached_exist_by_key(memcached_st*ptr,char*group_key,size_t*group_key_length,char*key,size_t*key_length)Parametersptr -- 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 Returnsmemcached_return_t indicating success New in version 0.53.

See Also