32 virtual RequestAppend Append(std::string key, std::string value);
34 virtual RequestBitop Bitop(
BitOperation op, std::string dest_key, std::vector<std::string> src_keys);
35 virtual RequestDbsize Dbsize(
size_t shard);
37 virtual RequestDecr Decr(std::string key);
39 virtual RequestDel Del(std::string key);
41 virtual RequestDel Del(std::vector<std::string> keys);
43 virtual RequestUnlink Unlink(std::string key);
45 virtual RequestUnlink Unlink(std::vector<std::string> keys);
47 virtual RequestExists Exists(std::string key);
49 virtual RequestExists Exists(std::vector<std::string> keys);
51 virtual RequestExpire Expire(std::string key, std::chrono::seconds ttl);
53 virtual RequestExpire Expire(std::string key, std::chrono::seconds ttl,
ExpireOptions options);
55 virtual RequestGeoadd Geoadd(std::string key,
GeoaddArg point_member);
57 virtual RequestGeoadd Geoadd(std::string key, std::vector<GeoaddArg> point_members);
59 virtual RequestGeopos Geopos(std::string key, std::vector<std::string> members);
61 virtual RequestGeoradius Georadius(
69 virtual RequestGeosearch Geosearch(
76 virtual RequestGeosearch Geosearch(
84 virtual RequestGeosearch Geosearch(
92 virtual RequestGeosearch Geosearch(
101 virtual RequestGet Get(std::string key);
103 virtual RequestGetdel Getdel(std::string key);
105 virtual RequestGetset Getset(std::string key, std::string value);
107 virtual RequestHdel Hdel(std::string key, std::string field);
109 virtual RequestHdel Hdel(std::string key, std::vector<std::string> fields);
111 virtual RequestHexists Hexists(std::string key, std::string field);
113 virtual RequestHget Hget(std::string key, std::string field);
115 virtual RequestHgetall Hgetall(std::string key);
117 virtual RequestHincrby Hincrby(std::string key, std::string field, int64_t increment);
119 virtual RequestHincrbyfloat Hincrbyfloat(std::string key, std::string field,
double increment);
121 virtual RequestHkeys Hkeys(std::string key);
123 virtual RequestHlen Hlen(std::string key);
125 virtual RequestHmget Hmget(std::string key, std::vector<std::string> fields);
127 virtual RequestHmset Hmset(std::string key, std::vector<std::pair<std::string, std::string>> field_values);
129 virtual RequestHset Hset(std::string key, std::string field, std::string value);
131 virtual RequestHsetnx Hsetnx(std::string key, std::string field, std::string value);
133 virtual RequestHvals Hvals(std::string key);
135 virtual RequestIncr Incr(std::string key);
137 virtual RequestKeys Keys(std::string keys_pattern,
size_t shard);
139 virtual RequestLindex Lindex(std::string key, int64_t index);
141 virtual RequestLlen Llen(std::string key);
143 virtual RequestLpop Lpop(std::string key);
145 virtual RequestLpush Lpush(std::string key, std::string value);
147 virtual RequestLpush Lpush(std::string key, std::vector<std::string> values);
149 virtual RequestLpushx Lpushx(std::string key, std::string element);
151 virtual RequestLrange Lrange(std::string key, int64_t start, int64_t stop);
153 virtual RequestLrem Lrem(std::string key, int64_t count, std::string element);
155 virtual RequestLtrim Ltrim(std::string key, int64_t start, int64_t stop);
157 virtual RequestMget Mget(std::vector<std::string> keys);
159 virtual RequestMset Mset(std::vector<std::pair<std::string, std::string>> key_values);
161 virtual RequestMsetex Msetex(std::vector<std::pair<std::string, std::string>> key_values);
163 virtual RequestMsetex Msetex(std::vector<std::pair<std::string, std::string>> key_values,
MsetexOptions options);
165 virtual RequestPersist Persist(std::string key);
167 virtual RequestPexpire Pexpire(std::string key, std::chrono::milliseconds ttl);
169 virtual RequestPing Ping(
size_t shard);
171 virtual RequestPingMessage PingMessage(
size_t shard, std::string message);
173 virtual RequestRename Rename(std::string key, std::string new_key);
175 virtual RequestRpop Rpop(std::string key);
177 virtual RequestRpush Rpush(std::string key, std::string value);
179 virtual RequestRpush Rpush(std::string key, std::vector<std::string> values);
181 virtual RequestRpushx Rpushx(std::string key, std::string element);
183 virtual RequestSadd Sadd(std::string key, std::string member);
185 virtual RequestSadd Sadd(std::string key, std::vector<std::string> members);
187 virtual RequestScard Scard(std::string key);
189 virtual RequestSet Set(std::string key, std::string value);
191 virtual RequestSet Set(std::string key, std::string value, std::chrono::milliseconds ttl);
193 virtual RequestSetIfExist SetIfExist(std::string key, std::string value);
195 virtual RequestSetIfExist SetIfExist(std::string key, std::string value, std::chrono::milliseconds ttl);
197 virtual RequestSetIfNotExist SetIfNotExist(std::string key, std::string value);
199 virtual RequestSetIfNotExist SetIfNotExist(std::string key, std::string value, std::chrono::milliseconds ttl);
201 virtual RequestSetIfNotExistOrGet SetIfNotExistOrGet(std::string key, std::string value);
203 virtual RequestSetIfNotExistOrGet SetIfNotExistOrGet(
206 std::chrono::milliseconds ttl
209 virtual RequestSetex Setex(std::string key, std::chrono::seconds seconds, std::string value);
211 virtual RequestSetAndGetPrevious SetAndGetPrevious(
214 std::chrono::milliseconds ttl
217 virtual RequestSismember Sismember(std::string key, std::string member);
219 virtual RequestSmembers Smembers(std::string key);
221 virtual RequestSrandmember Srandmember(std::string key);
223 virtual RequestSrandmembers Srandmembers(std::string key, int64_t count);
225 virtual RequestSrem Srem(std::string key, std::string member);
227 virtual RequestSrem Srem(std::string key, std::vector<std::string> members);
229 virtual RequestStrlen Strlen(std::string key);
231 virtual RequestTime Time(
size_t shard);
233 virtual RequestTtl Ttl(std::string key);
235 virtual RequestType Type(std::string key);
237 virtual RequestZadd Zadd(std::string key,
double score, std::string member);
239 virtual RequestZadd Zadd(std::string key,
double score, std::string member,
const ZaddOptions& options);
241 virtual RequestZadd Zadd(std::string key, std::vector<std::pair<double, std::string>> scored_members);
243 virtual RequestZadd Zadd(
245 std::vector<std::pair<double, std::string>> scored_members,
249 virtual RequestZaddIncr ZaddIncr(std::string key,
double score, std::string member);
251 virtual RequestZaddIncrExisting ZaddIncrExisting(std::string key,
double score, std::string member);
253 virtual RequestZcard Zcard(std::string key);
255 virtual RequestZcount Zcount(std::string key,
double min,
double max);
257 virtual RequestZrange Zrange(std::string key, int64_t start, int64_t stop);
259 virtual RequestZrangeWithScores ZrangeWithScores(std::string key, int64_t start, int64_t stop);
261 virtual RequestZrangebyscore Zrangebyscore(std::string key,
double min,
double max);
263 virtual RequestZrangebyscore Zrangebyscore(std::string key, std::string min, std::string max);
265 virtual RequestZrangebyscore Zrangebyscore(
272 virtual RequestZrangebyscore Zrangebyscore(
279 virtual RequestZrangebyscoreWithScores ZrangebyscoreWithScores(std::string key,
double min,
double max);
281 virtual RequestZrangebyscoreWithScores ZrangebyscoreWithScores(std::string key, std::string min, std::string max);
283 virtual RequestZrangebyscoreWithScores ZrangebyscoreWithScores(
290 virtual RequestZrangebyscoreWithScores ZrangebyscoreWithScores(
297 virtual RequestZrem Zrem(std::string key, std::string member);
299 virtual RequestZrem Zrem(std::string key, std::vector<std::string> members);
301 virtual RequestZremrangebyrank Zremrangebyrank(std::string key, int64_t start, int64_t stop);
303 virtual RequestZremrangebyscore Zremrangebyscore(std::string key,
double min,
double max);
305 virtual RequestZremrangebyscore Zremrangebyscore(std::string key, std::string min, std::string max);
307 virtual RequestZscore Zscore(std::string key, std::string member);
309 virtual RequestHexpire Hexpire(std::string key, std::chrono::seconds ttl, std::vector<std::string> fields);
311 virtual RequestHexpire Hexpire(
313 std::chrono::seconds ttl,
315 std::vector<std::string> fields
318 virtual RequestHexpire Hpexpire(std::string key, std::chrono::milliseconds ttl, std::vector<std::string> fields);
320 virtual RequestHexpire Hpexpire(
322 std::chrono::milliseconds ttl,
324 std::vector<std::string> fields
327 virtual RequestHexpire Hexpireat(
329 std::chrono::system_clock::time_point deadline,
330 std::vector<std::string> fields
333 virtual RequestHexpire Hexpireat(
335 std::chrono::system_clock::time_point deadline,
337 std::vector<std::string> fields
340 virtual RequestHexpire Hpexpireat(
342 std::chrono::system_clock::time_point deadline,
343 std::vector<std::string> fields
346 virtual RequestHexpire Hpexpireat(
348 std::chrono::system_clock::time_point deadline,
350 std::vector<std::string> fields
353 virtual RequestHexpiretime Hexpiretime(std::string key, std::vector<std::string> fields);
355 virtual RequestHpexpiretime Hpexpiretime(std::string key, std::vector<std::string> fields);
357 virtual RequestHttl Httl(std::string key, std::vector<std::string> fields);
359 virtual RequestHpttl Hpttl(std::string key, std::vector<std::string> fields);
361 virtual RequestHpersist Hpersist(std::string key, std::vector<std::string> fields);
363 virtual RequestHgetex Hgetex(std::string key, std::vector<std::string> fields);
365 virtual RequestHgetex Hgetex(std::string key,
HgetexOptions options, std::vector<std::string> fields);
367 virtual RequestHsetex Hsetex(std::string key, std::vector<HsetexFieldValue> field_values);
369 virtual RequestHsetex Hsetex(std::string key,
HsetexOptions options, std::vector<HsetexFieldValue> field_values);
373 virtual RequestJsonSetIfNotExist JsonSetIfNotExist(std::string key, std::string path,
formats::json::Value value);
375 virtual RequestJsonSetIfExist JsonSetIfExist(std::string key, std::string path,
formats::json::Value value);
377 virtual RequestJsonGet JsonGet(std::string key);
379 virtual RequestJsonGet JsonGet(std::string key, std::string path);
381 virtual RequestJsonGet JsonGet(std::string key, std::vector<std::string> paths);
383 virtual RequestJsonMget JsonMget(std::vector<std::string> keys, std::string path);
385 virtual RequestJsonMset JsonMset(std::vector<JsonKeyPathValue> key_path_values);