-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmd.go
1518 lines (1241 loc) · 46.3 KB
/
cmd.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Generated by gen.bash.
// DO NOT EDIT THIS FILE DIRECTLY!
package rediscluster
import (
"github.com/fzzbt/radix/redis"
)
const (
cmdAppend string = "APPEND"
cmdAsking string = "ASKING"
cmdAuth string = "AUTH"
cmdBgrewriteaof string = "BGREWRITEAOF"
cmdBgsave string = "BGSAVE"
cmdBitcount string = "BITCOUNT"
cmdBitop string = "BITOP"
cmdBlpop string = "BLPOP"
cmdBrpop string = "BRPOP"
cmdBrpoplpush string = "BRPOPLPUSH"
cmdClient string = "CLIENT"
cmdCluster string = "CLUSTER"
cmdConfig string = "CONFIG"
cmdDbsize string = "DBSIZE"
cmdDebug string = "DEBUG"
cmdDecr string = "DECR"
cmdDecrby string = "DECRBY"
cmdDel string = "DEL"
cmdDiscard string = "DISCARD"
cmdDump string = "DUMP"
cmdEcho string = "ECHO"
cmdEval string = "EVAL"
cmdExec string = "EXEC"
cmdExists string = "EXISTS"
cmdExpire string = "EXPIRE"
cmdExpireat string = "EXPIREAT"
cmdFlushall string = "FLUSHALL"
cmdFlushdb string = "FLUSHDB"
cmdGet string = "GET"
cmdGetbit string = "GETBIT"
cmdGetrange string = "GETRANGE"
cmdGetset string = "GETSET"
cmdHdel string = "HDEL"
cmdHexists string = "HEXISTS"
cmdHget string = "HGET"
cmdHgetall string = "HGETALL"
cmdHincrby string = "HINCRBY"
cmdHincrbyfloat string = "HINCRBYFLOAT"
cmdHkeys string = "HKEYS"
cmdHlen string = "HLEN"
cmdHmget string = "HMGET"
cmdHmset string = "HMSET"
cmdHset string = "HSET"
cmdHsetnx string = "HSETNX"
cmdHvals string = "HVALS"
cmdIncr string = "INCR"
cmdIncrby string = "INCRBY"
cmdIncrbyfloat string = "INCRBYFLOAT"
cmdInfo string = "INFO"
cmdKeys string = "KEYS"
cmdLastsave string = "LASTSAVE"
cmdLindex string = "LINDEX"
cmdLinsert string = "LINSERT"
cmdLlen string = "LLEN"
cmdLpop string = "LPOP"
cmdLpush string = "LPUSH"
cmdLpushx string = "LPUSHX"
cmdLrange string = "LRANGE"
cmdLrem string = "LREM"
cmdLset string = "LSET"
cmdLtrim string = "LTRIM"
cmdMget string = "MGET"
cmdMigrate string = "MIGRATE"
cmdMonitor string = "MONITOR"
cmdMove string = "MOVE"
cmdMset string = "MSET"
cmdMsetnx string = "MSETNX"
cmdMulti string = "MULTI"
cmdObject string = "OBJECT"
cmdPersist string = "PERSIST"
cmdPexpire string = "PEXPIRE"
cmdPexpireat string = "PEXPIREAT"
cmdPing string = "PING"
cmdPsetex string = "PSETEX"
cmdPsubscribe string = "PSUBSCRIBE"
cmdPttl string = "PTTL"
cmdPublish string = "PUBLISH"
cmdPunsubscribe string = "PUNSUBSCRIBE"
cmdRandomkey string = "RANDOMKEY"
cmdRename string = "RENAME"
cmdRenamenx string = "RENAMENX"
cmdReplconf string = "REPLCONF"
cmdRestore string = "RESTORE"
cmdRpop string = "RPOP"
cmdRpoplpush string = "RPOPLPUSH"
cmdRpush string = "RPUSH"
cmdRpushx string = "RPUSHX"
cmdSadd string = "SADD"
cmdSave string = "SAVE"
cmdScard string = "SCARD"
cmdScript string = "SCRIPT"
cmdSdiff string = "SDIFF"
cmdSdiffstore string = "SDIFFSTORE"
cmdSelect string = "SELECT"
cmdSet string = "SET"
cmdSetbit string = "SETBIT"
cmdSetex string = "SETEX"
cmdSetnx string = "SETNX"
cmdSetrange string = "SETRANGE"
cmdShutdown string = "SHUTDOWN"
cmdSinter string = "SINTER"
cmdSinterstore string = "SINTERSTORE"
cmdSismember string = "SISMEMBER"
cmdSlaveof string = "SLAVEOF"
cmdSmembers string = "SMEMBERS"
cmdSmove string = "SMOVE"
cmdSort string = "SORT"
cmdSpop string = "SPOP"
cmdSrandmember string = "SRANDMEMBER"
cmdSrem string = "SREM"
cmdStrlen string = "STRLEN"
cmdSubscribe string = "SUBSCRIBE"
cmdSunion string = "SUNION"
cmdSunionstore string = "SUNIONSTORE"
cmdSync string = "SYNC"
cmdTime string = "TIME"
cmdTtl string = "TTL"
cmdType string = "TYPE"
cmdUnsubscribe string = "UNSUBSCRIBE"
cmdUnwatch string = "UNWATCH"
cmdWatch string = "WATCH"
cmdZadd string = "ZADD"
cmdZcard string = "ZCARD"
cmdZcount string = "ZCOUNT"
cmdZincrby string = "ZINCRBY"
cmdZinterstore string = "ZINTERSTORE"
cmdZrange string = "ZRANGE"
cmdZrangebyscore string = "ZRANGEBYSCORE"
cmdZrank string = "ZRANK"
cmdZrem string = "ZREM"
cmdZremrangebyrank string = "ZREMRANGEBYRANK"
cmdZremrangebyscore string = "ZREMRANGEBYSCORE"
cmdZrevrange string = "ZREVRANGE"
cmdZrevrangebyscore string = "ZREVRANGEBYSCORE"
cmdZrevrank string = "ZREVRANK"
cmdZscore string = "ZSCORE"
cmdZunionstore string = "ZUNIONSTORE"
)
// Append calls Redis APPEND command.
func (cc *Cluster) Append(args ...interface{}) *redis.Reply {
return cc.Call(cmdAppend, args...)
}
// Asking calls Redis ASKING command.
func (cc *Cluster) Asking(args ...interface{}) *redis.Reply {
return cc.Call(cmdAsking, args...)
}
// Auth calls Redis AUTH command.
func (cc *Cluster) Auth(args ...interface{}) *redis.Reply {
return cc.Call(cmdAuth, args...)
}
// Bgrewriteaof calls Redis BGREWRITEAOF command.
func (cc *Cluster) Bgrewriteaof(args ...interface{}) *redis.Reply {
return cc.Call(cmdBgrewriteaof, args...)
}
// Bgsave calls Redis BGSAVE command.
func (cc *Cluster) Bgsave(args ...interface{}) *redis.Reply {
return cc.Call(cmdBgsave, args...)
}
// Bitcount calls Redis BITCOUNT command.
func (cc *Cluster) Bitcount(args ...interface{}) *redis.Reply {
return cc.Call(cmdBitcount, args...)
}
// Bitop calls Redis BITOP command.
func (cc *Cluster) Bitop(args ...interface{}) *redis.Reply {
return cc.Call(cmdBitop, args...)
}
// Blpop calls Redis BLPOP command.
func (cc *Cluster) Blpop(args ...interface{}) *redis.Reply {
return cc.Call(cmdBlpop, args...)
}
// Brpop calls Redis BRPOP command.
func (cc *Cluster) Brpop(args ...interface{}) *redis.Reply {
return cc.Call(cmdBrpop, args...)
}
// Brpoplpush calls Redis BRPOPLPUSH command.
func (cc *Cluster) Brpoplpush(args ...interface{}) *redis.Reply {
return cc.Call(cmdBrpoplpush, args...)
}
// Client calls Redis CLIENT command.
func (cc *Cluster) Client(args ...interface{}) *redis.Reply {
return cc.Call(cmdClient, args...)
}
// Cluster calls Redis CLUSTER command.
func (cc *Cluster) Cluster(args ...interface{}) *redis.Reply {
return cc.Call(cmdCluster, args...)
}
// Config calls Redis CONFIG command.
func (cc *Cluster) Config(args ...interface{}) *redis.Reply {
return cc.Call(cmdConfig, args...)
}
// Dbsize calls Redis DBSIZE command.
func (cc *Cluster) Dbsize(args ...interface{}) *redis.Reply {
return cc.Call(cmdDbsize, args...)
}
// Debug calls Redis DEBUG command.
func (cc *Cluster) Debug(args ...interface{}) *redis.Reply {
return cc.Call(cmdDebug, args...)
}
// Decr calls Redis DECR command.
func (cc *Cluster) Decr(args ...interface{}) *redis.Reply {
return cc.Call(cmdDecr, args...)
}
// Decrby calls Redis DECRBY command.
func (cc *Cluster) Decrby(args ...interface{}) *redis.Reply {
return cc.Call(cmdDecrby, args...)
}
// Del calls Redis DEL command.
func (cc *Cluster) Del(args ...interface{}) *redis.Reply {
return cc.Call(cmdDel, args...)
}
// Discard calls Redis DISCARD command.
func (cc *Cluster) Discard(args ...interface{}) *redis.Reply {
return cc.Call(cmdDiscard, args...)
}
// Dump calls Redis DUMP command.
func (cc *Cluster) Dump(args ...interface{}) *redis.Reply {
return cc.Call(cmdDump, args...)
}
// Echo calls Redis ECHO command.
func (cc *Cluster) Echo(args ...interface{}) *redis.Reply {
return cc.Call(cmdEcho, args...)
}
// Eval calls Redis EVAL command.
func (cc *Cluster) Eval(args ...interface{}) *redis.Reply {
return cc.Call(cmdEval, args...)
}
// Exec calls Redis EXEC command.
func (cc *Cluster) Exec(args ...interface{}) *redis.Reply {
return cc.Call(cmdExec, args...)
}
// Exists calls Redis EXISTS command.
func (cc *Cluster) Exists(args ...interface{}) *redis.Reply {
return cc.Call(cmdExists, args...)
}
// Expire calls Redis EXPIRE command.
func (cc *Cluster) Expire(args ...interface{}) *redis.Reply {
return cc.Call(cmdExpire, args...)
}
// Expireat calls Redis EXPIREAT command.
func (cc *Cluster) Expireat(args ...interface{}) *redis.Reply {
return cc.Call(cmdExpireat, args...)
}
// Flushall calls Redis FLUSHALL command.
func (cc *Cluster) Flushall(args ...interface{}) *redis.Reply {
return cc.Call(cmdFlushall, args...)
}
// Flushdb calls Redis FLUSHDB command.
func (cc *Cluster) Flushdb(args ...interface{}) *redis.Reply {
return cc.Call(cmdFlushdb, args...)
}
// Get calls Redis GET command.
func (cc *Cluster) Get(args ...interface{}) *redis.Reply {
return cc.Call(cmdGet, args...)
}
// Getbit calls Redis GETBIT command.
func (cc *Cluster) Getbit(args ...interface{}) *redis.Reply {
return cc.Call(cmdGetbit, args...)
}
// Getrange calls Redis GETRANGE command.
func (cc *Cluster) Getrange(args ...interface{}) *redis.Reply {
return cc.Call(cmdGetrange, args...)
}
// Getset calls Redis GETSET command.
func (cc *Cluster) Getset(args ...interface{}) *redis.Reply {
return cc.Call(cmdGetset, args...)
}
// Hdel calls Redis HDEL command.
func (cc *Cluster) Hdel(args ...interface{}) *redis.Reply {
return cc.Call(cmdHdel, args...)
}
// Hexists calls Redis HEXISTS command.
func (cc *Cluster) Hexists(args ...interface{}) *redis.Reply {
return cc.Call(cmdHexists, args...)
}
// Hget calls Redis HGET command.
func (cc *Cluster) Hget(args ...interface{}) *redis.Reply {
return cc.Call(cmdHget, args...)
}
// Hgetall calls Redis HGETALL command.
func (cc *Cluster) Hgetall(args ...interface{}) *redis.Reply {
return cc.Call(cmdHgetall, args...)
}
// Hincrby calls Redis HINCRBY command.
func (cc *Cluster) Hincrby(args ...interface{}) *redis.Reply {
return cc.Call(cmdHincrby, args...)
}
// Hincrbyfloat calls Redis HINCRBYFLOAT command.
func (cc *Cluster) Hincrbyfloat(args ...interface{}) *redis.Reply {
return cc.Call(cmdHincrbyfloat, args...)
}
// Hkeys calls Redis HKEYS command.
func (cc *Cluster) Hkeys(args ...interface{}) *redis.Reply {
return cc.Call(cmdHkeys, args...)
}
// Hlen calls Redis HLEN command.
func (cc *Cluster) Hlen(args ...interface{}) *redis.Reply {
return cc.Call(cmdHlen, args...)
}
// Hmget calls Redis HMGET command.
func (cc *Cluster) Hmget(args ...interface{}) *redis.Reply {
return cc.Call(cmdHmget, args...)
}
// Hmset calls Redis HMSET command.
func (cc *Cluster) Hmset(args ...interface{}) *redis.Reply {
return cc.Call(cmdHmset, args...)
}
// Hset calls Redis HSET command.
func (cc *Cluster) Hset(args ...interface{}) *redis.Reply {
return cc.Call(cmdHset, args...)
}
// Hsetnx calls Redis HSETNX command.
func (cc *Cluster) Hsetnx(args ...interface{}) *redis.Reply {
return cc.Call(cmdHsetnx, args...)
}
// Hvals calls Redis HVALS command.
func (cc *Cluster) Hvals(args ...interface{}) *redis.Reply {
return cc.Call(cmdHvals, args...)
}
// Incr calls Redis INCR command.
func (cc *Cluster) Incr(args ...interface{}) *redis.Reply {
return cc.Call(cmdIncr, args...)
}
// Incrby calls Redis INCRBY command.
func (cc *Cluster) Incrby(args ...interface{}) *redis.Reply {
return cc.Call(cmdIncrby, args...)
}
// Incrbyfloat calls Redis INCRBYFLOAT command.
func (cc *Cluster) Incrbyfloat(args ...interface{}) *redis.Reply {
return cc.Call(cmdIncrbyfloat, args...)
}
// Info calls Redis INFO command.
func (cc *Cluster) Info(args ...interface{}) *redis.Reply {
return cc.Call(cmdInfo, args...)
}
// Keys calls Redis KEYS command.
func (cc *Cluster) Keys(args ...interface{}) *redis.Reply {
return cc.Call(cmdKeys, args...)
}
// Lastsave calls Redis LASTSAVE command.
func (cc *Cluster) Lastsave(args ...interface{}) *redis.Reply {
return cc.Call(cmdLastsave, args...)
}
// Lindex calls Redis LINDEX command.
func (cc *Cluster) Lindex(args ...interface{}) *redis.Reply {
return cc.Call(cmdLindex, args...)
}
// Linsert calls Redis LINSERT command.
func (cc *Cluster) Linsert(args ...interface{}) *redis.Reply {
return cc.Call(cmdLinsert, args...)
}
// Llen calls Redis LLEN command.
func (cc *Cluster) Llen(args ...interface{}) *redis.Reply {
return cc.Call(cmdLlen, args...)
}
// Lpop calls Redis LPOP command.
func (cc *Cluster) Lpop(args ...interface{}) *redis.Reply {
return cc.Call(cmdLpop, args...)
}
// Lpush calls Redis LPUSH command.
func (cc *Cluster) Lpush(args ...interface{}) *redis.Reply {
return cc.Call(cmdLpush, args...)
}
// Lpushx calls Redis LPUSHX command.
func (cc *Cluster) Lpushx(args ...interface{}) *redis.Reply {
return cc.Call(cmdLpushx, args...)
}
// Lrange calls Redis LRANGE command.
func (cc *Cluster) Lrange(args ...interface{}) *redis.Reply {
return cc.Call(cmdLrange, args...)
}
// Lrem calls Redis LREM command.
func (cc *Cluster) Lrem(args ...interface{}) *redis.Reply {
return cc.Call(cmdLrem, args...)
}
// Lset calls Redis LSET command.
func (cc *Cluster) Lset(args ...interface{}) *redis.Reply {
return cc.Call(cmdLset, args...)
}
// Ltrim calls Redis LTRIM command.
func (cc *Cluster) Ltrim(args ...interface{}) *redis.Reply {
return cc.Call(cmdLtrim, args...)
}
// Mget calls Redis MGET command.
func (cc *Cluster) Mget(args ...interface{}) *redis.Reply {
return cc.Call(cmdMget, args...)
}
// Migrate calls Redis MIGRATE command.
func (cc *Cluster) Migrate(args ...interface{}) *redis.Reply {
return cc.Call(cmdMigrate, args...)
}
// Monitor calls Redis MONITOR command.
func (cc *Cluster) Monitor(args ...interface{}) *redis.Reply {
return cc.Call(cmdMonitor, args...)
}
// Move calls Redis MOVE command.
func (cc *Cluster) Move(args ...interface{}) *redis.Reply {
return cc.Call(cmdMove, args...)
}
// Mset calls Redis MSET command.
func (cc *Cluster) Mset(args ...interface{}) *redis.Reply {
return cc.Call(cmdMset, args...)
}
// Msetnx calls Redis MSETNX command.
func (cc *Cluster) Msetnx(args ...interface{}) *redis.Reply {
return cc.Call(cmdMsetnx, args...)
}
// Multi calls Redis MULTI command.
func (cc *Cluster) Multi(args ...interface{}) *redis.Reply {
return cc.Call(cmdMulti, args...)
}
// Object calls Redis OBJECT command.
func (cc *Cluster) Object(args ...interface{}) *redis.Reply {
return cc.Call(cmdObject, args...)
}
// Persist calls Redis PERSIST command.
func (cc *Cluster) Persist(args ...interface{}) *redis.Reply {
return cc.Call(cmdPersist, args...)
}
// Pexpire calls Redis PEXPIRE command.
func (cc *Cluster) Pexpire(args ...interface{}) *redis.Reply {
return cc.Call(cmdPexpire, args...)
}
// Pexpireat calls Redis PEXPIREAT command.
func (cc *Cluster) Pexpireat(args ...interface{}) *redis.Reply {
return cc.Call(cmdPexpireat, args...)
}
// Ping calls Redis PING command.
func (cc *Cluster) Ping(args ...interface{}) *redis.Reply {
return cc.Call(cmdPing, args...)
}
// Psetex calls Redis PSETEX command.
func (cc *Cluster) Psetex(args ...interface{}) *redis.Reply {
return cc.Call(cmdPsetex, args...)
}
// Psubscribe calls Redis PSUBSCRIBE command.
func (cc *Cluster) Psubscribe(args ...interface{}) *redis.Reply {
return cc.Call(cmdPsubscribe, args...)
}
// Pttl calls Redis PTTL command.
func (cc *Cluster) Pttl(args ...interface{}) *redis.Reply {
return cc.Call(cmdPttl, args...)
}
// Publish calls Redis PUBLISH command.
func (cc *Cluster) Publish(args ...interface{}) *redis.Reply {
return cc.Call(cmdPublish, args...)
}
// Punsubscribe calls Redis PUNSUBSCRIBE command.
func (cc *Cluster) Punsubscribe(args ...interface{}) *redis.Reply {
return cc.Call(cmdPunsubscribe, args...)
}
// Randomkey calls Redis RANDOMKEY command.
func (cc *Cluster) Randomkey(args ...interface{}) *redis.Reply {
return cc.Call(cmdRandomkey, args...)
}
// Rename calls Redis RENAME command.
func (cc *Cluster) Rename(args ...interface{}) *redis.Reply {
return cc.Call(cmdRename, args...)
}
// Renamenx calls Redis RENAMENX command.
func (cc *Cluster) Renamenx(args ...interface{}) *redis.Reply {
return cc.Call(cmdRenamenx, args...)
}
// Replconf calls Redis REPLCONF command.
func (cc *Cluster) Replconf(args ...interface{}) *redis.Reply {
return cc.Call(cmdReplconf, args...)
}
// Restore calls Redis RESTORE command.
func (cc *Cluster) Restore(args ...interface{}) *redis.Reply {
return cc.Call(cmdRestore, args...)
}
// Rpop calls Redis RPOP command.
func (cc *Cluster) Rpop(args ...interface{}) *redis.Reply {
return cc.Call(cmdRpop, args...)
}
// Rpoplpush calls Redis RPOPLPUSH command.
func (cc *Cluster) Rpoplpush(args ...interface{}) *redis.Reply {
return cc.Call(cmdRpoplpush, args...)
}
// Rpush calls Redis RPUSH command.
func (cc *Cluster) Rpush(args ...interface{}) *redis.Reply {
return cc.Call(cmdRpush, args...)
}
// Rpushx calls Redis RPUSHX command.
func (cc *Cluster) Rpushx(args ...interface{}) *redis.Reply {
return cc.Call(cmdRpushx, args...)
}
// Sadd calls Redis SADD command.
func (cc *Cluster) Sadd(args ...interface{}) *redis.Reply {
return cc.Call(cmdSadd, args...)
}
// Save calls Redis SAVE command.
func (cc *Cluster) Save(args ...interface{}) *redis.Reply {
return cc.Call(cmdSave, args...)
}
// Scard calls Redis SCARD command.
func (cc *Cluster) Scard(args ...interface{}) *redis.Reply {
return cc.Call(cmdScard, args...)
}
// Script calls Redis SCRIPT command.
func (cc *Cluster) Script(args ...interface{}) *redis.Reply {
return cc.Call(cmdScript, args...)
}
// Sdiff calls Redis SDIFF command.
func (cc *Cluster) Sdiff(args ...interface{}) *redis.Reply {
return cc.Call(cmdSdiff, args...)
}
// Sdiffstore calls Redis SDIFFSTORE command.
func (cc *Cluster) Sdiffstore(args ...interface{}) *redis.Reply {
return cc.Call(cmdSdiffstore, args...)
}
// Select calls Redis SELECT command.
func (cc *Cluster) Select(args ...interface{}) *redis.Reply {
return cc.Call(cmdSelect, args...)
}
// Set calls Redis SET command.
func (cc *Cluster) Set(args ...interface{}) *redis.Reply {
return cc.Call(cmdSet, args...)
}
// Setbit calls Redis SETBIT command.
func (cc *Cluster) Setbit(args ...interface{}) *redis.Reply {
return cc.Call(cmdSetbit, args...)
}
// Setex calls Redis SETEX command.
func (cc *Cluster) Setex(args ...interface{}) *redis.Reply {
return cc.Call(cmdSetex, args...)
}
// Setnx calls Redis SETNX command.
func (cc *Cluster) Setnx(args ...interface{}) *redis.Reply {
return cc.Call(cmdSetnx, args...)
}
// Setrange calls Redis SETRANGE command.
func (cc *Cluster) Setrange(args ...interface{}) *redis.Reply {
return cc.Call(cmdSetrange, args...)
}
// Shutdown calls Redis SHUTDOWN command.
func (cc *Cluster) Shutdown(args ...interface{}) *redis.Reply {
return cc.Call(cmdShutdown, args...)
}
// Sinter calls Redis SINTER command.
func (cc *Cluster) Sinter(args ...interface{}) *redis.Reply {
return cc.Call(cmdSinter, args...)
}
// Sinterstore calls Redis SINTERSTORE command.
func (cc *Cluster) Sinterstore(args ...interface{}) *redis.Reply {
return cc.Call(cmdSinterstore, args...)
}
// Sismember calls Redis SISMEMBER command.
func (cc *Cluster) Sismember(args ...interface{}) *redis.Reply {
return cc.Call(cmdSismember, args...)
}
// Slaveof calls Redis SLAVEOF command.
func (cc *Cluster) Slaveof(args ...interface{}) *redis.Reply {
return cc.Call(cmdSlaveof, args...)
}
// Smembers calls Redis SMEMBERS command.
func (cc *Cluster) Smembers(args ...interface{}) *redis.Reply {
return cc.Call(cmdSmembers, args...)
}
// Smove calls Redis SMOVE command.
func (cc *Cluster) Smove(args ...interface{}) *redis.Reply {
return cc.Call(cmdSmove, args...)
}
// Sort calls Redis SORT command.
func (cc *Cluster) Sort(args ...interface{}) *redis.Reply {
return cc.Call(cmdSort, args...)
}
// Spop calls Redis SPOP command.
func (cc *Cluster) Spop(args ...interface{}) *redis.Reply {
return cc.Call(cmdSpop, args...)
}
// Srandmember calls Redis SRANDMEMBER command.
func (cc *Cluster) Srandmember(args ...interface{}) *redis.Reply {
return cc.Call(cmdSrandmember, args...)
}
// Srem calls Redis SREM command.
func (cc *Cluster) Srem(args ...interface{}) *redis.Reply {
return cc.Call(cmdSrem, args...)
}
// Strlen calls Redis STRLEN command.
func (cc *Cluster) Strlen(args ...interface{}) *redis.Reply {
return cc.Call(cmdStrlen, args...)
}
// Subscribe calls Redis SUBSCRIBE command.
func (cc *Cluster) Subscribe(args ...interface{}) *redis.Reply {
return cc.Call(cmdSubscribe, args...)
}
// Sunion calls Redis SUNION command.
func (cc *Cluster) Sunion(args ...interface{}) *redis.Reply {
return cc.Call(cmdSunion, args...)
}
// Sunionstore calls Redis SUNIONSTORE command.
func (cc *Cluster) Sunionstore(args ...interface{}) *redis.Reply {
return cc.Call(cmdSunionstore, args...)
}
// Sync calls Redis SYNC command.
func (cc *Cluster) Sync(args ...interface{}) *redis.Reply {
return cc.Call(cmdSync, args...)
}
// Time calls Redis TIME command.
func (cc *Cluster) Time(args ...interface{}) *redis.Reply {
return cc.Call(cmdTime, args...)
}
// Ttl calls Redis TTL command.
func (cc *Cluster) Ttl(args ...interface{}) *redis.Reply {
return cc.Call(cmdTtl, args...)
}
// Type calls Redis TYPE command.
func (cc *Cluster) Type(args ...interface{}) *redis.Reply {
return cc.Call(cmdType, args...)
}
// Unsubscribe calls Redis UNSUBSCRIBE command.
func (cc *Cluster) Unsubscribe(args ...interface{}) *redis.Reply {
return cc.Call(cmdUnsubscribe, args...)
}
// Unwatch calls Redis UNWATCH command.
func (cc *Cluster) Unwatch(args ...interface{}) *redis.Reply {
return cc.Call(cmdUnwatch, args...)
}
// Watch calls Redis WATCH command.
func (cc *Cluster) Watch(args ...interface{}) *redis.Reply {
return cc.Call(cmdWatch, args...)
}
// Zadd calls Redis ZADD command.
func (cc *Cluster) Zadd(args ...interface{}) *redis.Reply {
return cc.Call(cmdZadd, args...)
}
// Zcard calls Redis ZCARD command.
func (cc *Cluster) Zcard(args ...interface{}) *redis.Reply {
return cc.Call(cmdZcard, args...)
}
// Zcount calls Redis ZCOUNT command.
func (cc *Cluster) Zcount(args ...interface{}) *redis.Reply {
return cc.Call(cmdZcount, args...)
}
// Zincrby calls Redis ZINCRBY command.
func (cc *Cluster) Zincrby(args ...interface{}) *redis.Reply {
return cc.Call(cmdZincrby, args...)
}
// Zinterstore calls Redis ZINTERSTORE command.
func (cc *Cluster) Zinterstore(args ...interface{}) *redis.Reply {
return cc.Call(cmdZinterstore, args...)
}
// Zrange calls Redis ZRANGE command.
func (cc *Cluster) Zrange(args ...interface{}) *redis.Reply {
return cc.Call(cmdZrange, args...)
}
// Zrangebyscore calls Redis ZRANGEBYSCORE command.
func (cc *Cluster) Zrangebyscore(args ...interface{}) *redis.Reply {
return cc.Call(cmdZrangebyscore, args...)
}
// Zrank calls Redis ZRANK command.
func (cc *Cluster) Zrank(args ...interface{}) *redis.Reply {
return cc.Call(cmdZrank, args...)
}
// Zrem calls Redis ZREM command.
func (cc *Cluster) Zrem(args ...interface{}) *redis.Reply {
return cc.Call(cmdZrem, args...)
}
// Zremrangebyrank calls Redis ZREMRANGEBYRANK command.
func (cc *Cluster) Zremrangebyrank(args ...interface{}) *redis.Reply {
return cc.Call(cmdZremrangebyrank, args...)
}
// Zremrangebyscore calls Redis ZREMRANGEBYSCORE command.
func (cc *Cluster) Zremrangebyscore(args ...interface{}) *redis.Reply {
return cc.Call(cmdZremrangebyscore, args...)
}
// Zrevrange calls Redis ZREVRANGE command.
func (cc *Cluster) Zrevrange(args ...interface{}) *redis.Reply {
return cc.Call(cmdZrevrange, args...)
}
// Zrevrangebyscore calls Redis ZREVRANGEBYSCORE command.
func (cc *Cluster) Zrevrangebyscore(args ...interface{}) *redis.Reply {
return cc.Call(cmdZrevrangebyscore, args...)
}
// Zrevrank calls Redis ZREVRANK command.
func (cc *Cluster) Zrevrank(args ...interface{}) *redis.Reply {
return cc.Call(cmdZrevrank, args...)
}
// Zscore calls Redis ZSCORE command.
func (cc *Cluster) Zscore(args ...interface{}) *redis.Reply {
return cc.Call(cmdZscore, args...)
}
// Zunionstore calls Redis ZUNIONSTORE command.
func (cc *Cluster) Zunionstore(args ...interface{}) *redis.Reply {
return cc.Call(cmdZunionstore, args...)
}
// AsyncAppend calls Redis APPEND asynchronously.
func (cc *Cluster) AsyncAppend(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdAppend, args...)
}
// AsyncAsking calls Redis ASKING asynchronously.
func (cc *Cluster) AsyncAsking(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdAsking, args...)
}
// AsyncAuth calls Redis AUTH asynchronously.
func (cc *Cluster) AsyncAuth(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdAuth, args...)
}
// AsyncBgrewriteaof calls Redis BGREWRITEAOF asynchronously.
func (cc *Cluster) AsyncBgrewriteaof(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdBgrewriteaof, args...)
}
// AsyncBgsave calls Redis BGSAVE asynchronously.
func (cc *Cluster) AsyncBgsave(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdBgsave, args...)
}
// AsyncBitcount calls Redis BITCOUNT asynchronously.
func (cc *Cluster) AsyncBitcount(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdBitcount, args...)
}
// AsyncBitop calls Redis BITOP asynchronously.
func (cc *Cluster) AsyncBitop(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdBitop, args...)
}
// AsyncBlpop calls Redis BLPOP asynchronously.
func (cc *Cluster) AsyncBlpop(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdBlpop, args...)
}
// AsyncBrpop calls Redis BRPOP asynchronously.
func (cc *Cluster) AsyncBrpop(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdBrpop, args...)
}
// AsyncBrpoplpush calls Redis BRPOPLPUSH asynchronously.
func (cc *Cluster) AsyncBrpoplpush(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdBrpoplpush, args...)
}
// AsyncClient calls Redis CLIENT asynchronously.
func (cc *Cluster) AsyncClient(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdClient, args...)
}
// AsyncCluster calls Redis CLUSTER asynchronously.
func (cc *Cluster) AsyncCluster(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdCluster, args...)
}
// AsyncConfig calls Redis CONFIG asynchronously.
func (cc *Cluster) AsyncConfig(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdConfig, args...)
}
// AsyncDbsize calls Redis DBSIZE asynchronously.
func (cc *Cluster) AsyncDbsize(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdDbsize, args...)
}
// AsyncDebug calls Redis DEBUG asynchronously.
func (cc *Cluster) AsyncDebug(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdDebug, args...)
}
// AsyncDecr calls Redis DECR asynchronously.
func (cc *Cluster) AsyncDecr(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdDecr, args...)
}
// AsyncDecrby calls Redis DECRBY asynchronously.
func (cc *Cluster) AsyncDecrby(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdDecrby, args...)
}
// AsyncDel calls Redis DEL asynchronously.
func (cc *Cluster) AsyncDel(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdDel, args...)
}
// AsyncDiscard calls Redis DISCARD asynchronously.
func (cc *Cluster) AsyncDiscard(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdDiscard, args...)
}
// AsyncDump calls Redis DUMP asynchronously.
func (cc *Cluster) AsyncDump(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdDump, args...)
}
// AsyncEcho calls Redis ECHO asynchronously.
func (cc *Cluster) AsyncEcho(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdEcho, args...)
}
// AsyncEval calls Redis EVAL asynchronously.
func (cc *Cluster) AsyncEval(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdEval, args...)
}
// AsyncExec calls Redis EXEC asynchronously.
func (cc *Cluster) AsyncExec(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdExec, args...)
}
// AsyncExists calls Redis EXISTS asynchronously.
func (cc *Cluster) AsyncExists(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdExists, args...)
}
// AsyncExpire calls Redis EXPIRE asynchronously.
func (cc *Cluster) AsyncExpire(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdExpire, args...)
}
// AsyncExpireat calls Redis EXPIREAT asynchronously.
func (cc *Cluster) AsyncExpireat(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdExpireat, args...)
}
// AsyncFlushall calls Redis FLUSHALL asynchronously.
func (cc *Cluster) AsyncFlushall(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdFlushall, args...)
}
// AsyncFlushdb calls Redis FLUSHDB asynchronously.
func (cc *Cluster) AsyncFlushdb(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdFlushdb, args...)
}
// AsyncGet calls Redis GET asynchronously.
func (cc *Cluster) AsyncGet(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdGet, args...)
}
// AsyncGetbit calls Redis GETBIT asynchronously.
func (cc *Cluster) AsyncGetbit(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdGetbit, args...)
}
// AsyncGetrange calls Redis GETRANGE asynchronously.
func (cc *Cluster) AsyncGetrange(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdGetrange, args...)
}
// AsyncGetset calls Redis GETSET asynchronously.
func (cc *Cluster) AsyncGetset(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdGetset, args...)
}
// AsyncHdel calls Redis HDEL asynchronously.
func (cc *Cluster) AsyncHdel(args ...interface{}) redis.Future {
return cc.AsyncCall(cmdHdel, args...)
}
// AsyncHexists calls Redis HEXISTS asynchronously.