xref: /f-stack/app/redis-5.0.5/src/help.h (revision 572c4311)
1 /* Automatically generated by generate-command-help.rb, do not edit. */
2 
3 #ifndef __REDIS_HELP_H
4 #define __REDIS_HELP_H
5 
6 static char *commandGroups[] = {
7     "generic",
8     "string",
9     "list",
10     "set",
11     "sorted_set",
12     "hash",
13     "pubsub",
14     "transactions",
15     "connection",
16     "server",
17     "scripting",
18     "hyperloglog",
19     "cluster",
20     "geo",
21     "stream"
22 };
23 
24 struct commandHelp {
25   char *name;
26   char *params;
27   char *summary;
28   int group;
29   char *since;
30 } commandHelp[] = {
31     { "APPEND",
32     "key value",
33     "Append a value to a key",
34     1,
35     "2.0.0" },
36     { "AUTH",
37     "password",
38     "Authenticate to the server",
39     8,
40     "1.0.0" },
41     { "BGREWRITEAOF",
42     "-",
43     "Asynchronously rewrite the append-only file",
44     9,
45     "1.0.0" },
46     { "BGSAVE",
47     "-",
48     "Asynchronously save the dataset to disk",
49     9,
50     "1.0.0" },
51     { "BITCOUNT",
52     "key [start end]",
53     "Count set bits in a string",
54     1,
55     "2.6.0" },
56     { "BITFIELD",
57     "key [GET type offset] [SET type offset value] [INCRBY type offset increment] [OVERFLOW WRAP|SAT|FAIL]",
58     "Perform arbitrary bitfield integer operations on strings",
59     1,
60     "3.2.0" },
61     { "BITOP",
62     "operation destkey key [key ...]",
63     "Perform bitwise operations between strings",
64     1,
65     "2.6.0" },
66     { "BITPOS",
67     "key bit [start] [end]",
68     "Find first bit set or clear in a string",
69     1,
70     "2.8.7" },
71     { "BLPOP",
72     "key [key ...] timeout",
73     "Remove and get the first element in a list, or block until one is available",
74     2,
75     "2.0.0" },
76     { "BRPOP",
77     "key [key ...] timeout",
78     "Remove and get the last element in a list, or block until one is available",
79     2,
80     "2.0.0" },
81     { "BRPOPLPUSH",
82     "source destination timeout",
83     "Pop a value from a list, push it to another list and return it; or block until one is available",
84     2,
85     "2.2.0" },
86     { "BZPOPMAX",
87     "key [key ...] timeout",
88     "Remove and return the member with the highest score from one or more sorted sets, or block until one is available",
89     4,
90     "5.0.0" },
91     { "BZPOPMIN",
92     "key [key ...] timeout",
93     "Remove and return the member with the lowest score from one or more sorted sets, or block until one is available",
94     4,
95     "5.0.0" },
96     { "CLIENT GETNAME",
97     "-",
98     "Get the current connection name",
99     9,
100     "2.6.9" },
101     { "CLIENT ID",
102     "-",
103     "Returns the client ID for the current connection",
104     9,
105     "5.0.0" },
106     { "CLIENT KILL",
107     "[ip:port] [ID client-id] [TYPE normal|master|slave|pubsub] [ADDR ip:port] [SKIPME yes/no]",
108     "Kill the connection of a client",
109     9,
110     "2.4.0" },
111     { "CLIENT LIST",
112     "-",
113     "Get the list of client connections",
114     9,
115     "2.4.0" },
116     { "CLIENT PAUSE",
117     "timeout",
118     "Stop processing commands from clients for some time",
119     9,
120     "2.9.50" },
121     { "CLIENT REPLY",
122     "ON|OFF|SKIP",
123     "Instruct the server whether to reply to commands",
124     9,
125     "3.2" },
126     { "CLIENT SETNAME",
127     "connection-name",
128     "Set the current connection name",
129     9,
130     "2.6.9" },
131     { "CLIENT UNBLOCK",
132     "client-id [TIMEOUT|ERROR]",
133     "Unblock a client blocked in a blocking command from a different connection",
134     9,
135     "5.0.0" },
136     { "CLUSTER ADDSLOTS",
137     "slot [slot ...]",
138     "Assign new hash slots to receiving node",
139     12,
140     "3.0.0" },
141     { "CLUSTER COUNT-FAILURE-REPORTS",
142     "node-id",
143     "Return the number of failure reports active for a given node",
144     12,
145     "3.0.0" },
146     { "CLUSTER COUNTKEYSINSLOT",
147     "slot",
148     "Return the number of local keys in the specified hash slot",
149     12,
150     "3.0.0" },
151     { "CLUSTER DELSLOTS",
152     "slot [slot ...]",
153     "Set hash slots as unbound in receiving node",
154     12,
155     "3.0.0" },
156     { "CLUSTER FAILOVER",
157     "[FORCE|TAKEOVER]",
158     "Forces a replica to perform a manual failover of its master.",
159     12,
160     "3.0.0" },
161     { "CLUSTER FORGET",
162     "node-id",
163     "Remove a node from the nodes table",
164     12,
165     "3.0.0" },
166     { "CLUSTER GETKEYSINSLOT",
167     "slot count",
168     "Return local key names in the specified hash slot",
169     12,
170     "3.0.0" },
171     { "CLUSTER INFO",
172     "-",
173     "Provides info about Redis Cluster node state",
174     12,
175     "3.0.0" },
176     { "CLUSTER KEYSLOT",
177     "key",
178     "Returns the hash slot of the specified key",
179     12,
180     "3.0.0" },
181     { "CLUSTER MEET",
182     "ip port",
183     "Force a node cluster to handshake with another node",
184     12,
185     "3.0.0" },
186     { "CLUSTER NODES",
187     "-",
188     "Get Cluster config for the node",
189     12,
190     "3.0.0" },
191     { "CLUSTER REPLICAS",
192     "node-id",
193     "List replica nodes of the specified master node",
194     12,
195     "5.0.0" },
196     { "CLUSTER REPLICATE",
197     "node-id",
198     "Reconfigure a node as a replica of the specified master node",
199     12,
200     "3.0.0" },
201     { "CLUSTER RESET",
202     "[HARD|SOFT]",
203     "Reset a Redis Cluster node",
204     12,
205     "3.0.0" },
206     { "CLUSTER SAVECONFIG",
207     "-",
208     "Forces the node to save cluster state on disk",
209     12,
210     "3.0.0" },
211     { "CLUSTER SET-CONFIG-EPOCH",
212     "config-epoch",
213     "Set the configuration epoch in a new node",
214     12,
215     "3.0.0" },
216     { "CLUSTER SETSLOT",
217     "slot IMPORTING|MIGRATING|STABLE|NODE [node-id]",
218     "Bind a hash slot to a specific node",
219     12,
220     "3.0.0" },
221     { "CLUSTER SLAVES",
222     "node-id",
223     "List replica nodes of the specified master node",
224     12,
225     "3.0.0" },
226     { "CLUSTER SLOTS",
227     "-",
228     "Get array of Cluster slot to node mappings",
229     12,
230     "3.0.0" },
231     { "COMMAND",
232     "-",
233     "Get array of Redis command details",
234     9,
235     "2.8.13" },
236     { "COMMAND COUNT",
237     "-",
238     "Get total number of Redis commands",
239     9,
240     "2.8.13" },
241     { "COMMAND GETKEYS",
242     "-",
243     "Extract keys given a full Redis command",
244     9,
245     "2.8.13" },
246     { "COMMAND INFO",
247     "command-name [command-name ...]",
248     "Get array of specific Redis command details",
249     9,
250     "2.8.13" },
251     { "CONFIG GET",
252     "parameter",
253     "Get the value of a configuration parameter",
254     9,
255     "2.0.0" },
256     { "CONFIG RESETSTAT",
257     "-",
258     "Reset the stats returned by INFO",
259     9,
260     "2.0.0" },
261     { "CONFIG REWRITE",
262     "-",
263     "Rewrite the configuration file with the in memory configuration",
264     9,
265     "2.8.0" },
266     { "CONFIG SET",
267     "parameter value",
268     "Set a configuration parameter to the given value",
269     9,
270     "2.0.0" },
271     { "DBSIZE",
272     "-",
273     "Return the number of keys in the selected database",
274     9,
275     "1.0.0" },
276     { "DEBUG OBJECT",
277     "key",
278     "Get debugging information about a key",
279     9,
280     "1.0.0" },
281     { "DEBUG SEGFAULT",
282     "-",
283     "Make the server crash",
284     9,
285     "1.0.0" },
286     { "DECR",
287     "key",
288     "Decrement the integer value of a key by one",
289     1,
290     "1.0.0" },
291     { "DECRBY",
292     "key decrement",
293     "Decrement the integer value of a key by the given number",
294     1,
295     "1.0.0" },
296     { "DEL",
297     "key [key ...]",
298     "Delete a key",
299     0,
300     "1.0.0" },
301     { "DISCARD",
302     "-",
303     "Discard all commands issued after MULTI",
304     7,
305     "2.0.0" },
306     { "DUMP",
307     "key",
308     "Return a serialized version of the value stored at the specified key.",
309     0,
310     "2.6.0" },
311     { "ECHO",
312     "message",
313     "Echo the given string",
314     8,
315     "1.0.0" },
316     { "EVAL",
317     "script numkeys key [key ...] arg [arg ...]",
318     "Execute a Lua script server side",
319     10,
320     "2.6.0" },
321     { "EVALSHA",
322     "sha1 numkeys key [key ...] arg [arg ...]",
323     "Execute a Lua script server side",
324     10,
325     "2.6.0" },
326     { "EXEC",
327     "-",
328     "Execute all commands issued after MULTI",
329     7,
330     "1.2.0" },
331     { "EXISTS",
332     "key [key ...]",
333     "Determine if a key exists",
334     0,
335     "1.0.0" },
336     { "EXPIRE",
337     "key seconds",
338     "Set a key's time to live in seconds",
339     0,
340     "1.0.0" },
341     { "EXPIREAT",
342     "key timestamp",
343     "Set the expiration for a key as a UNIX timestamp",
344     0,
345     "1.2.0" },
346     { "FLUSHALL",
347     "[ASYNC]",
348     "Remove all keys from all databases",
349     9,
350     "1.0.0" },
351     { "FLUSHDB",
352     "[ASYNC]",
353     "Remove all keys from the current database",
354     9,
355     "1.0.0" },
356     { "GEOADD",
357     "key longitude latitude member [longitude latitude member ...]",
358     "Add one or more geospatial items in the geospatial index represented using a sorted set",
359     13,
360     "3.2.0" },
361     { "GEODIST",
362     "key member1 member2 [unit]",
363     "Returns the distance between two members of a geospatial index",
364     13,
365     "3.2.0" },
366     { "GEOHASH",
367     "key member [member ...]",
368     "Returns members of a geospatial index as standard geohash strings",
369     13,
370     "3.2.0" },
371     { "GEOPOS",
372     "key member [member ...]",
373     "Returns longitude and latitude of members of a geospatial index",
374     13,
375     "3.2.0" },
376     { "GEORADIUS",
377     "key longitude latitude radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key] [STOREDIST key]",
378     "Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point",
379     13,
380     "3.2.0" },
381     { "GEORADIUSBYMEMBER",
382     "key member radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key] [STOREDIST key]",
383     "Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member",
384     13,
385     "3.2.0" },
386     { "GET",
387     "key",
388     "Get the value of a key",
389     1,
390     "1.0.0" },
391     { "GETBIT",
392     "key offset",
393     "Returns the bit value at offset in the string value stored at key",
394     1,
395     "2.2.0" },
396     { "GETRANGE",
397     "key start end",
398     "Get a substring of the string stored at a key",
399     1,
400     "2.4.0" },
401     { "GETSET",
402     "key value",
403     "Set the string value of a key and return its old value",
404     1,
405     "1.0.0" },
406     { "HDEL",
407     "key field [field ...]",
408     "Delete one or more hash fields",
409     5,
410     "2.0.0" },
411     { "HEXISTS",
412     "key field",
413     "Determine if a hash field exists",
414     5,
415     "2.0.0" },
416     { "HGET",
417     "key field",
418     "Get the value of a hash field",
419     5,
420     "2.0.0" },
421     { "HGETALL",
422     "key",
423     "Get all the fields and values in a hash",
424     5,
425     "2.0.0" },
426     { "HINCRBY",
427     "key field increment",
428     "Increment the integer value of a hash field by the given number",
429     5,
430     "2.0.0" },
431     { "HINCRBYFLOAT",
432     "key field increment",
433     "Increment the float value of a hash field by the given amount",
434     5,
435     "2.6.0" },
436     { "HKEYS",
437     "key",
438     "Get all the fields in a hash",
439     5,
440     "2.0.0" },
441     { "HLEN",
442     "key",
443     "Get the number of fields in a hash",
444     5,
445     "2.0.0" },
446     { "HMGET",
447     "key field [field ...]",
448     "Get the values of all the given hash fields",
449     5,
450     "2.0.0" },
451     { "HMSET",
452     "key field value [field value ...]",
453     "Set multiple hash fields to multiple values",
454     5,
455     "2.0.0" },
456     { "HSCAN",
457     "key cursor [MATCH pattern] [COUNT count]",
458     "Incrementally iterate hash fields and associated values",
459     5,
460     "2.8.0" },
461     { "HSET",
462     "key field value",
463     "Set the string value of a hash field",
464     5,
465     "2.0.0" },
466     { "HSETNX",
467     "key field value",
468     "Set the value of a hash field, only if the field does not exist",
469     5,
470     "2.0.0" },
471     { "HSTRLEN",
472     "key field",
473     "Get the length of the value of a hash field",
474     5,
475     "3.2.0" },
476     { "HVALS",
477     "key",
478     "Get all the values in a hash",
479     5,
480     "2.0.0" },
481     { "INCR",
482     "key",
483     "Increment the integer value of a key by one",
484     1,
485     "1.0.0" },
486     { "INCRBY",
487     "key increment",
488     "Increment the integer value of a key by the given amount",
489     1,
490     "1.0.0" },
491     { "INCRBYFLOAT",
492     "key increment",
493     "Increment the float value of a key by the given amount",
494     1,
495     "2.6.0" },
496     { "INFO",
497     "[section]",
498     "Get information and statistics about the server",
499     9,
500     "1.0.0" },
501     { "KEYS",
502     "pattern",
503     "Find all keys matching the given pattern",
504     0,
505     "1.0.0" },
506     { "LASTSAVE",
507     "-",
508     "Get the UNIX time stamp of the last successful save to disk",
509     9,
510     "1.0.0" },
511     { "LINDEX",
512     "key index",
513     "Get an element from a list by its index",
514     2,
515     "1.0.0" },
516     { "LINSERT",
517     "key BEFORE|AFTER pivot value",
518     "Insert an element before or after another element in a list",
519     2,
520     "2.2.0" },
521     { "LLEN",
522     "key",
523     "Get the length of a list",
524     2,
525     "1.0.0" },
526     { "LPOP",
527     "key",
528     "Remove and get the first element in a list",
529     2,
530     "1.0.0" },
531     { "LPUSH",
532     "key value [value ...]",
533     "Prepend one or multiple values to a list",
534     2,
535     "1.0.0" },
536     { "LPUSHX",
537     "key value",
538     "Prepend a value to a list, only if the list exists",
539     2,
540     "2.2.0" },
541     { "LRANGE",
542     "key start stop",
543     "Get a range of elements from a list",
544     2,
545     "1.0.0" },
546     { "LREM",
547     "key count value",
548     "Remove elements from a list",
549     2,
550     "1.0.0" },
551     { "LSET",
552     "key index value",
553     "Set the value of an element in a list by its index",
554     2,
555     "1.0.0" },
556     { "LTRIM",
557     "key start stop",
558     "Trim a list to the specified range",
559     2,
560     "1.0.0" },
561     { "MEMORY DOCTOR",
562     "-",
563     "Outputs memory problems report",
564     9,
565     "4.0.0" },
566     { "MEMORY HELP",
567     "-",
568     "Show helpful text about the different subcommands",
569     9,
570     "4.0.0" },
571     { "MEMORY MALLOC-STATS",
572     "-",
573     "Show allocator internal stats",
574     9,
575     "4.0.0" },
576     { "MEMORY PURGE",
577     "-",
578     "Ask the allocator to release memory",
579     9,
580     "4.0.0" },
581     { "MEMORY STATS",
582     "-",
583     "Show memory usage details",
584     9,
585     "4.0.0" },
586     { "MEMORY USAGE",
587     "key [SAMPLES count]",
588     "Estimate the memory usage of a key",
589     9,
590     "4.0.0" },
591     { "MGET",
592     "key [key ...]",
593     "Get the values of all the given keys",
594     1,
595     "1.0.0" },
596     { "MIGRATE",
597     "host port key|"" destination-db timeout [COPY] [REPLACE] [KEYS key]",
598     "Atomically transfer a key from a Redis instance to another one.",
599     0,
600     "2.6.0" },
601     { "MONITOR",
602     "-",
603     "Listen for all requests received by the server in real time",
604     9,
605     "1.0.0" },
606     { "MOVE",
607     "key db",
608     "Move a key to another database",
609     0,
610     "1.0.0" },
611     { "MSET",
612     "key value [key value ...]",
613     "Set multiple keys to multiple values",
614     1,
615     "1.0.1" },
616     { "MSETNX",
617     "key value [key value ...]",
618     "Set multiple keys to multiple values, only if none of the keys exist",
619     1,
620     "1.0.1" },
621     { "MULTI",
622     "-",
623     "Mark the start of a transaction block",
624     7,
625     "1.2.0" },
626     { "OBJECT",
627     "subcommand [arguments [arguments ...]]",
628     "Inspect the internals of Redis objects",
629     0,
630     "2.2.3" },
631     { "PERSIST",
632     "key",
633     "Remove the expiration from a key",
634     0,
635     "2.2.0" },
636     { "PEXPIRE",
637     "key milliseconds",
638     "Set a key's time to live in milliseconds",
639     0,
640     "2.6.0" },
641     { "PEXPIREAT",
642     "key milliseconds-timestamp",
643     "Set the expiration for a key as a UNIX timestamp specified in milliseconds",
644     0,
645     "2.6.0" },
646     { "PFADD",
647     "key element [element ...]",
648     "Adds the specified elements to the specified HyperLogLog.",
649     11,
650     "2.8.9" },
651     { "PFCOUNT",
652     "key [key ...]",
653     "Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).",
654     11,
655     "2.8.9" },
656     { "PFMERGE",
657     "destkey sourcekey [sourcekey ...]",
658     "Merge N different HyperLogLogs into a single one.",
659     11,
660     "2.8.9" },
661     { "PING",
662     "[message]",
663     "Ping the server",
664     8,
665     "1.0.0" },
666     { "PSETEX",
667     "key milliseconds value",
668     "Set the value and expiration in milliseconds of a key",
669     1,
670     "2.6.0" },
671     { "PSUBSCRIBE",
672     "pattern [pattern ...]",
673     "Listen for messages published to channels matching the given patterns",
674     6,
675     "2.0.0" },
676     { "PTTL",
677     "key",
678     "Get the time to live for a key in milliseconds",
679     0,
680     "2.6.0" },
681     { "PUBLISH",
682     "channel message",
683     "Post a message to a channel",
684     6,
685     "2.0.0" },
686     { "PUBSUB",
687     "subcommand [argument [argument ...]]",
688     "Inspect the state of the Pub/Sub subsystem",
689     6,
690     "2.8.0" },
691     { "PUNSUBSCRIBE",
692     "[pattern [pattern ...]]",
693     "Stop listening for messages posted to channels matching the given patterns",
694     6,
695     "2.0.0" },
696     { "QUIT",
697     "-",
698     "Close the connection",
699     8,
700     "1.0.0" },
701     { "RANDOMKEY",
702     "-",
703     "Return a random key from the keyspace",
704     0,
705     "1.0.0" },
706     { "READONLY",
707     "-",
708     "Enables read queries for a connection to a cluster replica node",
709     12,
710     "3.0.0" },
711     { "READWRITE",
712     "-",
713     "Disables read queries for a connection to a cluster replica node",
714     12,
715     "3.0.0" },
716     { "RENAME",
717     "key newkey",
718     "Rename a key",
719     0,
720     "1.0.0" },
721     { "RENAMENX",
722     "key newkey",
723     "Rename a key, only if the new key does not exist",
724     0,
725     "1.0.0" },
726     { "REPLICAOF",
727     "host port",
728     "Make the server a replica of another instance, or promote it as master.",
729     9,
730     "5.0.0" },
731     { "RESTORE",
732     "key ttl serialized-value [REPLACE]",
733     "Create a key using the provided serialized value, previously obtained using DUMP.",
734     0,
735     "2.6.0" },
736     { "ROLE",
737     "-",
738     "Return the role of the instance in the context of replication",
739     9,
740     "2.8.12" },
741     { "RPOP",
742     "key",
743     "Remove and get the last element in a list",
744     2,
745     "1.0.0" },
746     { "RPOPLPUSH",
747     "source destination",
748     "Remove the last element in a list, prepend it to another list and return it",
749     2,
750     "1.2.0" },
751     { "RPUSH",
752     "key value [value ...]",
753     "Append one or multiple values to a list",
754     2,
755     "1.0.0" },
756     { "RPUSHX",
757     "key value",
758     "Append a value to a list, only if the list exists",
759     2,
760     "2.2.0" },
761     { "SADD",
762     "key member [member ...]",
763     "Add one or more members to a set",
764     3,
765     "1.0.0" },
766     { "SAVE",
767     "-",
768     "Synchronously save the dataset to disk",
769     9,
770     "1.0.0" },
771     { "SCAN",
772     "cursor [MATCH pattern] [COUNT count]",
773     "Incrementally iterate the keys space",
774     0,
775     "2.8.0" },
776     { "SCARD",
777     "key",
778     "Get the number of members in a set",
779     3,
780     "1.0.0" },
781     { "SCRIPT DEBUG",
782     "YES|SYNC|NO",
783     "Set the debug mode for executed scripts.",
784     10,
785     "3.2.0" },
786     { "SCRIPT EXISTS",
787     "sha1 [sha1 ...]",
788     "Check existence of scripts in the script cache.",
789     10,
790     "2.6.0" },
791     { "SCRIPT FLUSH",
792     "-",
793     "Remove all the scripts from the script cache.",
794     10,
795     "2.6.0" },
796     { "SCRIPT KILL",
797     "-",
798     "Kill the script currently in execution.",
799     10,
800     "2.6.0" },
801     { "SCRIPT LOAD",
802     "script",
803     "Load the specified Lua script into the script cache.",
804     10,
805     "2.6.0" },
806     { "SDIFF",
807     "key [key ...]",
808     "Subtract multiple sets",
809     3,
810     "1.0.0" },
811     { "SDIFFSTORE",
812     "destination key [key ...]",
813     "Subtract multiple sets and store the resulting set in a key",
814     3,
815     "1.0.0" },
816     { "SELECT",
817     "index",
818     "Change the selected database for the current connection",
819     8,
820     "1.0.0" },
821     { "SET",
822     "key value [expiration EX seconds|PX milliseconds] [NX|XX]",
823     "Set the string value of a key",
824     1,
825     "1.0.0" },
826     { "SETBIT",
827     "key offset value",
828     "Sets or clears the bit at offset in the string value stored at key",
829     1,
830     "2.2.0" },
831     { "SETEX",
832     "key seconds value",
833     "Set the value and expiration of a key",
834     1,
835     "2.0.0" },
836     { "SETNX",
837     "key value",
838     "Set the value of a key, only if the key does not exist",
839     1,
840     "1.0.0" },
841     { "SETRANGE",
842     "key offset value",
843     "Overwrite part of a string at key starting at the specified offset",
844     1,
845     "2.2.0" },
846     { "SHUTDOWN",
847     "[NOSAVE|SAVE]",
848     "Synchronously save the dataset to disk and then shut down the server",
849     9,
850     "1.0.0" },
851     { "SINTER",
852     "key [key ...]",
853     "Intersect multiple sets",
854     3,
855     "1.0.0" },
856     { "SINTERSTORE",
857     "destination key [key ...]",
858     "Intersect multiple sets and store the resulting set in a key",
859     3,
860     "1.0.0" },
861     { "SISMEMBER",
862     "key member",
863     "Determine if a given value is a member of a set",
864     3,
865     "1.0.0" },
866     { "SLAVEOF",
867     "host port",
868     "Make the server a replica of another instance, or promote it as master. Deprecated starting with Redis 5. Use REPLICAOF instead.",
869     9,
870     "1.0.0" },
871     { "SLOWLOG",
872     "subcommand [argument]",
873     "Manages the Redis slow queries log",
874     9,
875     "2.2.12" },
876     { "SMEMBERS",
877     "key",
878     "Get all the members in a set",
879     3,
880     "1.0.0" },
881     { "SMOVE",
882     "source destination member",
883     "Move a member from one set to another",
884     3,
885     "1.0.0" },
886     { "SORT",
887     "key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]",
888     "Sort the elements in a list, set or sorted set",
889     0,
890     "1.0.0" },
891     { "SPOP",
892     "key [count]",
893     "Remove and return one or multiple random members from a set",
894     3,
895     "1.0.0" },
896     { "SRANDMEMBER",
897     "key [count]",
898     "Get one or multiple random members from a set",
899     3,
900     "1.0.0" },
901     { "SREM",
902     "key member [member ...]",
903     "Remove one or more members from a set",
904     3,
905     "1.0.0" },
906     { "SSCAN",
907     "key cursor [MATCH pattern] [COUNT count]",
908     "Incrementally iterate Set elements",
909     3,
910     "2.8.0" },
911     { "STRLEN",
912     "key",
913     "Get the length of the value stored in a key",
914     1,
915     "2.2.0" },
916     { "SUBSCRIBE",
917     "channel [channel ...]",
918     "Listen for messages published to the given channels",
919     6,
920     "2.0.0" },
921     { "SUNION",
922     "key [key ...]",
923     "Add multiple sets",
924     3,
925     "1.0.0" },
926     { "SUNIONSTORE",
927     "destination key [key ...]",
928     "Add multiple sets and store the resulting set in a key",
929     3,
930     "1.0.0" },
931     { "SWAPDB",
932     "index index",
933     "Swaps two Redis databases",
934     8,
935     "4.0.0" },
936     { "SYNC",
937     "-",
938     "Internal command used for replication",
939     9,
940     "1.0.0" },
941     { "TIME",
942     "-",
943     "Return the current server time",
944     9,
945     "2.6.0" },
946     { "TOUCH",
947     "key [key ...]",
948     "Alters the last access time of a key(s). Returns the number of existing keys specified.",
949     0,
950     "3.2.1" },
951     { "TTL",
952     "key",
953     "Get the time to live for a key",
954     0,
955     "1.0.0" },
956     { "TYPE",
957     "key",
958     "Determine the type stored at key",
959     0,
960     "1.0.0" },
961     { "UNLINK",
962     "key [key ...]",
963     "Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.",
964     0,
965     "4.0.0" },
966     { "UNSUBSCRIBE",
967     "[channel [channel ...]]",
968     "Stop listening for messages posted to the given channels",
969     6,
970     "2.0.0" },
971     { "UNWATCH",
972     "-",
973     "Forget about all watched keys",
974     7,
975     "2.2.0" },
976     { "WAIT",
977     "numreplicas timeout",
978     "Wait for the synchronous replication of all the write commands sent in the context of the current connection",
979     0,
980     "3.0.0" },
981     { "WATCH",
982     "key [key ...]",
983     "Watch the given keys to determine execution of the MULTI/EXEC block",
984     7,
985     "2.2.0" },
986     { "XACK",
987     "key group ID [ID ...]",
988     "Marks a pending message as correctly processed, effectively removing it from the pending entries list of the consumer group. Return value of the command is the number of messages successfully acknowledged, that is, the IDs we were actually able to resolve in the PEL.",
989     14,
990     "5.0.0" },
991     { "XADD",
992     "key ID field string [field string ...]",
993     "Appends a new entry to a stream",
994     14,
995     "5.0.0" },
996     { "XCLAIM",
997     "key group consumer min-idle-time ID [ID ...] [IDLE ms] [TIME ms-unix-time] [RETRYCOUNT count] [force] [justid]",
998     "Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer.",
999     14,
1000     "5.0.0" },
1001     { "XDEL",
1002     "key ID [ID ...]",
1003     "Removes the specified entries from the stream. Returns the number of items actually deleted, that may be different from the number of IDs passed in case certain IDs do not exist.",
1004     14,
1005     "5.0.0" },
1006     { "XGROUP",
1007     "[CREATE key groupname id-or-$] [SETID key id-or-$] [DESTROY key groupname] [DELCONSUMER key groupname consumername]",
1008     "Create, destroy, and manage consumer groups.",
1009     14,
1010     "5.0.0" },
1011     { "XINFO",
1012     "[CONSUMERS key groupname] [GROUPS key] [STREAM key] [HELP]",
1013     "Get information on streams and consumer groups",
1014     14,
1015     "5.0.0" },
1016     { "XLEN",
1017     "key",
1018     "Return the number of entires in a stream",
1019     14,
1020     "5.0.0" },
1021     { "XPENDING",
1022     "key group [start end count] [consumer]",
1023     "Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged.",
1024     14,
1025     "5.0.0" },
1026     { "XRANGE",
1027     "key start end [COUNT count]",
1028     "Return a range of elements in a stream, with IDs matching the specified IDs interval",
1029     14,
1030     "5.0.0" },
1031     { "XREAD",
1032     "[COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]",
1033     "Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block.",
1034     14,
1035     "5.0.0" },
1036     { "XREADGROUP",
1037     "GROUP group consumer [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]",
1038     "Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block.",
1039     14,
1040     "5.0.0" },
1041     { "XREVRANGE",
1042     "key end start [COUNT count]",
1043     "Return a range of elements in a stream, with IDs matching the specified IDs interval, in reverse order (from greater to smaller IDs) compared to XRANGE",
1044     14,
1045     "5.0.0" },
1046     { "XTRIM",
1047     "key MAXLEN [~] count",
1048     "Trims the stream to (approximately if '~' is passed) a certain size",
1049     14,
1050     "5.0.0" },
1051     { "ZADD",
1052     "key [NX|XX] [CH] [INCR] score member [score member ...]",
1053     "Add one or more members to a sorted set, or update its score if it already exists",
1054     4,
1055     "1.2.0" },
1056     { "ZCARD",
1057     "key",
1058     "Get the number of members in a sorted set",
1059     4,
1060     "1.2.0" },
1061     { "ZCOUNT",
1062     "key min max",
1063     "Count the members in a sorted set with scores within the given values",
1064     4,
1065     "2.0.0" },
1066     { "ZINCRBY",
1067     "key increment member",
1068     "Increment the score of a member in a sorted set",
1069     4,
1070     "1.2.0" },
1071     { "ZINTERSTORE",
1072     "destination numkeys key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]",
1073     "Intersect multiple sorted sets and store the resulting sorted set in a new key",
1074     4,
1075     "2.0.0" },
1076     { "ZLEXCOUNT",
1077     "key min max",
1078     "Count the number of members in a sorted set between a given lexicographical range",
1079     4,
1080     "2.8.9" },
1081     { "ZPOPMAX",
1082     "key [count]",
1083     "Remove and return members with the highest scores in a sorted set",
1084     4,
1085     "5.0.0" },
1086     { "ZPOPMIN",
1087     "key [count]",
1088     "Remove and return members with the lowest scores in a sorted set",
1089     4,
1090     "5.0.0" },
1091     { "ZRANGE",
1092     "key start stop [WITHSCORES]",
1093     "Return a range of members in a sorted set, by index",
1094     4,
1095     "1.2.0" },
1096     { "ZRANGEBYLEX",
1097     "key min max [LIMIT offset count]",
1098     "Return a range of members in a sorted set, by lexicographical range",
1099     4,
1100     "2.8.9" },
1101     { "ZRANGEBYSCORE",
1102     "key min max [WITHSCORES] [LIMIT offset count]",
1103     "Return a range of members in a sorted set, by score",
1104     4,
1105     "1.0.5" },
1106     { "ZRANK",
1107     "key member",
1108     "Determine the index of a member in a sorted set",
1109     4,
1110     "2.0.0" },
1111     { "ZREM",
1112     "key member [member ...]",
1113     "Remove one or more members from a sorted set",
1114     4,
1115     "1.2.0" },
1116     { "ZREMRANGEBYLEX",
1117     "key min max",
1118     "Remove all members in a sorted set between the given lexicographical range",
1119     4,
1120     "2.8.9" },
1121     { "ZREMRANGEBYRANK",
1122     "key start stop",
1123     "Remove all members in a sorted set within the given indexes",
1124     4,
1125     "2.0.0" },
1126     { "ZREMRANGEBYSCORE",
1127     "key min max",
1128     "Remove all members in a sorted set within the given scores",
1129     4,
1130     "1.2.0" },
1131     { "ZREVRANGE",
1132     "key start stop [WITHSCORES]",
1133     "Return a range of members in a sorted set, by index, with scores ordered from high to low",
1134     4,
1135     "1.2.0" },
1136     { "ZREVRANGEBYLEX",
1137     "key max min [LIMIT offset count]",
1138     "Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.",
1139     4,
1140     "2.8.9" },
1141     { "ZREVRANGEBYSCORE",
1142     "key max min [WITHSCORES] [LIMIT offset count]",
1143     "Return a range of members in a sorted set, by score, with scores ordered from high to low",
1144     4,
1145     "2.2.0" },
1146     { "ZREVRANK",
1147     "key member",
1148     "Determine the index of a member in a sorted set, with scores ordered from high to low",
1149     4,
1150     "2.0.0" },
1151     { "ZSCAN",
1152     "key cursor [MATCH pattern] [COUNT count]",
1153     "Incrementally iterate sorted sets elements and associated scores",
1154     4,
1155     "2.8.0" },
1156     { "ZSCORE",
1157     "key member",
1158     "Get the score associated with the given member in a sorted set",
1159     4,
1160     "1.2.0" },
1161     { "ZUNIONSTORE",
1162     "destination numkeys key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]",
1163     "Add multiple sorted sets and store the resulting sorted set in a new key",
1164     4,
1165     "2.0.0" }
1166 };
1167 
1168 #endif
1169