1/* Automatically generated by utils/generate-command-help.rb, do not edit. */
2
3#ifndef __REDIS_HELP_H
4#define __REDIS_HELP_H
5
6static 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 "bitmap"
23};
24
25struct commandHelp {
26 char *name;
27 char *params;
28 char *summary;
29 int group;
30 char *since;
31} commandHelp[] = {
32 { "ACL",
33 "",
34 "A container for Access List Control commands ",
35 9,
36 "6.0.0" },
37 { "ACL CAT",
38 "[categoryname]",
39 "List the ACL categories or the commands inside a category",
40 9,
41 "6.0.0" },
42 { "ACL DELUSER",
43 "username [username ...]",
44 "Remove the specified ACL users and the associated rules",
45 9,
46 "6.0.0" },
47 { "ACL DRYRUN",
48 "username command [arg [arg ...]]",
49 "Returns whether the user can execute the given command without executing the command.",
50 9,
51 "7.0.0" },
52 { "ACL GENPASS",
53 "[bits]",
54 "Generate a pseudorandom secure password to use for ACL users",
55 9,
56 "6.0.0" },
57 { "ACL GETUSER",
58 "username",
59 "Get the rules for a specific ACL user",
60 9,
61 "6.0.0" },
62 { "ACL HELP",
63 "",
64 "Show helpful text about the different subcommands",
65 9,
66 "6.0.0" },
67 { "ACL LIST",
68 "",
69 "List the current ACL rules in ACL config file format",
70 9,
71 "6.0.0" },
72 { "ACL LOAD",
73 "",
74 "Reload the ACLs from the configured ACL file",
75 9,
76 "6.0.0" },
77 { "ACL LOG",
78 "[count|RESET]",
79 "List latest events denied because of ACLs in place",
80 9,
81 "6.0.0" },
82 { "ACL SAVE",
83 "",
84 "Save the current ACL rules in the configured ACL file",
85 9,
86 "6.0.0" },
87 { "ACL SETUSER",
88 "username [rule [rule ...]]",
89 "Modify or create the rules for a specific ACL user",
90 9,
91 "6.0.0" },
92 { "ACL USERS",
93 "",
94 "List the username of all the configured ACL rules",
95 9,
96 "6.0.0" },
97 { "ACL WHOAMI",
98 "",
99 "Return the name of the user associated to the current connection",
100 9,
101 "6.0.0" },
102 { "APPEND",
103 "key value",
104 "Append a value to a key",
105 1,
106 "2.0.0" },
107 { "ASKING",
108 "",
109 "Sent by cluster clients after an -ASK redirect",
110 12,
111 "3.0.0" },
112 { "AUTH",
113 "[username] password",
114 "Authenticate to the server",
115 8,
116 "1.0.0" },
117 { "BGREWRITEAOF",
118 "",
119 "Asynchronously rewrite the append-only file",
120 9,
121 "1.0.0" },
122 { "BGSAVE",
123 "[SCHEDULE]",
124 "Asynchronously save the dataset to disk",
125 9,
126 "1.0.0" },
127 { "BITCOUNT",
128 "key [start end [BYTE|BIT]]",
129 "Count set bits in a string",
130 15,
131 "2.6.0" },
132 { "BITFIELD",
133 "key GET encoding offset|[OVERFLOW WRAP|SAT|FAIL] SET encoding offset value|INCRBY encoding offset increment [GET encoding offset|[OVERFLOW WRAP|SAT|FAIL] SET encoding offset value|INCRBY encoding offset increment ...]",
134 "Perform arbitrary bitfield integer operations on strings",
135 15,
136 "3.2.0" },
137 { "BITFIELD_RO",
138 "key GET encoding offset [GET encoding offset ...]",
139 "Perform arbitrary bitfield integer operations on strings. Read-only variant of BITFIELD",
140 15,
141 "6.0.0" },
142 { "BITOP",
143 "operation destkey key [key ...]",
144 "Perform bitwise operations between strings",
145 15,
146 "2.6.0" },
147 { "BITPOS",
148 "key bit [start [end [BYTE|BIT]]]",
149 "Find first bit set or clear in a string",
150 15,
151 "2.8.7" },
152 { "BLMOVE",
153 "source destination LEFT|RIGHT LEFT|RIGHT timeout",
154 "Pop an element from a list, push it to another list and return it; or block until one is available",
155 2,
156 "6.2.0" },
157 { "BLMPOP",
158 "timeout numkeys key [key ...] LEFT|RIGHT [COUNT count]",
159 "Pop elements from a list, or block until one is available",
160 2,
161 "7.0.0" },
162 { "BLPOP",
163 "key [key ...] timeout",
164 "Remove and get the first element in a list, or block until one is available",
165 2,
166 "2.0.0" },
167 { "BRPOP",
168 "key [key ...] timeout",
169 "Remove and get the last element in a list, or block until one is available",
170 2,
171 "2.0.0" },
172 { "BRPOPLPUSH",
173 "source destination timeout",
174 "Pop an element from a list, push it to another list and return it; or block until one is available",
175 2,
176 "2.2.0" },
177 { "BZMPOP",
178 "timeout numkeys key [key ...] MIN|MAX [COUNT count]",
179 "Remove and return members with scores in a sorted set or block until one is available",
180 4,
181 "7.0.0" },
182 { "BZPOPMAX",
183 "key [key ...] timeout",
184 "Remove and return the member with the highest score from one or more sorted sets, or block until one is available",
185 4,
186 "5.0.0" },
187 { "BZPOPMIN",
188 "key [key ...] timeout",
189 "Remove and return the member with the lowest score from one or more sorted sets, or block until one is available",
190 4,
191 "5.0.0" },
192 { "CLIENT",
193 "",
194 "A container for client connection commands",
195 8,
196 "2.4.0" },
197 { "CLIENT CACHING",
198 "YES|NO",
199 "Instruct the server about tracking or not keys in the next request",
200 8,
201 "6.0.0" },
202 { "CLIENT GETNAME",
203 "",
204 "Get the current connection name",
205 8,
206 "2.6.9" },
207 { "CLIENT GETREDIR",
208 "",
209 "Get tracking notifications redirection client ID if any",
210 8,
211 "6.0.0" },
212 { "CLIENT HELP",
213 "",
214 "Show helpful text about the different subcommands",
215 8,
216 "5.0.0" },
217 { "CLIENT ID",
218 "",
219 "Returns the client ID for the current connection",
220 8,
221 "5.0.0" },
222 { "CLIENT INFO",
223 "",
224 "Returns information about the current client connection.",
225 8,
226 "6.2.0" },
227 { "CLIENT KILL",
228 "[ip:port] [ID client-id] [TYPE NORMAL|MASTER|SLAVE|REPLICA|PUBSUB] [USER username] [ADDR ip:port] [LADDR ip:port] [SKIPME yes/no]",
229 "Kill the connection of a client",
230 8,
231 "2.4.0" },
232 { "CLIENT LIST",
233 "[TYPE NORMAL|MASTER|REPLICA|PUBSUB] [ID client-id [client-id ...]]",
234 "Get the list of client connections",
235 8,
236 "2.4.0" },
237 { "CLIENT NO-EVICT",
238 "ON|OFF",
239 "Set client eviction mode for the current connection",
240 8,
241 "7.0.0" },
242 { "CLIENT PAUSE",
243 "timeout [WRITE|ALL]",
244 "Stop processing commands from clients for some time",
245 8,
246 "2.9.50" },
247 { "CLIENT REPLY",
248 "ON|OFF|SKIP",
249 "Instruct the server whether to reply to commands",
250 8,
251 "3.2.0" },
252 { "CLIENT SETNAME",
253 "connection-name",
254 "Set the current connection name",
255 8,
256 "2.6.9" },
257 { "CLIENT TRACKING",
258 "ON|OFF [REDIRECT client-id] [PREFIX prefix [PREFIX prefix ...]] [BCAST] [OPTIN] [OPTOUT] [NOLOOP]",
259 "Enable or disable server assisted client side caching support",
260 8,
261 "6.0.0" },
262 { "CLIENT TRACKINGINFO",
263 "",
264 "Return information about server assisted client side caching for the current connection",
265 8,
266 "6.2.0" },
267 { "CLIENT UNBLOCK",
268 "client-id [TIMEOUT|ERROR]",
269 "Unblock a client blocked in a blocking command from a different connection",
270 8,
271 "5.0.0" },
272 { "CLIENT UNPAUSE",
273 "",
274 "Resume processing of clients that were paused",
275 8,
276 "6.2.0" },
277 { "CLUSTER",
278 "",
279 "A container for cluster commands",
280 12,
281 "3.0.0" },
282 { "CLUSTER ADDSLOTS",
283 "slot [slot ...]",
284 "Assign new hash slots to receiving node",
285 12,
286 "3.0.0" },
287 { "CLUSTER ADDSLOTSRANGE",
288 "start-slot end-slot [start-slot end-slot ...]",
289 "Assign new hash slots to receiving node",
290 12,
291 "7.0.0" },
292 { "CLUSTER BUMPEPOCH",
293 "",
294 "Advance the cluster config epoch",
295 12,
296 "3.0.0" },
297 { "CLUSTER COUNT-FAILURE-REPORTS",
298 "node-id",
299 "Return the number of failure reports active for a given node",
300 12,
301 "3.0.0" },
302 { "CLUSTER COUNTKEYSINSLOT",
303 "slot",
304 "Return the number of local keys in the specified hash slot",
305 12,
306 "3.0.0" },
307 { "CLUSTER DELSLOTS",
308 "slot [slot ...]",
309 "Set hash slots as unbound in receiving node",
310 12,
311 "3.0.0" },
312 { "CLUSTER DELSLOTSRANGE",
313 "start-slot end-slot [start-slot end-slot ...]",
314 "Set hash slots as unbound in receiving node",
315 12,
316 "7.0.0" },
317 { "CLUSTER FAILOVER",
318 "[FORCE|TAKEOVER]",
319 "Forces a replica to perform a manual failover of its master.",
320 12,
321 "3.0.0" },
322 { "CLUSTER FLUSHSLOTS",
323 "",
324 "Delete a node's own slots information",
325 12,
326 "3.0.0" },
327 { "CLUSTER FORGET",
328 "node-id",
329 "Remove a node from the nodes table",
330 12,
331 "3.0.0" },
332 { "CLUSTER GETKEYSINSLOT",
333 "slot count",
334 "Return local key names in the specified hash slot",
335 12,
336 "3.0.0" },
337 { "CLUSTER HELP",
338 "",
339 "Show helpful text about the different subcommands",
340 12,
341 "5.0.0" },
342 { "CLUSTER INFO",
343 "",
344 "Provides info about Redis Cluster node state",
345 12,
346 "3.0.0" },
347 { "CLUSTER KEYSLOT",
348 "key",
349 "Returns the hash slot of the specified key",
350 12,
351 "3.0.0" },
352 { "CLUSTER LINKS",
353 "",
354 "Returns a list of all TCP links to and from peer nodes in cluster",
355 12,
356 "7.0.0" },
357 { "CLUSTER MEET",
358 "ip port [cluster_bus_port]",
359 "Force a node cluster to handshake with another node",
360 12,
361 "3.0.0" },
362 { "CLUSTER MYID",
363 "",
364 "Return the node id",
365 12,
366 "3.0.0" },
367 { "CLUSTER NODES",
368 "",
369 "Get Cluster config for the node",
370 12,
371 "3.0.0" },
372 { "CLUSTER REPLICAS",
373 "node-id",
374 "List replica nodes of the specified master node",
375 12,
376 "5.0.0" },
377 { "CLUSTER REPLICATE",
378 "node-id",
379 "Reconfigure a node as a replica of the specified master node",
380 12,
381 "3.0.0" },
382 { "CLUSTER RESET",
383 "[HARD|SOFT]",
384 "Reset a Redis Cluster node",
385 12,
386 "3.0.0" },
387 { "CLUSTER SAVECONFIG",
388 "",
389 "Forces the node to save cluster state on disk",
390 12,
391 "3.0.0" },
392 { "CLUSTER SET-CONFIG-EPOCH",
393 "config-epoch",
394 "Set the configuration epoch in a new node",
395 12,
396 "3.0.0" },
397 { "CLUSTER SETSLOT",
398 "slot IMPORTING node-id|MIGRATING node-id|NODE node-id|STABLE",
399 "Bind a hash slot to a specific node",
400 12,
401 "3.0.0" },
402 { "CLUSTER SHARDS",
403 "",
404 "Get array of cluster slots to node mappings",
405 12,
406 "7.0.0" },
407 { "CLUSTER SLAVES",
408 "node-id",
409 "List replica nodes of the specified master node",
410 12,
411 "3.0.0" },
412 { "CLUSTER SLOTS",
413 "",
414 "Get array of Cluster slot to node mappings",
415 12,
416 "3.0.0" },
417 { "COMMAND",
418 "",
419 "Get array of Redis command details",
420 9,
421 "2.8.13" },
422 { "COMMAND COUNT",
423 "",
424 "Get total number of Redis commands",
425 9,
426 "2.8.13" },
427 { "COMMAND DOCS",
428 "[command-name [command-name ...]]",
429 "Get array of specific Redis command documentation",
430 9,
431 "7.0.0" },
432 { "COMMAND GETKEYS",
433 "",
434 "Extract keys given a full Redis command",
435 9,
436 "2.8.13" },
437 { "COMMAND GETKEYSANDFLAGS",
438 "",
439 "Extract keys and access flags given a full Redis command",
440 9,
441 "7.0.0" },
442 { "COMMAND HELP",
443 "",
444 "Show helpful text about the different subcommands",
445 9,
446 "5.0.0" },
447 { "COMMAND INFO",
448 "[command-name [command-name ...]]",
449 "Get array of specific Redis command details, or all when no argument is given.",
450 9,
451 "2.8.13" },
452 { "COMMAND LIST",
453 "[FILTERBY MODULE module-name|ACLCAT category|PATTERN pattern]",
454 "Get an array of Redis command names",
455 9,
456 "7.0.0" },
457 { "CONFIG",
458 "",
459 "A container for server configuration commands",
460 9,
461 "2.0.0" },
462 { "CONFIG GET",
463 "parameter [parameter ...]",
464 "Get the values of configuration parameters",
465 9,
466 "2.0.0" },
467 { "CONFIG HELP",
468 "",
469 "Show helpful text about the different subcommands",
470 9,
471 "5.0.0" },
472 { "CONFIG RESETSTAT",
473 "",
474 "Reset the stats returned by INFO",
475 9,
476 "2.0.0" },
477 { "CONFIG REWRITE",
478 "",
479 "Rewrite the configuration file with the in memory configuration",
480 9,
481 "2.8.0" },
482 { "CONFIG SET",
483 "parameter value [parameter value ...]",
484 "Set configuration parameters to the given values",
485 9,
486 "2.0.0" },
487 { "COPY",
488 "source destination [DB destination-db] [REPLACE]",
489 "Copy a key",
490 0,
491 "6.2.0" },
492 { "DBSIZE",
493 "",
494 "Return the number of keys in the selected database",
495 9,
496 "1.0.0" },
497 { "DEBUG",
498 "",
499 "A container for debugging commands",
500 9,
501 "1.0.0" },
502 { "DECR",
503 "key",
504 "Decrement the integer value of a key by one",
505 1,
506 "1.0.0" },
507 { "DECRBY",
508 "key decrement",
509 "Decrement the integer value of a key by the given number",
510 1,
511 "1.0.0" },
512 { "DEL",
513 "key [key ...]",
514 "Delete a key",
515 0,
516 "1.0.0" },
517 { "DISCARD",
518 "",
519 "Discard all commands issued after MULTI",
520 7,
521 "2.0.0" },
522 { "DUMP",
523 "key",
524 "Return a serialized version of the value stored at the specified key.",
525 0,
526 "2.6.0" },
527 { "ECHO",
528 "message",
529 "Echo the given string",
530 8,
531 "1.0.0" },
532 { "EVAL",
533 "script numkeys [key [key ...]] [arg [arg ...]]",
534 "Execute a Lua script server side",
535 10,
536 "2.6.0" },
537 { "EVALSHA",
538 "sha1 numkeys [key [key ...]] [arg [arg ...]]",
539 "Execute a Lua script server side",
540 10,
541 "2.6.0" },
542 { "EVALSHA_RO",
543 "sha1 numkeys key [key ...] arg [arg ...]",
544 "Execute a read-only Lua script server side",
545 10,
546 "7.0.0" },
547 { "EVAL_RO",
548 "script numkeys key [key ...] arg [arg ...]",
549 "Execute a read-only Lua script server side",
550 10,
551 "7.0.0" },
552 { "EXEC",
553 "",
554 "Execute all commands issued after MULTI",
555 7,
556 "1.2.0" },
557 { "EXISTS",
558 "key [key ...]",
559 "Determine if a key exists",
560 0,
561 "1.0.0" },
562 { "EXPIRE",
563 "key seconds [NX|XX|GT|LT]",
564 "Set a key's time to live in seconds",
565 0,
566 "1.0.0" },
567 { "EXPIREAT",
568 "key unix-time-seconds [NX|XX|GT|LT]",
569 "Set the expiration for a key as a UNIX timestamp",
570 0,
571 "1.2.0" },
572 { "EXPIRETIME",
573 "key",
574 "Get the expiration Unix timestamp for a key",
575 0,
576 "7.0.0" },
577 { "FAILOVER",
578 "[TO host port [FORCE]] [ABORT] [TIMEOUT milliseconds]",
579 "Start a coordinated failover between this server and one of its replicas.",
580 9,
581 "6.2.0" },
582 { "FCALL",
583 "function numkeys key [key ...] arg [arg ...]",
584 "Invoke a function",
585 10,
586 "7.0.0" },
587 { "FCALL_RO",
588 "function numkeys key [key ...] arg [arg ...]",
589 "Invoke a read-only function",
590 10,
591 "7.0.0" },
592 { "FLUSHALL",
593 "[ASYNC|SYNC]",
594 "Remove all keys from all databases",
595 9,
596 "1.0.0" },
597 { "FLUSHDB",
598 "[ASYNC|SYNC]",
599 "Remove all keys from the current database",
600 9,
601 "1.0.0" },
602 { "FUNCTION",
603 "",
604 "A container for function commands",
605 10,
606 "7.0.0" },
607 { "FUNCTION DELETE",
608 "library-name",
609 "Delete a function by name",
610 10,
611 "7.0.0" },
612 { "FUNCTION DUMP",
613 "",
614 "Dump all functions into a serialized binary payload",
615 10,
616 "7.0.0" },
617 { "FUNCTION FLUSH",
618 "[ASYNC|SYNC]",
619 "Deleting all functions",
620 10,
621 "7.0.0" },
622 { "FUNCTION HELP",
623 "",
624 "Show helpful text about the different subcommands",
625 10,
626 "7.0.0" },
627 { "FUNCTION KILL",
628 "",
629 "Kill the function currently in execution.",
630 10,
631 "7.0.0" },
632 { "FUNCTION LIST",
633 "[LIBRARYNAME library-name-pattern] [WITHCODE]",
634 "List information about all the functions",
635 10,
636 "7.0.0" },
637 { "FUNCTION LOAD",
638 "[REPLACE] function-code",
639 "Create a function with the given arguments (name, code, description)",
640 10,
641 "7.0.0" },
642 { "FUNCTION RESTORE",
643 "serialized-value [FLUSH|APPEND|REPLACE]",
644 "Restore all the functions on the given payload",
645 10,
646 "7.0.0" },
647 { "FUNCTION STATS",
648 "",
649 "Return information about the function currently running (name, description, duration)",
650 10,
651 "7.0.0" },
652 { "GEOADD",
653 "key [NX|XX] [CH] longitude latitude member [longitude latitude member ...]",
654 "Add one or more geospatial items in the geospatial index represented using a sorted set",
655 13,
656 "3.2.0" },
657 { "GEODIST",
658 "key member1 member2 [M|KM|FT|MI]",
659 "Returns the distance between two members of a geospatial index",
660 13,
661 "3.2.0" },
662 { "GEOHASH",
663 "key member [member ...]",
664 "Returns members of a geospatial index as standard geohash strings",
665 13,
666 "3.2.0" },
667 { "GEOPOS",
668 "key member [member ...]",
669 "Returns longitude and latitude of members of a geospatial index",
670 13,
671 "3.2.0" },
672 { "GEORADIUS",
673 "key longitude latitude radius M|KM|FT|MI [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count [ANY]] [ASC|DESC] [STORE key] [STOREDIST key]",
674 "Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point",
675 13,
676 "3.2.0" },
677 { "GEORADIUSBYMEMBER",
678 "key member radius M|KM|FT|MI [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count [ANY]] [ASC|DESC] [STORE key] [STOREDIST key]",
679 "Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member",
680 13,
681 "3.2.0" },
682 { "GEORADIUSBYMEMBER_RO",
683 "key member radius M|KM|FT|MI [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count [ANY]] [ASC|DESC]",
684 "A read-only variant for GEORADIUSBYMEMBER",
685 13,
686 "3.2.10" },
687 { "GEORADIUS_RO",
688 "key longitude latitude radius M|KM|FT|MI [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count [ANY]] [ASC|DESC]",
689 "A read-only variant for GEORADIUS",
690 13,
691 "3.2.10" },
692 { "GEOSEARCH",
693 "key FROMMEMBER member|FROMLONLAT longitude latitude BYRADIUS radius M|KM|FT|MI|BYBOX width height M|KM|FT|MI [ASC|DESC] [COUNT count [ANY]] [WITHCOORD] [WITHDIST] [WITHHASH]",
694 "Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle.",
695 13,
696 "6.2.0" },
697 { "GEOSEARCHSTORE",
698 "destination source FROMMEMBER member|FROMLONLAT longitude latitude BYRADIUS radius M|KM|FT|MI|BYBOX width height M|KM|FT|MI [ASC|DESC] [COUNT count [ANY]] [STOREDIST]",
699 "Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle, and store the result in another key.",
700 13,
701 "6.2.0" },
702 { "GET",
703 "key",
704 "Get the value of a key",
705 1,
706 "1.0.0" },
707 { "GETBIT",
708 "key offset",
709 "Returns the bit value at offset in the string value stored at key",
710 15,
711 "2.2.0" },
712 { "GETDEL",
713 "key",
714 "Get the value of a key and delete the key",
715 1,
716 "6.2.0" },
717 { "GETEX",
718 "key [EX seconds|PX milliseconds|EXAT unix-time-seconds|PXAT unix-time-milliseconds|PERSIST]",
719 "Get the value of a key and optionally set its expiration",
720 1,
721 "6.2.0" },
722 { "GETRANGE",
723 "key start end",
724 "Get a substring of the string stored at a key",
725 1,
726 "2.4.0" },
727 { "GETSET",
728 "key value",
729 "Set the string value of a key and return its old value",
730 1,
731 "1.0.0" },
732 { "HDEL",
733 "key field [field ...]",
734 "Delete one or more hash fields",
735 5,
736 "2.0.0" },
737 { "HELLO",
738 "[protover [AUTH username password] [SETNAME clientname]]",
739 "Handshake with Redis",
740 8,
741 "6.0.0" },
742 { "HEXISTS",
743 "key field",
744 "Determine if a hash field exists",
745 5,
746 "2.0.0" },
747 { "HGET",
748 "key field",
749 "Get the value of a hash field",
750 5,
751 "2.0.0" },
752 { "HGETALL",
753 "key",
754 "Get all the fields and values in a hash",
755 5,
756 "2.0.0" },
757 { "HINCRBY",
758 "key field increment",
759 "Increment the integer value of a hash field by the given number",
760 5,
761 "2.0.0" },
762 { "HINCRBYFLOAT",
763 "key field increment",
764 "Increment the float value of a hash field by the given amount",
765 5,
766 "2.6.0" },
767 { "HKEYS",
768 "key",
769 "Get all the fields in a hash",
770 5,
771 "2.0.0" },
772 { "HLEN",
773 "key",
774 "Get the number of fields in a hash",
775 5,
776 "2.0.0" },
777 { "HMGET",
778 "key field [field ...]",
779 "Get the values of all the given hash fields",
780 5,
781 "2.0.0" },
782 { "HMSET",
783 "key field value [field value ...]",
784 "Set multiple hash fields to multiple values",
785 5,
786 "2.0.0" },
787 { "HRANDFIELD",
788 "key [count [WITHVALUES]]",
789 "Get one or multiple random fields from a hash",
790 5,
791 "6.2.0" },
792 { "HSCAN",
793 "key cursor [MATCH pattern] [COUNT count]",
794 "Incrementally iterate hash fields and associated values",
795 5,
796 "2.8.0" },
797 { "HSET",
798 "key field value [field value ...]",
799 "Set the string value of a hash field",
800 5,
801 "2.0.0" },
802 { "HSETNX",
803 "key field value",
804 "Set the value of a hash field, only if the field does not exist",
805 5,
806 "2.0.0" },
807 { "HSTRLEN",
808 "key field",
809 "Get the length of the value of a hash field",
810 5,
811 "3.2.0" },
812 { "HVALS",
813 "key",
814 "Get all the values in a hash",
815 5,
816 "2.0.0" },
817 { "INCR",
818 "key",
819 "Increment the integer value of a key by one",
820 1,
821 "1.0.0" },
822 { "INCRBY",
823 "key increment",
824 "Increment the integer value of a key by the given amount",
825 1,
826 "1.0.0" },
827 { "INCRBYFLOAT",
828 "key increment",
829 "Increment the float value of a key by the given amount",
830 1,
831 "2.6.0" },
832 { "INFO",
833 "[section [section ...]]",
834 "Get information and statistics about the server",
835 9,
836 "1.0.0" },
837 { "KEYS",
838 "pattern",
839 "Find all keys matching the given pattern",
840 0,
841 "1.0.0" },
842 { "LASTSAVE",
843 "",
844 "Get the UNIX time stamp of the last successful save to disk",
845 9,
846 "1.0.0" },
847 { "LATENCY",
848 "",
849 "A container for latency diagnostics commands",
850 9,
851 "2.8.13" },
852 { "LATENCY DOCTOR",
853 "",
854 "Return a human readable latency analysis report.",
855 9,
856 "2.8.13" },
857 { "LATENCY GRAPH",
858 "event",
859 "Return a latency graph for the event.",
860 9,
861 "2.8.13" },
862 { "LATENCY HELP",
863 "",
864 "Show helpful text about the different subcommands.",
865 9,
866 "2.8.13" },
867 { "LATENCY HISTOGRAM",
868 "[command [command ...]]",
869 "Return the cumulative distribution of latencies of a subset of commands or all.",
870 9,
871 "7.0.0" },
872 { "LATENCY HISTORY",
873 "event",
874 "Return timestamp-latency samples for the event.",
875 9,
876 "2.8.13" },
877 { "LATENCY LATEST",
878 "",
879 "Return the latest latency samples for all events.",
880 9,
881 "2.8.13" },
882 { "LATENCY RESET",
883 "[event [event ...]]",
884 "Reset latency data for one or more events.",
885 9,
886 "2.8.13" },
887 { "LCS",
888 "key1 key2 [LEN] [IDX] [MINMATCHLEN len] [WITHMATCHLEN]",
889 "Find longest common substring",
890 1,
891 "7.0.0" },
892 { "LINDEX",
893 "key index",
894 "Get an element from a list by its index",
895 2,
896 "1.0.0" },
897 { "LINSERT",
898 "key BEFORE|AFTER pivot element",
899 "Insert an element before or after another element in a list",
900 2,
901 "2.2.0" },
902 { "LLEN",
903 "key",
904 "Get the length of a list",
905 2,
906 "1.0.0" },
907 { "LMOVE",
908 "source destination LEFT|RIGHT LEFT|RIGHT",
909 "Pop an element from a list, push it to another list and return it",
910 2,
911 "6.2.0" },
912 { "LMPOP",
913 "numkeys key [key ...] LEFT|RIGHT [COUNT count]",
914 "Pop elements from a list",
915 2,
916 "7.0.0" },
917 { "LOLWUT",
918 "[VERSION version]",
919 "Display some computer art and the Redis version",
920 9,
921 "5.0.0" },
922 { "LPOP",
923 "key [count]",
924 "Remove and get the first elements in a list",
925 2,
926 "1.0.0" },
927 { "LPOS",
928 "key element [RANK rank] [COUNT num-matches] [MAXLEN len]",
929 "Return the index of matching elements on a list",
930 2,
931 "6.0.6" },
932 { "LPUSH",
933 "key element [element ...]",
934 "Prepend one or multiple elements to a list",
935 2,
936 "1.0.0" },
937 { "LPUSHX",
938 "key element [element ...]",
939 "Prepend an element to a list, only if the list exists",
940 2,
941 "2.2.0" },
942 { "LRANGE",
943 "key start stop",
944 "Get a range of elements from a list",
945 2,
946 "1.0.0" },
947 { "LREM",
948 "key count element",
949 "Remove elements from a list",
950 2,
951 "1.0.0" },
952 { "LSET",
953 "key index element",
954 "Set the value of an element in a list by its index",
955 2,
956 "1.0.0" },
957 { "LTRIM",
958 "key start stop",
959 "Trim a list to the specified range",
960 2,
961 "1.0.0" },
962 { "MEMORY",
963 "",
964 "A container for memory diagnostics commands",
965 9,
966 "4.0.0" },
967 { "MEMORY DOCTOR",
968 "",
969 "Outputs memory problems report",
970 9,
971 "4.0.0" },
972 { "MEMORY HELP",
973 "",
974 "Show helpful text about the different subcommands",
975 9,
976 "4.0.0" },
977 { "MEMORY MALLOC-STATS",
978 "",
979 "Show allocator internal stats",
980 9,
981 "4.0.0" },
982 { "MEMORY PURGE",
983 "",
984 "Ask the allocator to release memory",
985 9,
986 "4.0.0" },
987 { "MEMORY STATS",
988 "",
989 "Show memory usage details",
990 9,
991 "4.0.0" },
992 { "MEMORY USAGE",
993 "key [SAMPLES count]",
994 "Estimate the memory usage of a key",
995 9,
996 "4.0.0" },
997 { "MGET",
998 "key [key ...]",
999 "Get the values of all the given keys",
1000 1,
1001 "1.0.0" },
1002 { "MIGRATE",
1003 "host port key| destination-db timeout [COPY] [REPLACE] [[AUTH password]|[AUTH2 username password]] [KEYS key [key ...]]",
1004 "Atomically transfer a key from a Redis instance to another one.",
1005 0,
1006 "2.6.0" },
1007 { "MODULE",
1008 "",
1009 "A container for module commands",
1010 9,
1011 "4.0.0" },
1012 { "MODULE HELP",
1013 "",
1014 "Show helpful text about the different subcommands",
1015 9,
1016 "5.0.0" },
1017 { "MODULE LIST",
1018 "",
1019 "List all modules loaded by the server",
1020 9,
1021 "4.0.0" },
1022 { "MODULE LOAD",
1023 "path [arg [arg ...]]",
1024 "Load a module",
1025 9,
1026 "4.0.0" },
1027 { "MODULE LOADEX",
1028 "path [CONFIG name value [CONFIG name value ...]] [ARGS arg [arg ...]]",
1029 "Load a module with extended parameters",
1030 9,
1031 "7.0.0" },
1032 { "MODULE UNLOAD",
1033 "name",
1034 "Unload a module",
1035 9,
1036 "4.0.0" },
1037 { "MONITOR",
1038 "",
1039 "Listen for all requests received by the server in real time",
1040 9,
1041 "1.0.0" },
1042 { "MOVE",
1043 "key db",
1044 "Move a key to another database",
1045 0,
1046 "1.0.0" },
1047 { "MSET",
1048 "key value [key value ...]",
1049 "Set multiple keys to multiple values",
1050 1,
1051 "1.0.1" },
1052 { "MSETNX",
1053 "key value [key value ...]",
1054 "Set multiple keys to multiple values, only if none of the keys exist",
1055 1,
1056 "1.0.1" },
1057 { "MULTI",
1058 "",
1059 "Mark the start of a transaction block",
1060 7,
1061 "1.2.0" },
1062 { "OBJECT",
1063 "",
1064 "A container for object introspection commands",
1065 0,
1066 "2.2.3" },
1067 { "OBJECT ENCODING",
1068 "key",
1069 "Inspect the internal encoding of a Redis object",
1070 0,
1071 "2.2.3" },
1072 { "OBJECT FREQ",
1073 "key",
1074 "Get the logarithmic access frequency counter of a Redis object",
1075 0,
1076 "4.0.0" },
1077 { "OBJECT HELP",
1078 "",
1079 "Show helpful text about the different subcommands",
1080 0,
1081 "6.2.0" },
1082 { "OBJECT IDLETIME",
1083 "key",
1084 "Get the time since a Redis object was last accessed",
1085 0,
1086 "2.2.3" },
1087 { "OBJECT REFCOUNT",
1088 "key",
1089 "Get the number of references to the value of the key",
1090 0,
1091 "2.2.3" },
1092 { "PERSIST",
1093 "key",
1094 "Remove the expiration from a key",
1095 0,
1096 "2.2.0" },
1097 { "PEXPIRE",
1098 "key milliseconds [NX|XX|GT|LT]",
1099 "Set a key's time to live in milliseconds",
1100 0,
1101 "2.6.0" },
1102 { "PEXPIREAT",
1103 "key unix-time-milliseconds [NX|XX|GT|LT]",
1104 "Set the expiration for a key as a UNIX timestamp specified in milliseconds",
1105 0,
1106 "2.6.0" },
1107 { "PEXPIRETIME",
1108 "key",
1109 "Get the expiration Unix timestamp for a key in milliseconds",
1110 0,
1111 "7.0.0" },
1112 { "PFADD",
1113 "key [element [element ...]]",
1114 "Adds the specified elements to the specified HyperLogLog.",
1115 11,
1116 "2.8.9" },
1117 { "PFCOUNT",
1118 "key [key ...]",
1119 "Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).",
1120 11,
1121 "2.8.9" },
1122 { "PFDEBUG",
1123 "subcommand key",
1124 "Internal commands for debugging HyperLogLog values",
1125 11,
1126 "2.8.9" },
1127 { "PFMERGE",
1128 "destkey sourcekey [sourcekey ...]",
1129 "Merge N different HyperLogLogs into a single one.",
1130 11,
1131 "2.8.9" },
1132 { "PFSELFTEST",
1133 "",
1134 "An internal command for testing HyperLogLog values",
1135 11,
1136 "2.8.9" },
1137 { "PING",
1138 "[message]",
1139 "Ping the server",
1140 8,
1141 "1.0.0" },
1142 { "PSETEX",
1143 "key milliseconds value",
1144 "Set the value and expiration in milliseconds of a key",
1145 1,
1146 "2.6.0" },
1147 { "PSUBSCRIBE",
1148 "pattern [pattern ...]",
1149 "Listen for messages published to channels matching the given patterns",
1150 6,
1151 "2.0.0" },
1152 { "PSYNC",
1153 "replicationid offset",
1154 "Internal command used for replication",
1155 9,
1156 "2.8.0" },
1157 { "PTTL",
1158 "key",
1159 "Get the time to live for a key in milliseconds",
1160 0,
1161 "2.6.0" },
1162 { "PUBLISH",
1163 "channel message",
1164 "Post a message to a channel",
1165 6,
1166 "2.0.0" },
1167 { "PUBSUB",
1168 "",
1169 "A container for Pub/Sub commands",
1170 6,
1171 "2.8.0" },
1172 { "PUBSUB CHANNELS",
1173 "[pattern]",
1174 "List active channels",
1175 6,
1176 "2.8.0" },
1177 { "PUBSUB HELP",
1178 "",
1179 "Show helpful text about the different subcommands",
1180 6,
1181 "6.2.0" },
1182 { "PUBSUB NUMPAT",
1183 "",
1184 "Get the count of unique patterns pattern subscriptions",
1185 6,
1186 "2.8.0" },
1187 { "PUBSUB NUMSUB",
1188 "[channel [channel ...]]",
1189 "Get the count of subscribers for channels",
1190 6,
1191 "2.8.0" },
1192 { "PUBSUB SHARDCHANNELS",
1193 "[pattern]",
1194 "List active shard channels",
1195 6,
1196 "7.0.0" },
1197 { "PUBSUB SHARDNUMSUB",
1198 "[shardchannel [shardchannel ...]]",
1199 "Get the count of subscribers for shard channels",
1200 6,
1201 "7.0.0" },
1202 { "PUNSUBSCRIBE",
1203 "[pattern [pattern ...]]",
1204 "Stop listening for messages posted to channels matching the given patterns",
1205 6,
1206 "2.0.0" },
1207 { "QUIT",
1208 "",
1209 "Close the connection",
1210 8,
1211 "1.0.0" },
1212 { "RANDOMKEY",
1213 "",
1214 "Return a random key from the keyspace",
1215 0,
1216 "1.0.0" },
1217 { "READONLY",
1218 "",
1219 "Enables read queries for a connection to a cluster replica node",
1220 12,
1221 "3.0.0" },
1222 { "READWRITE",
1223 "",
1224 "Disables read queries for a connection to a cluster replica node",
1225 12,
1226 "3.0.0" },
1227 { "RENAME",
1228 "key newkey",
1229 "Rename a key",
1230 0,
1231 "1.0.0" },
1232 { "RENAMENX",
1233 "key newkey",
1234 "Rename a key, only if the new key does not exist",
1235 0,
1236 "1.0.0" },
1237 { "REPLCONF",
1238 "",
1239 "An internal command for configuring the replication stream",
1240 9,
1241 "3.0.0" },
1242 { "REPLICAOF",
1243 "host port",
1244 "Make the server a replica of another instance, or promote it as master.",
1245 9,
1246 "5.0.0" },
1247 { "RESET",
1248 "",
1249 "Reset the connection",
1250 8,
1251 "6.2.0" },
1252 { "RESTORE",
1253 "key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME seconds] [FREQ frequency]",
1254 "Create a key using the provided serialized value, previously obtained using DUMP.",
1255 0,
1256 "2.6.0" },
1257 { "RESTORE-ASKING",
1258 "key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME seconds] [FREQ frequency]",
1259 "An internal command for migrating keys in a cluster",
1260 9,
1261 "3.0.0" },
1262 { "ROLE",
1263 "",
1264 "Return the role of the instance in the context of replication",
1265 9,
1266 "2.8.12" },
1267 { "RPOP",
1268 "key [count]",
1269 "Remove and get the last elements in a list",
1270 2,
1271 "1.0.0" },
1272 { "RPOPLPUSH",
1273 "source destination",
1274 "Remove the last element in a list, prepend it to another list and return it",
1275 2,
1276 "1.2.0" },
1277 { "RPUSH",
1278 "key element [element ...]",
1279 "Append one or multiple elements to a list",
1280 2,
1281 "1.0.0" },
1282 { "RPUSHX",
1283 "key element [element ...]",
1284 "Append an element to a list, only if the list exists",
1285 2,
1286 "2.2.0" },
1287 { "SADD",
1288 "key member [member ...]",
1289 "Add one or more members to a set",
1290 3,
1291 "1.0.0" },
1292 { "SAVE",
1293 "",
1294 "Synchronously save the dataset to disk",
1295 9,
1296 "1.0.0" },
1297 { "SCAN",
1298 "cursor [MATCH pattern] [COUNT count] [TYPE type]",
1299 "Incrementally iterate the keys space",
1300 0,
1301 "2.8.0" },
1302 { "SCARD",
1303 "key",
1304 "Get the number of members in a set",
1305 3,
1306 "1.0.0" },
1307 { "SCRIPT",
1308 "",
1309 "A container for Lua scripts management commands",
1310 10,
1311 "2.6.0" },
1312 { "SCRIPT DEBUG",
1313 "YES|SYNC|NO",
1314 "Set the debug mode for executed scripts.",
1315 10,
1316 "3.2.0" },
1317 { "SCRIPT EXISTS",
1318 "sha1 [sha1 ...]",
1319 "Check existence of scripts in the script cache.",
1320 10,
1321 "2.6.0" },
1322 { "SCRIPT FLUSH",
1323 "[ASYNC|SYNC]",
1324 "Remove all the scripts from the script cache.",
1325 10,
1326 "2.6.0" },
1327 { "SCRIPT HELP",
1328 "",
1329 "Show helpful text about the different subcommands",
1330 10,
1331 "5.0.0" },
1332 { "SCRIPT KILL",
1333 "",
1334 "Kill the script currently in execution.",
1335 10,
1336 "2.6.0" },
1337 { "SCRIPT LOAD",
1338 "script",
1339 "Load the specified Lua script into the script cache.",
1340 10,
1341 "2.6.0" },
1342 { "SDIFF",
1343 "key [key ...]",
1344 "Subtract multiple sets",
1345 3,
1346 "1.0.0" },
1347 { "SDIFFSTORE",
1348 "destination key [key ...]",
1349 "Subtract multiple sets and store the resulting set in a key",
1350 3,
1351 "1.0.0" },
1352 { "SELECT",
1353 "index",
1354 "Change the selected database for the current connection",
1355 8,
1356 "1.0.0" },
1357 { "SET",
1358 "key value [NX|XX] [GET] [EX seconds|PX milliseconds|EXAT unix-time-seconds|PXAT unix-time-milliseconds|KEEPTTL]",
1359 "Set the string value of a key",
1360 1,
1361 "1.0.0" },
1362 { "SETBIT",
1363 "key offset value",
1364 "Sets or clears the bit at offset in the string value stored at key",
1365 15,
1366 "2.2.0" },
1367 { "SETEX",
1368 "key seconds value",
1369 "Set the value and expiration of a key",
1370 1,
1371 "2.0.0" },
1372 { "SETNX",
1373 "key value",
1374 "Set the value of a key, only if the key does not exist",
1375 1,
1376 "1.0.0" },
1377 { "SETRANGE",
1378 "key offset value",
1379 "Overwrite part of a string at key starting at the specified offset",
1380 1,
1381 "2.2.0" },
1382 { "SHUTDOWN",
1383 "[NOSAVE|SAVE] [NOW] [FORCE] [ABORT]",
1384 "Synchronously save the dataset to disk and then shut down the server",
1385 9,
1386 "1.0.0" },
1387 { "SINTER",
1388 "key [key ...]",
1389 "Intersect multiple sets",
1390 3,
1391 "1.0.0" },
1392 { "SINTERCARD",
1393 "numkeys key [key ...] [LIMIT limit]",
1394 "Intersect multiple sets and return the cardinality of the result",
1395 3,
1396 "7.0.0" },
1397 { "SINTERSTORE",
1398 "destination key [key ...]",
1399 "Intersect multiple sets and store the resulting set in a key",
1400 3,
1401 "1.0.0" },
1402 { "SISMEMBER",
1403 "key member",
1404 "Determine if a given value is a member of a set",
1405 3,
1406 "1.0.0" },
1407 { "SLAVEOF",
1408 "host port",
1409 "Make the server a replica of another instance, or promote it as master.",
1410 9,
1411 "1.0.0" },
1412 { "SLOWLOG",
1413 "",
1414 "A container for slow log commands",
1415 9,
1416 "2.2.12" },
1417 { "SLOWLOG GET",
1418 "[count]",
1419 "Get the slow log's entries",
1420 9,
1421 "2.2.12" },
1422 { "SLOWLOG HELP",
1423 "",
1424 "Show helpful text about the different subcommands",
1425 9,
1426 "6.2.0" },
1427 { "SLOWLOG LEN",
1428 "",
1429 "Get the slow log's length",
1430 9,
1431 "2.2.12" },
1432 { "SLOWLOG RESET",
1433 "",
1434 "Clear all entries from the slow log",
1435 9,
1436 "2.2.12" },
1437 { "SMEMBERS",
1438 "key",
1439 "Get all the members in a set",
1440 3,
1441 "1.0.0" },
1442 { "SMISMEMBER",
1443 "key member [member ...]",
1444 "Returns the membership associated with the given elements for a set",
1445 3,
1446 "6.2.0" },
1447 { "SMOVE",
1448 "source destination member",
1449 "Move a member from one set to another",
1450 3,
1451 "1.0.0" },
1452 { "SORT",
1453 "key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]",
1454 "Sort the elements in a list, set or sorted set",
1455 0,
1456 "1.0.0" },
1457 { "SORT_RO",
1458 "key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA]",
1459 "Sort the elements in a list, set or sorted set. Read-only variant of SORT.",
1460 0,
1461 "7.0.0" },
1462 { "SPOP",
1463 "key [count]",
1464 "Remove and return one or multiple random members from a set",
1465 3,
1466 "1.0.0" },
1467 { "SPUBLISH",
1468 "shardchannel message",
1469 "Post a message to a shard channel",
1470 6,
1471 "7.0.0" },
1472 { "SRANDMEMBER",
1473 "key [count]",
1474 "Get one or multiple random members from a set",
1475 3,
1476 "1.0.0" },
1477 { "SREM",
1478 "key member [member ...]",
1479 "Remove one or more members from a set",
1480 3,
1481 "1.0.0" },
1482 { "SSCAN",
1483 "key cursor [MATCH pattern] [COUNT count]",
1484 "Incrementally iterate Set elements",
1485 3,
1486 "2.8.0" },
1487 { "SSUBSCRIBE",
1488 "shardchannel [shardchannel ...]",
1489 "Listen for messages published to the given shard channels",
1490 6,
1491 "7.0.0" },
1492 { "STRLEN",
1493 "key",
1494 "Get the length of the value stored in a key",
1495 1,
1496 "2.2.0" },
1497 { "SUBSCRIBE",
1498 "channel [channel ...]",
1499 "Listen for messages published to the given channels",
1500 6,
1501 "2.0.0" },
1502 { "SUBSTR",
1503 "key start end",
1504 "Get a substring of the string stored at a key",
1505 1,
1506 "1.0.0" },
1507 { "SUNION",
1508 "key [key ...]",
1509 "Add multiple sets",
1510 3,
1511 "1.0.0" },
1512 { "SUNIONSTORE",
1513 "destination key [key ...]",
1514 "Add multiple sets and store the resulting set in a key",
1515 3,
1516 "1.0.0" },
1517 { "SUNSUBSCRIBE",
1518 "[shardchannel [shardchannel ...]]",
1519 "Stop listening for messages posted to the given shard channels",
1520 6,
1521 "7.0.0" },
1522 { "SWAPDB",
1523 "index1 index2",
1524 "Swaps two Redis databases",
1525 9,
1526 "4.0.0" },
1527 { "SYNC",
1528 "",
1529 "Internal command used for replication",
1530 9,
1531 "1.0.0" },
1532 { "TIME",
1533 "",
1534 "Return the current server time",
1535 9,
1536 "2.6.0" },
1537 { "TOUCH",
1538 "key [key ...]",
1539 "Alters the last access time of a key(s). Returns the number of existing keys specified.",
1540 0,
1541 "3.2.1" },
1542 { "TTL",
1543 "key",
1544 "Get the time to live for a key in seconds",
1545 0,
1546 "1.0.0" },
1547 { "TYPE",
1548 "key",
1549 "Determine the type stored at key",
1550 0,
1551 "1.0.0" },
1552 { "UNLINK",
1553 "key [key ...]",
1554 "Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.",
1555 0,
1556 "4.0.0" },
1557 { "UNSUBSCRIBE",
1558 "[channel [channel ...]]",
1559 "Stop listening for messages posted to the given channels",
1560 6,
1561 "2.0.0" },
1562 { "UNWATCH",
1563 "",
1564 "Forget about all watched keys",
1565 7,
1566 "2.2.0" },
1567 { "WAIT",
1568 "numreplicas timeout",
1569 "Wait for the synchronous replication of all the write commands sent in the context of the current connection",
1570 0,
1571 "3.0.0" },
1572 { "WATCH",
1573 "key [key ...]",
1574 "Watch the given keys to determine execution of the MULTI/EXEC block",
1575 7,
1576 "2.2.0" },
1577 { "XACK",
1578 "key group id [id ...]",
1579 "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.",
1580 14,
1581 "5.0.0" },
1582 { "XADD",
1583 "key [NOMKSTREAM] [MAXLEN|MINID [=|~] threshold [LIMIT count]] *|id field value [field value ...]",
1584 "Appends a new entry to a stream",
1585 14,
1586 "5.0.0" },
1587 { "XAUTOCLAIM",
1588 "key group consumer min-idle-time start [COUNT count] [JUSTID]",
1589 "Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to the specified consumer.",
1590 14,
1591 "6.2.0" },
1592 { "XCLAIM",
1593 "key group consumer min-idle-time id [id ...] [IDLE ms] [TIME unix-time-milliseconds] [RETRYCOUNT count] [FORCE] [JUSTID]",
1594 "Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer.",
1595 14,
1596 "5.0.0" },
1597 { "XDEL",
1598 "key id [id ...]",
1599 "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.",
1600 14,
1601 "5.0.0" },
1602 { "XGROUP",
1603 "",
1604 "A container for consumer groups commands",
1605 14,
1606 "5.0.0" },
1607 { "XGROUP CREATE",
1608 "key groupname id|$ [MKSTREAM] [ENTRIESREAD entries_read]",
1609 "Create a consumer group.",
1610 14,
1611 "5.0.0" },
1612 { "XGROUP CREATECONSUMER",
1613 "key groupname consumername",
1614 "Create a consumer in a consumer group.",
1615 14,
1616 "6.2.0" },
1617 { "XGROUP DELCONSUMER",
1618 "key groupname consumername",
1619 "Delete a consumer from a consumer group.",
1620 14,
1621 "5.0.0" },
1622 { "XGROUP DESTROY",
1623 "key groupname",
1624 "Destroy a consumer group.",
1625 14,
1626 "5.0.0" },
1627 { "XGROUP HELP",
1628 "",
1629 "Show helpful text about the different subcommands",
1630 14,
1631 "5.0.0" },
1632 { "XGROUP SETID",
1633 "key groupname id|$ [ENTRIESREAD entries_read]",
1634 "Set a consumer group to an arbitrary last delivered ID value.",
1635 14,
1636 "5.0.0" },
1637 { "XINFO",
1638 "",
1639 "A container for stream introspection commands",
1640 14,
1641 "5.0.0" },
1642 { "XINFO CONSUMERS",
1643 "key groupname",
1644 "List the consumers in a consumer group",
1645 14,
1646 "5.0.0" },
1647 { "XINFO GROUPS",
1648 "key",
1649 "List the consumer groups of a stream",
1650 14,
1651 "5.0.0" },
1652 { "XINFO HELP",
1653 "",
1654 "Show helpful text about the different subcommands",
1655 14,
1656 "5.0.0" },
1657 { "XINFO STREAM",
1658 "key [FULL [COUNT count]]",
1659 "Get information about a stream",
1660 14,
1661 "5.0.0" },
1662 { "XLEN",
1663 "key",
1664 "Return the number of entries in a stream",
1665 14,
1666 "5.0.0" },
1667 { "XPENDING",
1668 "key group [[IDLE min-idle-time] start end count [consumer]]",
1669 "Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged.",
1670 14,
1671 "5.0.0" },
1672 { "XRANGE",
1673 "key start end [COUNT count]",
1674 "Return a range of elements in a stream, with IDs matching the specified IDs interval",
1675 14,
1676 "5.0.0" },
1677 { "XREAD",
1678 "[COUNT count] [BLOCK milliseconds] STREAMS key [key ...] id [id ...]",
1679 "Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block.",
1680 14,
1681 "5.0.0" },
1682 { "XREADGROUP",
1683 "GROUP group consumer [COUNT count] [BLOCK milliseconds] [NOACK] STREAMS key [key ...] id [id ...]",
1684 "Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block.",
1685 14,
1686 "5.0.0" },
1687 { "XREVRANGE",
1688 "key end start [COUNT count]",
1689 "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",
1690 14,
1691 "5.0.0" },
1692 { "XSETID",
1693 "key last-id [ENTRIESADDED entries_added] [MAXDELETEDID max_deleted_entry_id]",
1694 "An internal command for replicating stream values",
1695 14,
1696 "5.0.0" },
1697 { "XTRIM",
1698 "key MAXLEN|MINID [=|~] threshold [LIMIT count]",
1699 "Trims the stream to (approximately if '~' is passed) a certain size",
1700 14,
1701 "5.0.0" },
1702 { "ZADD",
1703 "key [NX|XX] [GT|LT] [CH] [INCR] score member [score member ...]",
1704 "Add one or more members to a sorted set, or update its score if it already exists",
1705 4,
1706 "1.2.0" },
1707 { "ZCARD",
1708 "key",
1709 "Get the number of members in a sorted set",
1710 4,
1711 "1.2.0" },
1712 { "ZCOUNT",
1713 "key min max",
1714 "Count the members in a sorted set with scores within the given values",
1715 4,
1716 "2.0.0" },
1717 { "ZDIFF",
1718 "numkeys key [key ...] [WITHSCORES]",
1719 "Subtract multiple sorted sets",
1720 4,
1721 "6.2.0" },
1722 { "ZDIFFSTORE",
1723 "destination numkeys key [key ...]",
1724 "Subtract multiple sorted sets and store the resulting sorted set in a new key",
1725 4,
1726 "6.2.0" },
1727 { "ZINCRBY",
1728 "key increment member",
1729 "Increment the score of a member in a sorted set",
1730 4,
1731 "1.2.0" },
1732 { "ZINTER",
1733 "numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] [WITHSCORES]",
1734 "Intersect multiple sorted sets",
1735 4,
1736 "6.2.0" },
1737 { "ZINTERCARD",
1738 "numkeys key [key ...] [LIMIT limit]",
1739 "Intersect multiple sorted sets and return the cardinality of the result",
1740 4,
1741 "7.0.0" },
1742 { "ZINTERSTORE",
1743 "destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]",
1744 "Intersect multiple sorted sets and store the resulting sorted set in a new key",
1745 4,
1746 "2.0.0" },
1747 { "ZLEXCOUNT",
1748 "key min max",
1749 "Count the number of members in a sorted set between a given lexicographical range",
1750 4,
1751 "2.8.9" },
1752 { "ZMPOP",
1753 "numkeys key [key ...] MIN|MAX [COUNT count]",
1754 "Remove and return members with scores in a sorted set",
1755 4,
1756 "7.0.0" },
1757 { "ZMSCORE",
1758 "key member [member ...]",
1759 "Get the score associated with the given members in a sorted set",
1760 4,
1761 "6.2.0" },
1762 { "ZPOPMAX",
1763 "key [count]",
1764 "Remove and return members with the highest scores in a sorted set",
1765 4,
1766 "5.0.0" },
1767 { "ZPOPMIN",
1768 "key [count]",
1769 "Remove and return members with the lowest scores in a sorted set",
1770 4,
1771 "5.0.0" },
1772 { "ZRANDMEMBER",
1773 "key [count [WITHSCORES]]",
1774 "Get one or multiple random elements from a sorted set",
1775 4,
1776 "6.2.0" },
1777 { "ZRANGE",
1778 "key start stop [BYSCORE|BYLEX] [REV] [LIMIT offset count] [WITHSCORES]",
1779 "Return a range of members in a sorted set",
1780 4,
1781 "1.2.0" },
1782 { "ZRANGEBYLEX",
1783 "key min max [LIMIT offset count]",
1784 "Return a range of members in a sorted set, by lexicographical range",
1785 4,
1786 "2.8.9" },
1787 { "ZRANGEBYSCORE",
1788 "key min max [WITHSCORES] [LIMIT offset count]",
1789 "Return a range of members in a sorted set, by score",
1790 4,
1791 "1.0.5" },
1792 { "ZRANGESTORE",
1793 "dst src min max [BYSCORE|BYLEX] [REV] [LIMIT offset count]",
1794 "Store a range of members from sorted set into another key",
1795 4,
1796 "6.2.0" },
1797 { "ZRANK",
1798 "key member",
1799 "Determine the index of a member in a sorted set",
1800 4,
1801 "2.0.0" },
1802 { "ZREM",
1803 "key member [member ...]",
1804 "Remove one or more members from a sorted set",
1805 4,
1806 "1.2.0" },
1807 { "ZREMRANGEBYLEX",
1808 "key min max",
1809 "Remove all members in a sorted set between the given lexicographical range",
1810 4,
1811 "2.8.9" },
1812 { "ZREMRANGEBYRANK",
1813 "key start stop",
1814 "Remove all members in a sorted set within the given indexes",
1815 4,
1816 "2.0.0" },
1817 { "ZREMRANGEBYSCORE",
1818 "key min max",
1819 "Remove all members in a sorted set within the given scores",
1820 4,
1821 "1.2.0" },
1822 { "ZREVRANGE",
1823 "key start stop [WITHSCORES]",
1824 "Return a range of members in a sorted set, by index, with scores ordered from high to low",
1825 4,
1826 "1.2.0" },
1827 { "ZREVRANGEBYLEX",
1828 "key max min [LIMIT offset count]",
1829 "Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.",
1830 4,
1831 "2.8.9" },
1832 { "ZREVRANGEBYSCORE",
1833 "key max min [WITHSCORES] [LIMIT offset count]",
1834 "Return a range of members in a sorted set, by score, with scores ordered from high to low",
1835 4,
1836 "2.2.0" },
1837 { "ZREVRANK",
1838 "key member",
1839 "Determine the index of a member in a sorted set, with scores ordered from high to low",
1840 4,
1841 "2.0.0" },
1842 { "ZSCAN",
1843 "key cursor [MATCH pattern] [COUNT count]",
1844 "Incrementally iterate sorted sets elements and associated scores",
1845 4,
1846 "2.8.0" },
1847 { "ZSCORE",
1848 "key member",
1849 "Get the score associated with the given member in a sorted set",
1850 4,
1851 "1.2.0" },
1852 { "ZUNION",
1853 "numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] [WITHSCORES]",
1854 "Add multiple sorted sets",
1855 4,
1856 "6.2.0" },
1857 { "ZUNIONSTORE",
1858 "destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]",
1859 "Add multiple sorted sets and store the resulting sorted set in a new key",
1860 4,
1861 "2.0.0" }
1862};
1863
1864#endif
1865