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