2 #include "../acl_cpp_define.hpp" 8 #if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) 58 int zadd(
const char* key,
const std::map<string, double>& members,
59 const std::vector<string>* options = NULL);
60 int zadd(
const char* key,
61 const std::vector<std::pair<string, double> >&members);
62 int zadd(
const char* key,
63 const std::vector<std::pair<const char*, double> >&members);
64 int zadd(
const char* key,
const std::vector<string>& members,
65 const std::vector<double>& scores);
66 int zadd(
const char* key,
const std::vector<const char*>& members,
67 const std::vector<double>& scores);
68 int zadd(
const char* key,
const char* members[],
double scores[],
70 int zadd(
const char* key,
const char* members[],
size_t members_len[],
71 double scores[],
size_t size);
73 int zadd_with_ch_xx(
const char* key,
const std::map<string, double>& members);
74 int zadd_with_ch_nx(
const char* key,
const std::map<string, double>& members);
76 bool zadd_with_incr(
const char* key,
const char* member,
size_t len,
77 double score,
double* result = NULL,
const char* option = NULL);
78 bool zadd_with_incr(
const char* key,
const char* member,
79 double score,
double* result = NULL,
const char* option = NULL);
80 bool zadd_with_incr_xx(
const char* key,
const char* member,
81 double score,
double* result = NULL);
82 bool zadd_with_incr_nx(
const char* key,
const char* member,
83 double score,
double* result = NULL);
99 int zcard(
const char* key);
118 int zcount(
const char* key,
double min,
double max);
134 bool zincrby(
const char* key,
double inc,
const char* member,
135 double* result = NULL);
136 bool zincrby(
const char* key,
double inc,
const char* member,
137 size_t len,
double* result = NULL);
187 int zrange(
const char* key,
int start,
int stop,
188 std::vector<string>* result);
203 int zrange_with_scores(
const char* key,
int start,
int stop,
204 std::vector<std::pair<string, double> >& out);
232 int zrangebyscore(
const char* key,
double min,
double max,
233 std::vector<string>* out,
const int* offset = NULL,
234 const int* count = NULL);
268 int zrangebyscore(
const char* key,
const char* min,
const char* max,
269 std::vector<string>* out,
const int* offset = NULL,
270 const int* count = NULL);
279 int zrangebyscore_with_scores(
const char* key,
double min,
double max,
280 std::vector<std::pair<string, double> >& out,
281 const int* offset = NULL,
const int* count = NULL);
290 int zrangebyscore_with_scores(
const char* key,
const char* min,
291 const char* max, std::vector<std::pair<string, double> >& out,
292 const int* offset = NULL,
const int* count = NULL);
302 int zrank(
const char* key,
const char* member,
size_t len);
303 int zrank(
const char* key,
const char* member);
312 int zrem(
const char* key,
const char* first_member, ...);
313 int zrem(
const char* key,
const std::vector<string>& members);
314 int zrem(
const char* key,
const std::vector<const char*>& members);
315 int zrem(
const char* key,
const char* members[],
const size_t lens[],
331 int zremrangebyrank(
const char* key,
int start,
int stop);
343 int zremrangebyscore(
const char* key,
double min,
double max);
355 int zremrangebyscore(
const char* key,
const char* min,
const char* max);
367 int zrevrange(
const char* key,
int start,
int stop,
368 std::vector<string>* result);
380 int zrevrange_with_scores(
const char* key,
int start,
int stop,
381 std::vector<std::pair<string, double> >& out);
415 int zrevrangebyscore_with_scores(
const char* key,
double min,
416 double max, std::vector<std::pair<string, double> >& out,
417 const int* offset = NULL,
const int* count = NULL);
418 int zrevrangebyscore_with_scores(
const char* key,
const char* min,
419 const char* max, std::vector<std::pair<string, double> >& out,
420 const int* offset = NULL,
const int* count = NULL);
430 int zrevrank(
const char* key,
const char* member,
size_t len);
431 int zrevrank(
const char* key,
const char* member);
441 bool zscore(
const char* key,
const char* member,
size_t len,
443 bool zscore(
const char* key,
const char* member,
double& result);
461 int zunionstore(
const char* dst,
const std::map<string, double>& keys,
462 const char* aggregate =
"SUM");
464 int zunionstore(
const char* dst,
const std::vector<string>& keys,
465 const std::vector<double>* weights = NULL,
466 const char* aggregate =
"SUM");
474 int zinterstore(
const char* dst,
const std::map<string, double>& keys,
475 const char* aggregate =
"SUM");
477 int zinterstore(
const char* dst,
const std::vector<string>& keys,
478 const std::vector<double>* weights = NULL,
479 const char* aggregate =
"SUM");
493 int zscan(
const char* key,
int cursor,
494 std::vector<std::pair<string, double> >& out,
495 const char* pattern = NULL,
const size_t* count = NULL);
517 int zrangebylex(
const char* key,
const char* min,
const char* max,
518 std::vector<string>* out,
const int* offset = NULL,
519 const int* count = NULL);
526 int zlexcount(
const char* key,
const char* min,
const char* max);
533 int zremrangebylex(
const char* key,
const char* min,
const char* max);
535 int zpopmin(
const char* key,
536 std::vector<std::pair<string, double> >& out,
size_t count = 1);
537 int zpopmax(
const char* key,
538 std::vector<std::pair<string, double> >& out,
size_t count = 1);
539 int bzpopmin(
const char* key,
size_t timeout,
string& member,
540 double* score = NULL);
541 int bzpopmax(
const char* key,
size_t timeout,
string& member,
542 double* score = NULL);
543 int bzpopmin(
const std::vector<string>& keys,
size_t timeout,
544 string& member,
double* score = NULL);
545 int bzpopmax(
const std::vector<string>& keys,
size_t timeout,
546 string& member,
double* score = NULL);
549 int zrange_get(
const char* cmd,
const char* key,
int start,
550 int stop, std::vector<string>* result);
551 int zrange_get_with_scores(
const char* cmd,
const char* key,
int start,
552 int stop, std::vector<std::pair<string, double> >& out);
553 int zrangebyscore_get(
const char* cmd,
const char* key,
554 const char* min,
const char* max, std::vector<string>* out,
555 const int* offset = NULL,
const int* count = NULL);
556 int zrangebyscore_get_with_scores(
const char* cmd,
557 const char* key,
const char* min,
const char* max,
558 std::vector<std::pair<string, double> >& out,
559 const int* offset = NULL,
const int* count = NULL);
560 int zstore(
const char* cmd,
const char* dst,
561 const std::map<string, double>& keys,
const char* aggregate);
562 int zstore(
const char* cmd,
const char* dst,
const std::vector<string>& keys,
563 const std::vector<double>* weights,
const char* aggregate);
564 int zpop(
const char* cmd,
const char* key,
565 std::vector<std::pair<string, double> >& out,
size_t count);
566 int get_with_scores(std::vector<std::pair<string, double> >& out);
567 int bzpop(
const char* cmd,
const char* key,
size_t timeout,
568 string& member,
double* score);
569 int bzpop(
const char* cmd,
const std::vector<string>& keys,
570 size_t timeout,
string& member,
double* score);
571 int bzpop_result(
string& member,
double* score);
576 #endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) #define ACL_CPP_DEPRECATED