forked from redis/redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.def
11275 lines (9174 loc) · 439 KB
/
commands.def
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
/* Automatically generated by generate-command-code.py, do not edit. */
/* We have fabulous commands from
* the fantastic
* Redis Command Table! */
/* Must match redisCommandGroup */
const char *COMMAND_GROUP_STR[] = {
"generic",
"string",
"list",
"set",
"sorted-set",
"hash",
"pubsub",
"transactions",
"connection",
"server",
"scripting",
"hyperloglog",
"cluster",
"sentinel",
"geo",
"stream",
"bitmap",
"module"
};
const char *commandGroupStr(int index) {
return COMMAND_GROUP_STR[index];
}
/********** BITCOUNT ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* BITCOUNT history */
commandHistory BITCOUNT_History[] = {
{"7.0.0","Added the `BYTE|BIT` option."},
};
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* BITCOUNT tips */
#define BITCOUNT_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* BITCOUNT key specs */
keySpec BITCOUNT_Keyspecs[1] = {
{NULL,CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}
};
#endif
/* BITCOUNT range unit argument table */
struct COMMAND_ARG BITCOUNT_range_unit_Subargs[] = {
{MAKE_ARG("byte",ARG_TYPE_PURE_TOKEN,-1,"BYTE",NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("bit",ARG_TYPE_PURE_TOKEN,-1,"BIT",NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* BITCOUNT range argument table */
struct COMMAND_ARG BITCOUNT_range_Subargs[] = {
{MAKE_ARG("start",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("end",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("unit",ARG_TYPE_ONEOF,-1,NULL,NULL,"7.0.0",CMD_ARG_OPTIONAL,2,NULL),.subargs=BITCOUNT_range_unit_Subargs},
};
/* BITCOUNT argument table */
struct COMMAND_ARG BITCOUNT_Args[] = {
{MAKE_ARG("key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("range",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,3,NULL),.subargs=BITCOUNT_range_Subargs},
};
/********** BITFIELD ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* BITFIELD history */
#define BITFIELD_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* BITFIELD tips */
#define BITFIELD_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* BITFIELD key specs */
keySpec BITFIELD_Keyspecs[1] = {
{"This command allows both access and modification of the key",CMD_KEY_RW|CMD_KEY_UPDATE|CMD_KEY_ACCESS|CMD_KEY_VARIABLE_FLAGS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}
};
#endif
/* BITFIELD operation get_block argument table */
struct COMMAND_ARG BITFIELD_operation_get_block_Subargs[] = {
{MAKE_ARG("encoding",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* BITFIELD operation write overflow_block argument table */
struct COMMAND_ARG BITFIELD_operation_write_overflow_block_Subargs[] = {
{MAKE_ARG("wrap",ARG_TYPE_PURE_TOKEN,-1,"WRAP",NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("sat",ARG_TYPE_PURE_TOKEN,-1,"SAT",NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("fail",ARG_TYPE_PURE_TOKEN,-1,"FAIL",NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* BITFIELD operation write write_operation set_block argument table */
struct COMMAND_ARG BITFIELD_operation_write_write_operation_set_block_Subargs[] = {
{MAKE_ARG("encoding",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("value",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* BITFIELD operation write write_operation incrby_block argument table */
struct COMMAND_ARG BITFIELD_operation_write_write_operation_incrby_block_Subargs[] = {
{MAKE_ARG("encoding",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("increment",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* BITFIELD operation write write_operation argument table */
struct COMMAND_ARG BITFIELD_operation_write_write_operation_Subargs[] = {
{MAKE_ARG("set-block",ARG_TYPE_BLOCK,-1,"SET",NULL,NULL,CMD_ARG_NONE,3,NULL),.subargs=BITFIELD_operation_write_write_operation_set_block_Subargs},
{MAKE_ARG("incrby-block",ARG_TYPE_BLOCK,-1,"INCRBY",NULL,NULL,CMD_ARG_NONE,3,NULL),.subargs=BITFIELD_operation_write_write_operation_incrby_block_Subargs},
};
/* BITFIELD operation write argument table */
struct COMMAND_ARG BITFIELD_operation_write_Subargs[] = {
{MAKE_ARG("overflow-block",ARG_TYPE_ONEOF,-1,"OVERFLOW",NULL,NULL,CMD_ARG_OPTIONAL,3,NULL),.subargs=BITFIELD_operation_write_overflow_block_Subargs},
{MAKE_ARG("write-operation",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,2,NULL),.subargs=BITFIELD_operation_write_write_operation_Subargs},
};
/* BITFIELD operation argument table */
struct COMMAND_ARG BITFIELD_operation_Subargs[] = {
{MAKE_ARG("get-block",ARG_TYPE_BLOCK,-1,"GET",NULL,NULL,CMD_ARG_NONE,2,NULL),.subargs=BITFIELD_operation_get_block_Subargs},
{MAKE_ARG("write",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_NONE,2,NULL),.subargs=BITFIELD_operation_write_Subargs},
};
/* BITFIELD argument table */
struct COMMAND_ARG BITFIELD_Args[] = {
{MAKE_ARG("key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("operation",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE,2,NULL),.subargs=BITFIELD_operation_Subargs},
};
/********** BITFIELD_RO ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* BITFIELD_RO history */
#define BITFIELD_RO_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* BITFIELD_RO tips */
#define BITFIELD_RO_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* BITFIELD_RO key specs */
keySpec BITFIELD_RO_Keyspecs[1] = {
{NULL,CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}
};
#endif
/* BITFIELD_RO get_block argument table */
struct COMMAND_ARG BITFIELD_RO_get_block_Subargs[] = {
{MAKE_ARG("encoding",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* BITFIELD_RO argument table */
struct COMMAND_ARG BITFIELD_RO_Args[] = {
{MAKE_ARG("key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("get-block",ARG_TYPE_BLOCK,-1,"GET",NULL,NULL,CMD_ARG_OPTIONAL|CMD_ARG_MULTIPLE|CMD_ARG_MULTIPLE_TOKEN,2,NULL),.subargs=BITFIELD_RO_get_block_Subargs},
};
/********** BITOP ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* BITOP history */
#define BITOP_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* BITOP tips */
#define BITOP_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* BITOP key specs */
keySpec BITOP_Keyspecs[2] = {
{NULL,CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}},{NULL,CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={3},KSPEC_FK_RANGE,.fk.range={-1,1,0}}
};
#endif
/* BITOP operation argument table */
struct COMMAND_ARG BITOP_operation_Subargs[] = {
{MAKE_ARG("and",ARG_TYPE_PURE_TOKEN,-1,"AND",NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("or",ARG_TYPE_PURE_TOKEN,-1,"OR",NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("xor",ARG_TYPE_PURE_TOKEN,-1,"XOR",NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("not",ARG_TYPE_PURE_TOKEN,-1,"NOT",NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* BITOP argument table */
struct COMMAND_ARG BITOP_Args[] = {
{MAKE_ARG("operation",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,4,NULL),.subargs=BITOP_operation_Subargs},
{MAKE_ARG("destkey",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("key",ARG_TYPE_KEY,1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,0,NULL)},
};
/********** BITPOS ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* BITPOS history */
commandHistory BITPOS_History[] = {
{"7.0.0","Added the `BYTE|BIT` option."},
};
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* BITPOS tips */
#define BITPOS_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* BITPOS key specs */
keySpec BITPOS_Keyspecs[1] = {
{NULL,CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}
};
#endif
/* BITPOS range end_unit_block unit argument table */
struct COMMAND_ARG BITPOS_range_end_unit_block_unit_Subargs[] = {
{MAKE_ARG("byte",ARG_TYPE_PURE_TOKEN,-1,"BYTE",NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("bit",ARG_TYPE_PURE_TOKEN,-1,"BIT",NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* BITPOS range end_unit_block argument table */
struct COMMAND_ARG BITPOS_range_end_unit_block_Subargs[] = {
{MAKE_ARG("end",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("unit",ARG_TYPE_ONEOF,-1,NULL,NULL,"7.0.0",CMD_ARG_OPTIONAL,2,NULL),.subargs=BITPOS_range_end_unit_block_unit_Subargs},
};
/* BITPOS range argument table */
struct COMMAND_ARG BITPOS_range_Subargs[] = {
{MAKE_ARG("start",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("end-unit-block",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,2,NULL),.subargs=BITPOS_range_end_unit_block_Subargs},
};
/* BITPOS argument table */
struct COMMAND_ARG BITPOS_Args[] = {
{MAKE_ARG("key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("bit",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("range",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,2,NULL),.subargs=BITPOS_range_Subargs},
};
/********** GETBIT ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* GETBIT history */
#define GETBIT_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* GETBIT tips */
#define GETBIT_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* GETBIT key specs */
keySpec GETBIT_Keyspecs[1] = {
{NULL,CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}
};
#endif
/* GETBIT argument table */
struct COMMAND_ARG GETBIT_Args[] = {
{MAKE_ARG("key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/********** SETBIT ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* SETBIT history */
#define SETBIT_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* SETBIT tips */
#define SETBIT_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* SETBIT key specs */
keySpec SETBIT_Keyspecs[1] = {
{NULL,CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}
};
#endif
/* SETBIT argument table */
struct COMMAND_ARG SETBIT_Args[] = {
{MAKE_ARG("key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("offset",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("value",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/********** ASKING ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* ASKING history */
#define ASKING_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* ASKING tips */
#define ASKING_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* ASKING key specs */
#define ASKING_Keyspecs NULL
#endif
/********** CLUSTER ADDSLOTS ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER ADDSLOTS history */
#define CLUSTER_ADDSLOTS_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER ADDSLOTS tips */
#define CLUSTER_ADDSLOTS_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER ADDSLOTS key specs */
#define CLUSTER_ADDSLOTS_Keyspecs NULL
#endif
/* CLUSTER ADDSLOTS argument table */
struct COMMAND_ARG CLUSTER_ADDSLOTS_Args[] = {
{MAKE_ARG("slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,0,NULL)},
};
/********** CLUSTER ADDSLOTSRANGE ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER ADDSLOTSRANGE history */
#define CLUSTER_ADDSLOTSRANGE_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER ADDSLOTSRANGE tips */
#define CLUSTER_ADDSLOTSRANGE_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER ADDSLOTSRANGE key specs */
#define CLUSTER_ADDSLOTSRANGE_Keyspecs NULL
#endif
/* CLUSTER ADDSLOTSRANGE range argument table */
struct COMMAND_ARG CLUSTER_ADDSLOTSRANGE_range_Subargs[] = {
{MAKE_ARG("start-slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("end-slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* CLUSTER ADDSLOTSRANGE argument table */
struct COMMAND_ARG CLUSTER_ADDSLOTSRANGE_Args[] = {
{MAKE_ARG("range",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,2,NULL),.subargs=CLUSTER_ADDSLOTSRANGE_range_Subargs},
};
/********** CLUSTER BUMPEPOCH ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER BUMPEPOCH history */
#define CLUSTER_BUMPEPOCH_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER BUMPEPOCH tips */
const char *CLUSTER_BUMPEPOCH_Tips[] = {
"nondeterministic_output",
};
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER BUMPEPOCH key specs */
#define CLUSTER_BUMPEPOCH_Keyspecs NULL
#endif
/********** CLUSTER COUNT_FAILURE_REPORTS ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER COUNT_FAILURE_REPORTS history */
#define CLUSTER_COUNT_FAILURE_REPORTS_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER COUNT_FAILURE_REPORTS tips */
const char *CLUSTER_COUNT_FAILURE_REPORTS_Tips[] = {
"nondeterministic_output",
};
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER COUNT_FAILURE_REPORTS key specs */
#define CLUSTER_COUNT_FAILURE_REPORTS_Keyspecs NULL
#endif
/* CLUSTER COUNT_FAILURE_REPORTS argument table */
struct COMMAND_ARG CLUSTER_COUNT_FAILURE_REPORTS_Args[] = {
{MAKE_ARG("node-id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/********** CLUSTER COUNTKEYSINSLOT ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER COUNTKEYSINSLOT history */
#define CLUSTER_COUNTKEYSINSLOT_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER COUNTKEYSINSLOT tips */
#define CLUSTER_COUNTKEYSINSLOT_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER COUNTKEYSINSLOT key specs */
#define CLUSTER_COUNTKEYSINSLOT_Keyspecs NULL
#endif
/* CLUSTER COUNTKEYSINSLOT argument table */
struct COMMAND_ARG CLUSTER_COUNTKEYSINSLOT_Args[] = {
{MAKE_ARG("slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/********** CLUSTER DELSLOTS ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER DELSLOTS history */
#define CLUSTER_DELSLOTS_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER DELSLOTS tips */
#define CLUSTER_DELSLOTS_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER DELSLOTS key specs */
#define CLUSTER_DELSLOTS_Keyspecs NULL
#endif
/* CLUSTER DELSLOTS argument table */
struct COMMAND_ARG CLUSTER_DELSLOTS_Args[] = {
{MAKE_ARG("slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,0,NULL)},
};
/********** CLUSTER DELSLOTSRANGE ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER DELSLOTSRANGE history */
#define CLUSTER_DELSLOTSRANGE_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER DELSLOTSRANGE tips */
#define CLUSTER_DELSLOTSRANGE_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER DELSLOTSRANGE key specs */
#define CLUSTER_DELSLOTSRANGE_Keyspecs NULL
#endif
/* CLUSTER DELSLOTSRANGE range argument table */
struct COMMAND_ARG CLUSTER_DELSLOTSRANGE_range_Subargs[] = {
{MAKE_ARG("start-slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("end-slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* CLUSTER DELSLOTSRANGE argument table */
struct COMMAND_ARG CLUSTER_DELSLOTSRANGE_Args[] = {
{MAKE_ARG("range",ARG_TYPE_BLOCK,-1,NULL,NULL,NULL,CMD_ARG_MULTIPLE,2,NULL),.subargs=CLUSTER_DELSLOTSRANGE_range_Subargs},
};
/********** CLUSTER FAILOVER ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER FAILOVER history */
#define CLUSTER_FAILOVER_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER FAILOVER tips */
#define CLUSTER_FAILOVER_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER FAILOVER key specs */
#define CLUSTER_FAILOVER_Keyspecs NULL
#endif
/* CLUSTER FAILOVER options argument table */
struct COMMAND_ARG CLUSTER_FAILOVER_options_Subargs[] = {
{MAKE_ARG("force",ARG_TYPE_PURE_TOKEN,-1,"FORCE",NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("takeover",ARG_TYPE_PURE_TOKEN,-1,"TAKEOVER",NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* CLUSTER FAILOVER argument table */
struct COMMAND_ARG CLUSTER_FAILOVER_Args[] = {
{MAKE_ARG("options",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,2,NULL),.subargs=CLUSTER_FAILOVER_options_Subargs},
};
/********** CLUSTER FLUSHSLOTS ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER FLUSHSLOTS history */
#define CLUSTER_FLUSHSLOTS_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER FLUSHSLOTS tips */
#define CLUSTER_FLUSHSLOTS_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER FLUSHSLOTS key specs */
#define CLUSTER_FLUSHSLOTS_Keyspecs NULL
#endif
/********** CLUSTER FORGET ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER FORGET history */
#define CLUSTER_FORGET_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER FORGET tips */
#define CLUSTER_FORGET_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER FORGET key specs */
#define CLUSTER_FORGET_Keyspecs NULL
#endif
/* CLUSTER FORGET argument table */
struct COMMAND_ARG CLUSTER_FORGET_Args[] = {
{MAKE_ARG("node-id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/********** CLUSTER GETKEYSINSLOT ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER GETKEYSINSLOT history */
#define CLUSTER_GETKEYSINSLOT_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER GETKEYSINSLOT tips */
const char *CLUSTER_GETKEYSINSLOT_Tips[] = {
"nondeterministic_output",
};
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER GETKEYSINSLOT key specs */
#define CLUSTER_GETKEYSINSLOT_Keyspecs NULL
#endif
/* CLUSTER GETKEYSINSLOT argument table */
struct COMMAND_ARG CLUSTER_GETKEYSINSLOT_Args[] = {
{MAKE_ARG("slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("count",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/********** CLUSTER HELP ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER HELP history */
#define CLUSTER_HELP_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER HELP tips */
#define CLUSTER_HELP_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER HELP key specs */
#define CLUSTER_HELP_Keyspecs NULL
#endif
/********** CLUSTER INFO ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER INFO history */
#define CLUSTER_INFO_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER INFO tips */
const char *CLUSTER_INFO_Tips[] = {
"nondeterministic_output",
};
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER INFO key specs */
#define CLUSTER_INFO_Keyspecs NULL
#endif
/********** CLUSTER KEYSLOT ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER KEYSLOT history */
#define CLUSTER_KEYSLOT_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER KEYSLOT tips */
#define CLUSTER_KEYSLOT_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER KEYSLOT key specs */
#define CLUSTER_KEYSLOT_Keyspecs NULL
#endif
/* CLUSTER KEYSLOT argument table */
struct COMMAND_ARG CLUSTER_KEYSLOT_Args[] = {
{MAKE_ARG("key",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/********** CLUSTER LINKS ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER LINKS history */
#define CLUSTER_LINKS_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER LINKS tips */
const char *CLUSTER_LINKS_Tips[] = {
"nondeterministic_output",
};
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER LINKS key specs */
#define CLUSTER_LINKS_Keyspecs NULL
#endif
/********** CLUSTER MEET ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER MEET history */
commandHistory CLUSTER_MEET_History[] = {
{"4.0.0","Added the optional `cluster_bus_port` argument."},
};
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER MEET tips */
#define CLUSTER_MEET_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER MEET key specs */
#define CLUSTER_MEET_Keyspecs NULL
#endif
/* CLUSTER MEET argument table */
struct COMMAND_ARG CLUSTER_MEET_Args[] = {
{MAKE_ARG("ip",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("port",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("cluster-bus-port",ARG_TYPE_INTEGER,-1,NULL,NULL,"4.0.0",CMD_ARG_OPTIONAL,0,NULL)},
};
/********** CLUSTER MYID ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER MYID history */
#define CLUSTER_MYID_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER MYID tips */
#define CLUSTER_MYID_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER MYID key specs */
#define CLUSTER_MYID_Keyspecs NULL
#endif
/********** CLUSTER MYSHARDID ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER MYSHARDID history */
#define CLUSTER_MYSHARDID_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER MYSHARDID tips */
const char *CLUSTER_MYSHARDID_Tips[] = {
"nondeterministic_output",
};
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER MYSHARDID key specs */
#define CLUSTER_MYSHARDID_Keyspecs NULL
#endif
/********** CLUSTER NODES ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER NODES history */
#define CLUSTER_NODES_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER NODES tips */
const char *CLUSTER_NODES_Tips[] = {
"nondeterministic_output",
};
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER NODES key specs */
#define CLUSTER_NODES_Keyspecs NULL
#endif
/********** CLUSTER REPLICAS ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER REPLICAS history */
#define CLUSTER_REPLICAS_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER REPLICAS tips */
const char *CLUSTER_REPLICAS_Tips[] = {
"nondeterministic_output",
};
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER REPLICAS key specs */
#define CLUSTER_REPLICAS_Keyspecs NULL
#endif
/* CLUSTER REPLICAS argument table */
struct COMMAND_ARG CLUSTER_REPLICAS_Args[] = {
{MAKE_ARG("node-id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/********** CLUSTER REPLICATE ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER REPLICATE history */
#define CLUSTER_REPLICATE_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER REPLICATE tips */
#define CLUSTER_REPLICATE_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER REPLICATE key specs */
#define CLUSTER_REPLICATE_Keyspecs NULL
#endif
/* CLUSTER REPLICATE argument table */
struct COMMAND_ARG CLUSTER_REPLICATE_Args[] = {
{MAKE_ARG("node-id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/********** CLUSTER RESET ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER RESET history */
#define CLUSTER_RESET_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER RESET tips */
#define CLUSTER_RESET_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER RESET key specs */
#define CLUSTER_RESET_Keyspecs NULL
#endif
/* CLUSTER RESET reset_type argument table */
struct COMMAND_ARG CLUSTER_RESET_reset_type_Subargs[] = {
{MAKE_ARG("hard",ARG_TYPE_PURE_TOKEN,-1,"HARD",NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("soft",ARG_TYPE_PURE_TOKEN,-1,"SOFT",NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* CLUSTER RESET argument table */
struct COMMAND_ARG CLUSTER_RESET_Args[] = {
{MAKE_ARG("reset-type",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_OPTIONAL,2,NULL),.subargs=CLUSTER_RESET_reset_type_Subargs},
};
/********** CLUSTER SAVECONFIG ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER SAVECONFIG history */
#define CLUSTER_SAVECONFIG_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER SAVECONFIG tips */
#define CLUSTER_SAVECONFIG_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER SAVECONFIG key specs */
#define CLUSTER_SAVECONFIG_Keyspecs NULL
#endif
/********** CLUSTER SET_CONFIG_EPOCH ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER SET_CONFIG_EPOCH history */
#define CLUSTER_SET_CONFIG_EPOCH_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER SET_CONFIG_EPOCH tips */
#define CLUSTER_SET_CONFIG_EPOCH_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER SET_CONFIG_EPOCH key specs */
#define CLUSTER_SET_CONFIG_EPOCH_Keyspecs NULL
#endif
/* CLUSTER SET_CONFIG_EPOCH argument table */
struct COMMAND_ARG CLUSTER_SET_CONFIG_EPOCH_Args[] = {
{MAKE_ARG("config-epoch",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/********** CLUSTER SETSLOT ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER SETSLOT history */
#define CLUSTER_SETSLOT_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER SETSLOT tips */
#define CLUSTER_SETSLOT_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER SETSLOT key specs */
#define CLUSTER_SETSLOT_Keyspecs NULL
#endif
/* CLUSTER SETSLOT subcommand argument table */
struct COMMAND_ARG CLUSTER_SETSLOT_subcommand_Subargs[] = {
{MAKE_ARG("importing",ARG_TYPE_STRING,-1,"IMPORTING",NULL,NULL,CMD_ARG_NONE,0,NULL),.display_text="node-id"},
{MAKE_ARG("migrating",ARG_TYPE_STRING,-1,"MIGRATING",NULL,NULL,CMD_ARG_NONE,0,NULL),.display_text="node-id"},
{MAKE_ARG("node",ARG_TYPE_STRING,-1,"NODE",NULL,NULL,CMD_ARG_NONE,0,NULL),.display_text="node-id"},
{MAKE_ARG("stable",ARG_TYPE_PURE_TOKEN,-1,"STABLE",NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/* CLUSTER SETSLOT argument table */
struct COMMAND_ARG CLUSTER_SETSLOT_Args[] = {
{MAKE_ARG("slot",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
{MAKE_ARG("subcommand",ARG_TYPE_ONEOF,-1,NULL,NULL,NULL,CMD_ARG_NONE,4,NULL),.subargs=CLUSTER_SETSLOT_subcommand_Subargs},
};
/********** CLUSTER SHARDS ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER SHARDS history */
#define CLUSTER_SHARDS_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER SHARDS tips */
const char *CLUSTER_SHARDS_Tips[] = {
"nondeterministic_output",
};
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER SHARDS key specs */
#define CLUSTER_SHARDS_Keyspecs NULL
#endif
/********** CLUSTER SLAVES ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER SLAVES history */
#define CLUSTER_SLAVES_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER SLAVES tips */
const char *CLUSTER_SLAVES_Tips[] = {
"nondeterministic_output",
};
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER SLAVES key specs */
#define CLUSTER_SLAVES_Keyspecs NULL
#endif
/* CLUSTER SLAVES argument table */
struct COMMAND_ARG CLUSTER_SLAVES_Args[] = {
{MAKE_ARG("node-id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE,0,NULL)},
};
/********** CLUSTER SLOTS ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER SLOTS history */
commandHistory CLUSTER_SLOTS_History[] = {
{"4.0.0","Added node IDs."},
{"7.0.0","Added additional networking metadata field."},
};
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER SLOTS tips */
const char *CLUSTER_SLOTS_Tips[] = {
"nondeterministic_output",
};
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER SLOTS key specs */
#define CLUSTER_SLOTS_Keyspecs NULL
#endif
/* CLUSTER command table */
struct COMMAND_STRUCT CLUSTER_Subcommands[] = {
{MAKE_CMD("addslots","Assigns new hash slots to a node.","O(N) where N is the total number of hash slot arguments","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_ADDSLOTS_History,0,CLUSTER_ADDSLOTS_Tips,0,clusterCommand,-3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_ADDSLOTS_Keyspecs,0,NULL,1),.args=CLUSTER_ADDSLOTS_Args},
{MAKE_CMD("addslotsrange","Assigns new hash slot ranges to a node.","O(N) where N is the total number of the slots between the start slot and end slot arguments.","7.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_ADDSLOTSRANGE_History,0,CLUSTER_ADDSLOTSRANGE_Tips,0,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_ADDSLOTSRANGE_Keyspecs,0,NULL,1),.args=CLUSTER_ADDSLOTSRANGE_Args},
{MAKE_CMD("bumpepoch","Advances the cluster config epoch.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_BUMPEPOCH_History,0,CLUSTER_BUMPEPOCH_Tips,1,clusterCommand,2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_BUMPEPOCH_Keyspecs,0,NULL,0)},
{MAKE_CMD("count-failure-reports","Returns the number of active failure reports active for a node.","O(N) where N is the number of failure reports","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_COUNT_FAILURE_REPORTS_History,0,CLUSTER_COUNT_FAILURE_REPORTS_Tips,1,clusterCommand,3,CMD_ADMIN|CMD_STALE,0,CLUSTER_COUNT_FAILURE_REPORTS_Keyspecs,0,NULL,1),.args=CLUSTER_COUNT_FAILURE_REPORTS_Args},
{MAKE_CMD("countkeysinslot","Returns the number of keys in a hash slot.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_COUNTKEYSINSLOT_History,0,CLUSTER_COUNTKEYSINSLOT_Tips,0,clusterCommand,3,CMD_STALE,0,CLUSTER_COUNTKEYSINSLOT_Keyspecs,0,NULL,1),.args=CLUSTER_COUNTKEYSINSLOT_Args},
{MAKE_CMD("delslots","Sets hash slots as unbound for a node.","O(N) where N is the total number of hash slot arguments","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_DELSLOTS_History,0,CLUSTER_DELSLOTS_Tips,0,clusterCommand,-3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_DELSLOTS_Keyspecs,0,NULL,1),.args=CLUSTER_DELSLOTS_Args},
{MAKE_CMD("delslotsrange","Sets hash slot ranges as unbound for a node.","O(N) where N is the total number of the slots between the start slot and end slot arguments.","7.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_DELSLOTSRANGE_History,0,CLUSTER_DELSLOTSRANGE_Tips,0,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_DELSLOTSRANGE_Keyspecs,0,NULL,1),.args=CLUSTER_DELSLOTSRANGE_Args},
{MAKE_CMD("failover","Forces a replica to perform a manual failover of its master.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_FAILOVER_History,0,CLUSTER_FAILOVER_Tips,0,clusterCommand,-2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_FAILOVER_Keyspecs,0,NULL,1),.args=CLUSTER_FAILOVER_Args},
{MAKE_CMD("flushslots","Deletes all slots information from a node.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_FLUSHSLOTS_History,0,CLUSTER_FLUSHSLOTS_Tips,0,clusterCommand,2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_FLUSHSLOTS_Keyspecs,0,NULL,0)},
{MAKE_CMD("forget","Removes a node from the nodes table.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_FORGET_History,0,CLUSTER_FORGET_Tips,0,clusterCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_FORGET_Keyspecs,0,NULL,1),.args=CLUSTER_FORGET_Args},
{MAKE_CMD("getkeysinslot","Returns the key names in a hash slot.","O(N) where N is the number of requested keys","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_GETKEYSINSLOT_History,0,CLUSTER_GETKEYSINSLOT_Tips,1,clusterCommand,4,CMD_STALE,0,CLUSTER_GETKEYSINSLOT_Keyspecs,0,NULL,2),.args=CLUSTER_GETKEYSINSLOT_Args},
{MAKE_CMD("help","Returns helpful text about the different subcommands.","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_HELP_History,0,CLUSTER_HELP_Tips,0,clusterCommand,2,CMD_LOADING|CMD_STALE,0,CLUSTER_HELP_Keyspecs,0,NULL,0)},
{MAKE_CMD("info","Returns information about the state of a node.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_INFO_History,0,CLUSTER_INFO_Tips,1,clusterCommand,2,CMD_STALE,0,CLUSTER_INFO_Keyspecs,0,NULL,0)},
{MAKE_CMD("keyslot","Returns the hash slot for a key.","O(N) where N is the number of bytes in the key","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_KEYSLOT_History,0,CLUSTER_KEYSLOT_Tips,0,clusterCommand,3,CMD_STALE,0,CLUSTER_KEYSLOT_Keyspecs,0,NULL,1),.args=CLUSTER_KEYSLOT_Args},
{MAKE_CMD("links","Returns a list of all TCP links to and from peer nodes.","O(N) where N is the total number of Cluster nodes","7.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_LINKS_History,0,CLUSTER_LINKS_Tips,1,clusterCommand,2,CMD_STALE,0,CLUSTER_LINKS_Keyspecs,0,NULL,0)},
{MAKE_CMD("meet","Forces a node to handshake with another node.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_MEET_History,1,CLUSTER_MEET_Tips,0,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_MEET_Keyspecs,0,NULL,3),.args=CLUSTER_MEET_Args},
{MAKE_CMD("myid","Returns the ID of a node.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_MYID_History,0,CLUSTER_MYID_Tips,0,clusterCommand,2,CMD_STALE,0,CLUSTER_MYID_Keyspecs,0,NULL,0)},
{MAKE_CMD("myshardid","Returns the shard ID of a node.","O(1)","7.2.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_MYSHARDID_History,0,CLUSTER_MYSHARDID_Tips,1,clusterCommand,2,CMD_STALE,0,CLUSTER_MYSHARDID_Keyspecs,0,NULL,0)},
{MAKE_CMD("nodes","Returns the cluster configuration for a node.","O(N) where N is the total number of Cluster nodes","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_NODES_History,0,CLUSTER_NODES_Tips,1,clusterCommand,2,CMD_STALE,0,CLUSTER_NODES_Keyspecs,0,NULL,0)},
{MAKE_CMD("replicas","Lists the replica nodes of a master node.","O(N) where N is the number of replicas.","5.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_REPLICAS_History,0,CLUSTER_REPLICAS_Tips,1,clusterCommand,3,CMD_ADMIN|CMD_STALE,0,CLUSTER_REPLICAS_Keyspecs,0,NULL,1),.args=CLUSTER_REPLICAS_Args},
{MAKE_CMD("replicate","Configure a node as replica of a master node.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_REPLICATE_History,0,CLUSTER_REPLICATE_Tips,0,clusterCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_REPLICATE_Keyspecs,0,NULL,1),.args=CLUSTER_REPLICATE_Args},
{MAKE_CMD("reset","Resets a node.","O(N) where N is the number of known nodes. The command may execute a FLUSHALL as a side effect.","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_RESET_History,0,CLUSTER_RESET_Tips,0,clusterCommand,-2,CMD_ADMIN|CMD_STALE|CMD_NOSCRIPT,0,CLUSTER_RESET_Keyspecs,0,NULL,1),.args=CLUSTER_RESET_Args},
{MAKE_CMD("saveconfig","Forces a node to save the cluster configuration to disk.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_SAVECONFIG_History,0,CLUSTER_SAVECONFIG_Tips,0,clusterCommand,2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_SAVECONFIG_Keyspecs,0,NULL,0)},
{MAKE_CMD("set-config-epoch","Sets the configuration epoch for a new node.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_SET_CONFIG_EPOCH_History,0,CLUSTER_SET_CONFIG_EPOCH_Tips,0,clusterCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_SET_CONFIG_EPOCH_Keyspecs,0,NULL,1),.args=CLUSTER_SET_CONFIG_EPOCH_Args},
{MAKE_CMD("setslot","Binds a hash slot to a node.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_SETSLOT_History,0,CLUSTER_SETSLOT_Tips,0,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,CLUSTER_SETSLOT_Keyspecs,0,NULL,2),.args=CLUSTER_SETSLOT_Args},
{MAKE_CMD("shards","Returns the mapping of cluster slots to shards.","O(N) where N is the total number of cluster nodes","7.0.0",CMD_DOC_NONE,NULL,NULL,"cluster",COMMAND_GROUP_CLUSTER,CLUSTER_SHARDS_History,0,CLUSTER_SHARDS_Tips,1,clusterCommand,2,CMD_LOADING|CMD_STALE,0,CLUSTER_SHARDS_Keyspecs,0,NULL,0)},
{MAKE_CMD("slaves","Lists the replica nodes of a master node.","O(N) where N is the number of replicas.","3.0.0",CMD_DOC_DEPRECATED,"`CLUSTER REPLICAS`","5.0.0","cluster",COMMAND_GROUP_CLUSTER,CLUSTER_SLAVES_History,0,CLUSTER_SLAVES_Tips,1,clusterCommand,3,CMD_ADMIN|CMD_STALE,0,CLUSTER_SLAVES_Keyspecs,0,NULL,1),.args=CLUSTER_SLAVES_Args},
{MAKE_CMD("slots","Returns the mapping of cluster slots to nodes.","O(N) where N is the total number of Cluster nodes","3.0.0",CMD_DOC_DEPRECATED,"`CLUSTER SHARDS`","7.0.0","cluster",COMMAND_GROUP_CLUSTER,CLUSTER_SLOTS_History,2,CLUSTER_SLOTS_Tips,1,clusterCommand,2,CMD_LOADING|CMD_STALE,0,CLUSTER_SLOTS_Keyspecs,0,NULL,0)},
{0}
};
/********** CLUSTER ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* CLUSTER history */
#define CLUSTER_History NULL
#endif
#ifndef SKIP_CMD_TIPS_TABLE
/* CLUSTER tips */
#define CLUSTER_Tips NULL
#endif
#ifndef SKIP_CMD_KEY_SPECS_TABLE
/* CLUSTER key specs */
#define CLUSTER_Keyspecs NULL
#endif
/********** READONLY ********************/
#ifndef SKIP_CMD_HISTORY_TABLE
/* READONLY history */
#define READONLY_History NULL