2 #include "../acl_cpp_define.hpp" 5 #if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) 69 bool blpop(std::pair<string, string>& result,
size_t timeout,
70 const char* first_key, ...);
71 bool blpop(
const std::vector<const char*>& keys,
size_t timeout,
72 std::pair<string, string>& result);
73 bool blpop(
const std::vector<string>& keys,
size_t timeout,
74 std::pair<string, string>& result);
82 bool brpop(std::pair<string, string>& result,
size_t timeout,
83 const char* first_key, ...);
84 bool brpop(
const std::vector<const char*>& keys,
size_t timeout,
85 std::pair<string, string>& result);
86 bool brpop(
const std::vector<string>& keys,
size_t timeout,
87 std::pair<string, string>& result);
111 bool brpoplpush(
const char* src,
const char* dst,
size_t timeout,
128 bool lindex(
const char* key,
size_t idx,
string& buf);
146 int linsert_before(
const char* key,
const char* pivot,
148 int linsert_before(
const char* key,
const char* pivot,
149 size_t pivot_len,
const char* value,
size_t value_len);
167 int linsert_after(
const char* key,
const char* pivot,
169 int linsert_after(
const char* key,
const char* pivot,
170 size_t pivot_len,
const char* value,
size_t value_len);
180 int llen(
const char* key);
196 int lpop(
const char* key,
string& buf);
212 int lpush(
const char* key,
const char* first_value, ...);
213 int lpush(
const char* key,
const char* values[],
size_t argc);
214 int lpush(
const char* key,
const std::vector<string>& values);
215 int lpush(
const char* key,
const std::vector<const char*>& values);
216 int lpush(
const char* key,
const char* values[],
const size_t lens[],
236 int lpushx(
const char* key,
const char* value);
237 int lpushx(
const char* key,
const char* value,
size_t len);
287 bool lrange(
const char* key,
int start,
int end,
288 std::vector<string>* result);
315 int lrem(
const char* key,
int count,
const char* value);
316 int lrem(
const char* key,
int count,
const char* value,
size_t len);
335 bool lset(
const char* key,
int idx,
const char* value);
336 bool lset(
const char* key,
int idx,
const char* value,
size_t len);
354 bool ltrim(
const char* key,
int start,
int end);
370 int rpop(
const char* key,
string& buf);
389 bool rpoplpush(
const char* src,
const char* dst,
string* buf = NULL);
406 int rpush(
const char* key,
const char* first_value, ...);
407 int rpush(
const char* key,
const char* values[],
size_t argc);
408 int rpush(
const char* key,
const std::vector<string>& values);
409 int rpush(
const char* key,
const std::vector<const char*>& values);
410 int rpush(
const char* key,
const char* values[],
const size_t lens[],
430 int rpushx(
const char* key,
const char* value);
431 int rpushx(
const char* key,
const char* value,
size_t len);
434 int linsert(
const char* key,
const char* pos,
const char* pivot,
435 size_t pivot_len,
const char* value,
size_t value_len);
436 int pushx(
const char* cmd,
const char* key,
437 const char* value,
size_t len);
438 int pop(
const char* cmd,
const char* key,
string& buf);
439 bool bpop(
const char* cmd,
const std::vector<const char*>& keys,
440 size_t timeout, std::pair<string, string>& result);
441 bool bpop(
const char* cmd,
const std::vector<string>& keys,
442 size_t timeout, std::pair<string, string>& result);
443 bool bpop(std::pair<string, string>& result);
448 #endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) #define ACL_CPP_DEPRECATED