2 #include "../acl_cpp_define.hpp" 4 #include "../stdlib/string.hpp" 7 #if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) 63 int del_one(
const char* key);
64 int del_one(
const char* key,
size_t len);
65 int del(
const char* key);
66 int del(
const std::vector<string>& keys);
67 int del(
const std::vector<const char*>& keys);
68 int del(
const char* keys[],
size_t argc);
69 int del(
const char* keys[],
const size_t lens[],
size_t argc);
70 int del_keys(
const char* first_key, ...);
71 int del_keys(
const std::vector<string>& keys);
72 int del_keys(
const std::vector<const char*>& keys);
73 int del_keys(
const char* keys[],
size_t argc);
74 int del_keys(
const char* keys[],
const size_t lens[],
size_t argc);
91 int dump(
const char* key,
size_t len,
string& out);
92 int dump(
const char* key,
string& out);
104 bool exists(
const char* key,
size_t len);
105 bool exists(
const char* key);
125 int expire(
const char* key,
size_t len,
int n);
126 int expire(
const char* key,
int n);
146 int expireat(
const char* key,
size_t len, time_t stamp);
147 int expireat(
const char* key, time_t stamp);
175 int keys_pattern(
const char* pattern, std::vector<string>* out);
195 bool migrate(
const char* key,
size_t len,
const char* addr,
196 unsigned dest_db,
unsigned timeout,
const char* option = NULL);
197 bool migrate(
const char* key,
const char* addr,
unsigned dest_db,
198 unsigned timeout,
const char* option = NULL);
214 int move(
const char* key,
size_t len,
unsigned dest_db);
215 int move(
const char* key,
unsigned dest_db);
227 int object_refcount(
const char* key,
size_t len);
228 int object_refcount(
const char* key);
241 bool object_encoding(
const char* key,
size_t len,
string& out);
242 bool object_encoding(
const char* key,
string& out);
254 int object_idletime(
const char* key,
size_t len);
255 int object_idletime(
const char* key);
274 int persist(
const char* key,
size_t len);
275 int persist(
const char* key);
295 int pexpire(
const char* key,
size_t len,
int n);
296 int pexpire(
const char* key,
int n);
317 int pexpireat(
const char* key,
size_t len,
long long int n);
318 int pexpireat(
const char* key,
long long int n);
341 long long int pttl(
const char* key,
size_t len);
342 long long int pttl(
const char* key);
352 bool randomkey(
string& buf);
360 bool rename_key(
const char* key,
const char* newkey);
370 int renamenx(
const char* key,
const char* newkey);
386 bool restore(
const char* key,
const char* value,
size_t len,
387 int ttl,
bool replace =
false);
410 int ttl(
const char* key,
size_t len);;
411 int ttl(
const char* key);
451 int scan(
int cursor, std::vector<string>& out,
452 const char* pattern = NULL,
const size_t* count = NULL);
457 #endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
#define ACL_CPP_DEPRECATED