"Fossies" - the Fresh Open Source Software Archive

Member "redis-6.0.8/src/help.h" (10 Sep 2020, 33494 Bytes) of package /linux/misc/redis-6.0.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "help.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 6.0.7_vs_6.0.8.

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