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