17 MOCK_METHOD(
size_t, ShardsCount, (), (
const,
override));
19 MOCK_METHOD(
size_t, ShardByKey, (
const std::string& key), (
const,
override));
27 (std::string key, std::string value,
const CommandControl& command_control),
39 MOCK_METHOD(RequestDbsize, Dbsize, (
size_t shard,
const CommandControl& command_control), (
override));
41 MOCK_METHOD(RequestDecr, Decr, (std::string key,
const CommandControl& command_control), (
override));
43 MOCK_METHOD(RequestDel, Del, (std::string key,
const CommandControl& command_control), (
override));
45 MOCK_METHOD(RequestDel, Del, (std::vector<std::string> keys,
const CommandControl& command_control), (
override));
47 MOCK_METHOD(RequestUnlink, Unlink, (std::string key,
const CommandControl& command_control), (
override));
52 (std::vector<std::string> keys,
const CommandControl& command_control),
56 MOCK_METHOD(RequestExists, Exists, (std::string key,
const CommandControl& command_control), (
override));
61 (std::vector<std::string> keys,
const CommandControl& command_control),
68 (std::string key, std::chrono::seconds ttl,
const CommandControl& command_control),
72 MOCK_METHOD(RequestGet, Get, (std::string key,
const CommandControl& command_control), (
override));
74 MOCK_METHOD(RequestGetdel,
Getdel, (std::string key,
const CommandControl& command_control), (
override));
79 (std::string key, std::string value,
const CommandControl& command_control),
86 (std::string key, std::string field,
const CommandControl& command_control),
93 (std::string key, std::vector<std::string> fields,
const CommandControl& command_control),
100 (std::string key, std::string field,
const CommandControl& command_control),
107 (std::string key, std::string field,
const CommandControl& command_control),
111 MOCK_METHOD(RequestHgetall, Hgetall, (std::string key,
const CommandControl& command_control), (
override));
116 (std::string key, std::string field, int64_t increment,
const CommandControl& command_control),
123 (std::string key, std::string field,
double increment,
const CommandControl& command_control),
127 MOCK_METHOD(RequestHkeys, Hkeys, (std::string key,
const CommandControl& command_control), (
override));
129 MOCK_METHOD(RequestHlen, Hlen, (std::string key,
const CommandControl& command_control), (
override));
134 (std::string key, std::vector<std::string> fields,
const CommandControl& command_control),
142 (std::vector<std::pair<std::string, std::string>>)field_values,
150 (std::string key, HscanOptions options,
const CommandControl& command_control),
157 (std::string key, std::string field, std::string value,
const CommandControl& command_control),
164 (std::string key, std::string field, std::string value,
const CommandControl& command_control),
168 MOCK_METHOD(RequestHvals, Hvals, (std::string key,
const CommandControl& command_control), (
override));
170 MOCK_METHOD(RequestIncr, Incr, (std::string key,
const CommandControl& command_control), (
override));
175 (std::string keys_pattern,
size_t shard,
const CommandControl& command_control),
182 (std::string key, int64_t index,
const CommandControl& command_control),
186 MOCK_METHOD(RequestLlen, Llen, (std::string key,
const CommandControl& command_control), (
override));
188 MOCK_METHOD(RequestLpop, Lpop, (std::string key,
const CommandControl& command_control), (
override));
193 (std::string key, std::string value,
const CommandControl& command_control),
200 (std::string key, std::vector<std::string> values,
const CommandControl& command_control),
207 (std::string key, int64_t start, int64_t stop,
const CommandControl& command_control),
214 (std::string key, int64_t count, std::string element,
const CommandControl& command_control),
221 (std::string key, int64_t start, int64_t stop,
const CommandControl& command_control),
225 MOCK_METHOD(RequestMget, Mget, (std::vector<std::string> keys,
const CommandControl& command_control), (
override));
230 ((std::vector<std::pair<std::string, std::string>>)key_values,
const CommandControl& command_control),
237 ((std::vector<std::pair<std::string, std::string>>)key_values,
const CommandControl& command_control),
244 ((std::vector<std::pair<std::string, std::string>>)key_values,
250 MOCK_METHOD(RequestPersist, Persist, (std::string key,
const CommandControl& command_control), (
override));
255 (std::string key, std::chrono::milliseconds ttl,
const CommandControl& command_control),
259 MOCK_METHOD(RequestPing, Ping, (
size_t shard,
const CommandControl& command_control), (
override));
264 (
size_t shard, std::string message,
const CommandControl& command_control),
271 (std::string channel, std::string message,
const CommandControl& command_control, PubShard policy),
278 (std::string channel, std::string message,
const CommandControl& command_control),
285 (std::string key, std::string new_key,
const CommandControl& command_control),
289 MOCK_METHOD(RequestRpop, Rpop, (std::string key,
const CommandControl& command_control), (
override));
294 (std::string key, std::string value,
const CommandControl& command_control),
301 (std::string key, std::vector<std::string> values,
const CommandControl& command_control),
308 (std::string key, std::string member,
const CommandControl& command_control),
315 (std::string key, std::vector<std::string> members,
const CommandControl& command_control),
322 (
size_t shard, ScanOptions options,
const CommandControl& command_control),
326 MOCK_METHOD(RequestScard, Scard, (std::string key,
const CommandControl& command_control), (
override));
331 (std::string key, std::string value,
const CommandControl& command_control),
338 (std::string key, std::string value, std::chrono::milliseconds ttl,
const CommandControl& command_control),
345 (std::string key, std::string value,
const CommandControl& command_control),
352 (std::string key, std::string value, std::chrono::milliseconds ttl,
const CommandControl& command_control),
357 RequestSetIfNotExist,
359 (std::string key, std::string value,
const CommandControl& command_control),
364 RequestSetIfNotExist,
366 (std::string key, std::string value, std::chrono::milliseconds ttl,
const CommandControl& command_control),
373 (std::string key, std::chrono::seconds seconds, std::string value,
const CommandControl& command_control),
380 (std::string key, std::string member,
const CommandControl& command_control),
384 MOCK_METHOD(RequestSmembers, Smembers, (std::string key,
const CommandControl& command_control), (
override));
386 MOCK_METHOD(RequestSrandmember, Srandmember, (std::string key,
const CommandControl& command_control), (
override));
391 (std::string key, int64_t count,
const CommandControl& command_control),
398 (std::string key, std::string member,
const CommandControl& command_control),
405 (std::string key, std::vector<std::string> members,
const CommandControl& command_control),
412 (std::string key, SscanOptions options,
const CommandControl& command_control),
416 MOCK_METHOD(RequestStrlen, Strlen, (std::string key,
const CommandControl& command_control), (
override));
418 MOCK_METHOD(RequestTtl, Ttl, (std::string key,
const CommandControl& command_control), (
override));
420 MOCK_METHOD(RequestType, Type, (std::string key,
const CommandControl& command_control), (
override));
425 (std::string key,
double score, std::string member,
const CommandControl& command_control),
443 (std::string key,
double score, std::string member,
const CommandControl& command_control),
448 RequestZaddIncrExisting,
450 (std::string key,
double score, std::string member,
const CommandControl& command_control),
454 MOCK_METHOD(RequestZcard, Zcard, (std::string key,
const CommandControl& command_control), (
override));
457 RequestZrangeWithScores,
459 (std::string key, int64_t start, int64_t stop,
const CommandControl& command_control),
464 RequestZrangebyscore,
466 (std::string key,
double min,
double max,
const CommandControl& command_control),
471 RequestZrangebyscore,
473 (std::string key, std::string min, std::string max,
const CommandControl& command_control),
478 RequestZrangebyscore,
489 RequestZrangebyscore,
500 RequestZrangebyscoreWithScores,
501 ZrangebyscoreWithScores,
502 (std::string key,
double min,
double max,
const CommandControl& command_control),
507 RequestZrangebyscoreWithScores,
508 ZrangebyscoreWithScores,
509 (std::string key, std::string min, std::string max,
const CommandControl& command_control),
514 RequestZrangebyscoreWithScores,
515 ZrangebyscoreWithScores,
525 RequestZrangebyscoreWithScores,
526 ZrangebyscoreWithScores,
538 (std::string key, std::string member,
const CommandControl& command_control),
545 (std::string key, std::vector<std::string> members,
const CommandControl& command_control),
552 (std::string key, ZscanOptions options,
const CommandControl& command_control),
559 (std::string key, std::string member,
const CommandControl& command_control),
567 std::vector<std::string> keys,
568 std::vector<std::string> args,
574 RequestEvalShaCommon,
577 std::vector<std::string> keys,
578 std::vector<std::string> args,