From 10bbeb68377bc2b20442e6578183dbc61fb57ec3 Mon Sep 17 00:00:00 2001 From: guybe7 Date: Thu, 20 Jan 2022 10:32:11 +0100 Subject: [PATCH] Add command tips to COMMAND DOCS (#10104) Adding command tips (see https://redis.io/topics/command-tips) to commands. Breaking changes: 1. Removed the "random" and "sort_for_script" flags. They are now command tips. (this isn't affecting redis behavior since #9812, but could affect some client applications that's relying on COMMAND command flags) Summary of changes: 1. add BLOCKING flag (new flag) for all commands that could block. The ACL category with the same name is now implicit. 2. move RANDOM flag to a `nondeterministic_output` tip 3. move SORT_FOR_SCRIPT flag to `nondeterministic_output_order` tip 3. add REQUEST_POLICY and RESPONSE_POLICY where appropriate as documented in the tips 4. deprecate (ignore) the `random` flag for RM_CreateCommand Other notes: 1. Proxies need to send `RANDOMKEY` to all shards and then select one key randomly. The other option is to pick a random shard and transfer `RANDOMKEY `to it, but that scheme fails if this specific shard is empty 2. Remove CMD_RANDOM from `XACK` (i.e. XACK does not have RANDOM_OUTPUT) It was added in 9e4fb96ca12476b1c7468b143efca86b478bfb4a, I guess by mistake. Also from `(P)EXPIRETIME` (new command, was flagged "random" by mistake). 3. Add `nondeterministic_output` to `OBJECT ENCODING` (for the same reason `XTRIM` has it: the reply may differ depending on the internal representation in memory) 4. RANDOM on `HGETALL` was wrong (there due to a limitation of the old script sorting logic), now it's `nondeterministic_output_order` 5. Unrelated: Hide CMD_PROTECTED from COMMAND --- src/commands.c | 2595 +++++++++-------- src/commands/blmove.json | 6 +- src/commands/blmpop.json | 6 +- src/commands/blpop.json | 6 +- src/commands/brpop.json | 6 +- src/commands/brpoplpush.json | 6 +- src/commands/bzmpop.json | 6 +- src/commands/bzpopmax.json | 6 +- src/commands/bzpopmin.json | 6 +- src/commands/client-info.json | 4 +- src/commands/client-list.json | 4 +- src/commands/cluster-addslots.json | 4 +- src/commands/cluster-addslotsrange.json | 4 +- src/commands/cluster-bumpepoch.json | 4 +- .../cluster-count-failure-reports.json | 4 +- src/commands/cluster-countkeysinslot.json | 4 +- src/commands/cluster-delslots.json | 4 +- src/commands/cluster-delslotsrange.json | 4 +- src/commands/cluster-failover.json | 4 +- src/commands/cluster-flushslots.json | 4 +- src/commands/cluster-forget.json | 4 +- src/commands/cluster-getkeysinslot.json | 4 +- src/commands/cluster-info.json | 4 +- src/commands/cluster-keyslot.json | 4 +- src/commands/cluster-links.json | 4 +- src/commands/cluster-meet.json | 4 +- src/commands/cluster-myid.json | 4 +- src/commands/cluster-nodes.json | 4 +- src/commands/cluster-replicas.json | 4 +- src/commands/cluster-replicate.json | 4 +- src/commands/cluster-reset.json | 4 +- src/commands/cluster-saveconfig.json | 4 +- src/commands/cluster-set-config-epoch.json | 4 +- src/commands/cluster-setslot.json | 4 +- src/commands/cluster-slaves.json | 4 +- src/commands/cluster-slots.json | 4 +- src/commands/command.json | 4 +- src/commands/config-set.json | 4 + src/commands/dbsize.json | 4 + src/commands/del.json | 4 + src/commands/dump.json | 6 +- src/commands/exists.json | 4 + src/commands/expiretime.json | 1 - src/commands/flushall.json | 4 + src/commands/flushdb.json | 4 + src/commands/function-delete.json | 4 + src/commands/function-flush.json | 4 + src/commands/function-kill.json | 4 + src/commands/function-load.json | 4 + src/commands/function-restore.json | 4 + src/commands/function-stats.json | 4 + src/commands/hgetall.json | 6 +- src/commands/hkeys.json | 6 +- src/commands/hrandfield.json | 6 +- src/commands/hscan.json | 6 +- src/commands/hvals.json | 6 +- src/commands/info.json | 6 +- src/commands/keys.json | 7 +- src/commands/lastsave.json | 4 +- src/commands/memory-doctor.json | 4 +- src/commands/memory-malloc-stats.json | 4 +- src/commands/memory-stats.json | 4 +- src/commands/mget.json | 3 + src/commands/migrate.json | 6 +- src/commands/mset.json | 4 + src/commands/object-encoding.json | 3 + src/commands/object-freq.json | 6 +- src/commands/object-idletime.json | 6 +- src/commands/pexpiretime.json | 1 - src/commands/ping.json | 4 + src/commands/pttl.json | 4 +- src/commands/randomkey.json | 7 +- src/commands/scan.json | 7 +- src/commands/script-exists.json | 4 + src/commands/script-flush.json | 4 + src/commands/script-kill.json | 4 + src/commands/script-load.json | 4 + src/commands/sdiff.json | 6 +- src/commands/sinter.json | 6 +- src/commands/slowlog-get.json | 5 +- src/commands/slowlog-len.json | 6 +- src/commands/slowlog-reset.json | 4 + src/commands/smembers.json | 6 +- src/commands/spop.json | 4 +- src/commands/srandmember.json | 6 +- src/commands/sscan.json | 6 +- src/commands/sunion.json | 6 +- src/commands/time.json | 4 +- src/commands/touch.json | 4 + src/commands/ttl.json | 4 +- src/commands/unlink.json | 4 + src/commands/wait.json | 4 + src/commands/xack.json | 1 - src/commands/xadd.json | 4 +- src/commands/xautoclaim.json | 4 +- src/commands/xclaim.json | 4 +- src/commands/xinfo-consumers.json | 6 +- src/commands/xpending.json | 6 +- src/commands/xread.json | 7 +- src/commands/xreadgroup.json | 4 +- src/commands/xtrim.json | 6 +- src/commands/zrandmember.json | 6 +- src/commands/zscan.json | 6 +- src/module.c | 11 +- src/server.c | 24 +- src/server.h | 16 +- utils/generate-command-code.py | 24 +- 107 files changed, 1830 insertions(+), 1310 deletions(-) diff --git a/src/commands.c b/src/commands.c index 172c04b36..e97e6a486 100644 --- a/src/commands.c +++ b/src/commands.c @@ -14,8 +14,8 @@ commandHistory BITCOUNT_History[] = { {0} }; -/* BITCOUNT hints */ -#define BITCOUNT_Hints NULL +/* BITCOUNT tips */ +#define BITCOUNT_tips NULL /* BITCOUNT index index_unit argument table */ struct redisCommandArg BITCOUNT_index_index_unit_Subargs[] = { @@ -44,8 +44,8 @@ struct redisCommandArg BITCOUNT_Args[] = { /* BITFIELD history */ #define BITFIELD_History NULL -/* BITFIELD hints */ -#define BITFIELD_Hints NULL +/* BITFIELD tips */ +#define BITFIELD_tips NULL /* BITFIELD encoding_offset argument table */ struct redisCommandArg BITFIELD_encoding_offset_Subargs[] = { @@ -93,8 +93,8 @@ struct redisCommandArg BITFIELD_Args[] = { /* BITFIELD_RO history */ #define BITFIELD_RO_History NULL -/* BITFIELD_RO hints */ -#define BITFIELD_RO_Hints NULL +/* BITFIELD_RO tips */ +#define BITFIELD_RO_tips NULL /* BITFIELD_RO encoding_offset argument table */ struct redisCommandArg BITFIELD_RO_encoding_offset_Subargs[] = { @@ -115,8 +115,8 @@ struct redisCommandArg BITFIELD_RO_Args[] = { /* BITOP history */ #define BITOP_History NULL -/* BITOP hints */ -#define BITOP_Hints NULL +/* BITOP tips */ +#define BITOP_tips NULL /* BITOP argument table */ struct redisCommandArg BITOP_Args[] = { @@ -134,8 +134,8 @@ commandHistory BITPOS_History[] = { {0} }; -/* BITPOS hints */ -#define BITPOS_Hints NULL +/* BITPOS tips */ +#define BITPOS_tips NULL /* BITPOS index end_index index_unit argument table */ struct redisCommandArg BITPOS_index_end_index_index_unit_Subargs[] = { @@ -171,8 +171,8 @@ struct redisCommandArg BITPOS_Args[] = { /* GETBIT history */ #define GETBIT_History NULL -/* GETBIT hints */ -#define GETBIT_Hints NULL +/* GETBIT tips */ +#define GETBIT_tips NULL /* GETBIT argument table */ struct redisCommandArg GETBIT_Args[] = { @@ -186,8 +186,8 @@ struct redisCommandArg GETBIT_Args[] = { /* SETBIT history */ #define SETBIT_History NULL -/* SETBIT hints */ -#define SETBIT_Hints NULL +/* SETBIT tips */ +#define SETBIT_tips NULL /* SETBIT argument table */ struct redisCommandArg SETBIT_Args[] = { @@ -202,16 +202,19 @@ struct redisCommandArg SETBIT_Args[] = { /* ASKING history */ #define ASKING_History NULL -/* ASKING hints */ -#define ASKING_Hints NULL +/* ASKING tips */ +#define ASKING_tips NULL /********** CLUSTER ADDSLOTS ********************/ /* CLUSTER ADDSLOTS history */ #define CLUSTER_ADDSLOTS_History NULL -/* CLUSTER ADDSLOTS hints */ -#define CLUSTER_ADDSLOTS_Hints NULL +/* CLUSTER ADDSLOTS tips */ +const char *CLUSTER_ADDSLOTS_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER ADDSLOTS argument table */ struct redisCommandArg CLUSTER_ADDSLOTS_Args[] = { @@ -224,8 +227,11 @@ struct redisCommandArg CLUSTER_ADDSLOTS_Args[] = { /* CLUSTER ADDSLOTSRANGE history */ #define CLUSTER_ADDSLOTSRANGE_History NULL -/* CLUSTER ADDSLOTSRANGE hints */ -#define CLUSTER_ADDSLOTSRANGE_Hints NULL +/* CLUSTER ADDSLOTSRANGE tips */ +const char *CLUSTER_ADDSLOTSRANGE_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER ADDSLOTSRANGE start_slot_end_slot argument table */ struct redisCommandArg CLUSTER_ADDSLOTSRANGE_start_slot_end_slot_Subargs[] = { @@ -245,16 +251,22 @@ struct redisCommandArg CLUSTER_ADDSLOTSRANGE_Args[] = { /* CLUSTER BUMPEPOCH history */ #define CLUSTER_BUMPEPOCH_History NULL -/* CLUSTER BUMPEPOCH hints */ -#define CLUSTER_BUMPEPOCH_Hints NULL +/* CLUSTER BUMPEPOCH tips */ +const char *CLUSTER_BUMPEPOCH_tips[] = { +"nondeterministic_output", +NULL +}; /********** CLUSTER COUNT_FAILURE_REPORTS ********************/ /* CLUSTER COUNT_FAILURE_REPORTS history */ #define CLUSTER_COUNT_FAILURE_REPORTS_History NULL -/* CLUSTER COUNT_FAILURE_REPORTS hints */ -#define CLUSTER_COUNT_FAILURE_REPORTS_Hints NULL +/* CLUSTER COUNT_FAILURE_REPORTS tips */ +const char *CLUSTER_COUNT_FAILURE_REPORTS_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER COUNT_FAILURE_REPORTS argument table */ struct redisCommandArg CLUSTER_COUNT_FAILURE_REPORTS_Args[] = { @@ -267,8 +279,11 @@ struct redisCommandArg CLUSTER_COUNT_FAILURE_REPORTS_Args[] = { /* CLUSTER COUNTKEYSINSLOT history */ #define CLUSTER_COUNTKEYSINSLOT_History NULL -/* CLUSTER COUNTKEYSINSLOT hints */ -#define CLUSTER_COUNTKEYSINSLOT_Hints NULL +/* CLUSTER COUNTKEYSINSLOT tips */ +const char *CLUSTER_COUNTKEYSINSLOT_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER COUNTKEYSINSLOT argument table */ struct redisCommandArg CLUSTER_COUNTKEYSINSLOT_Args[] = { @@ -281,8 +296,11 @@ struct redisCommandArg CLUSTER_COUNTKEYSINSLOT_Args[] = { /* CLUSTER DELSLOTS history */ #define CLUSTER_DELSLOTS_History NULL -/* CLUSTER DELSLOTS hints */ -#define CLUSTER_DELSLOTS_Hints NULL +/* CLUSTER DELSLOTS tips */ +const char *CLUSTER_DELSLOTS_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER DELSLOTS argument table */ struct redisCommandArg CLUSTER_DELSLOTS_Args[] = { @@ -295,8 +313,11 @@ struct redisCommandArg CLUSTER_DELSLOTS_Args[] = { /* CLUSTER DELSLOTSRANGE history */ #define CLUSTER_DELSLOTSRANGE_History NULL -/* CLUSTER DELSLOTSRANGE hints */ -#define CLUSTER_DELSLOTSRANGE_Hints NULL +/* CLUSTER DELSLOTSRANGE tips */ +const char *CLUSTER_DELSLOTSRANGE_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER DELSLOTSRANGE start_slot_end_slot argument table */ struct redisCommandArg CLUSTER_DELSLOTSRANGE_start_slot_end_slot_Subargs[] = { @@ -316,8 +337,11 @@ struct redisCommandArg CLUSTER_DELSLOTSRANGE_Args[] = { /* CLUSTER FAILOVER history */ #define CLUSTER_FAILOVER_History NULL -/* CLUSTER FAILOVER hints */ -#define CLUSTER_FAILOVER_Hints NULL +/* CLUSTER FAILOVER tips */ +const char *CLUSTER_FAILOVER_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER FAILOVER options argument table */ struct redisCommandArg CLUSTER_FAILOVER_options_Subargs[] = { @@ -337,16 +361,22 @@ struct redisCommandArg CLUSTER_FAILOVER_Args[] = { /* CLUSTER FLUSHSLOTS history */ #define CLUSTER_FLUSHSLOTS_History NULL -/* CLUSTER FLUSHSLOTS hints */ -#define CLUSTER_FLUSHSLOTS_Hints NULL +/* CLUSTER FLUSHSLOTS tips */ +const char *CLUSTER_FLUSHSLOTS_tips[] = { +"nondeterministic_output", +NULL +}; /********** CLUSTER FORGET ********************/ /* CLUSTER FORGET history */ #define CLUSTER_FORGET_History NULL -/* CLUSTER FORGET hints */ -#define CLUSTER_FORGET_Hints NULL +/* CLUSTER FORGET tips */ +const char *CLUSTER_FORGET_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER FORGET argument table */ struct redisCommandArg CLUSTER_FORGET_Args[] = { @@ -359,8 +389,11 @@ struct redisCommandArg CLUSTER_FORGET_Args[] = { /* CLUSTER GETKEYSINSLOT history */ #define CLUSTER_GETKEYSINSLOT_History NULL -/* CLUSTER GETKEYSINSLOT hints */ -#define CLUSTER_GETKEYSINSLOT_Hints NULL +/* CLUSTER GETKEYSINSLOT tips */ +const char *CLUSTER_GETKEYSINSLOT_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER GETKEYSINSLOT argument table */ struct redisCommandArg CLUSTER_GETKEYSINSLOT_Args[] = { @@ -374,24 +407,30 @@ struct redisCommandArg CLUSTER_GETKEYSINSLOT_Args[] = { /* CLUSTER HELP history */ #define CLUSTER_HELP_History NULL -/* CLUSTER HELP hints */ -#define CLUSTER_HELP_Hints NULL +/* CLUSTER HELP tips */ +#define CLUSTER_HELP_tips NULL /********** CLUSTER INFO ********************/ /* CLUSTER INFO history */ #define CLUSTER_INFO_History NULL -/* CLUSTER INFO hints */ -#define CLUSTER_INFO_Hints NULL +/* CLUSTER INFO tips */ +const char *CLUSTER_INFO_tips[] = { +"nondeterministic_output", +NULL +}; /********** CLUSTER KEYSLOT ********************/ /* CLUSTER KEYSLOT history */ #define CLUSTER_KEYSLOT_History NULL -/* CLUSTER KEYSLOT hints */ -#define CLUSTER_KEYSLOT_Hints NULL +/* CLUSTER KEYSLOT tips */ +const char *CLUSTER_KEYSLOT_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER KEYSLOT argument table */ struct redisCommandArg CLUSTER_KEYSLOT_Args[] = { @@ -404,16 +443,22 @@ struct redisCommandArg CLUSTER_KEYSLOT_Args[] = { /* CLUSTER LINKS history */ #define CLUSTER_LINKS_History NULL -/* CLUSTER LINKS hints */ -#define CLUSTER_LINKS_Hints NULL +/* CLUSTER LINKS tips */ +const char *CLUSTER_LINKS_tips[] = { +"nondeterministic_output", +NULL +}; /********** CLUSTER MEET ********************/ /* CLUSTER MEET history */ #define CLUSTER_MEET_History NULL -/* CLUSTER MEET hints */ -#define CLUSTER_MEET_Hints NULL +/* CLUSTER MEET tips */ +const char *CLUSTER_MEET_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER MEET argument table */ struct redisCommandArg CLUSTER_MEET_Args[] = { @@ -427,24 +472,33 @@ struct redisCommandArg CLUSTER_MEET_Args[] = { /* CLUSTER MYID history */ #define CLUSTER_MYID_History NULL -/* CLUSTER MYID hints */ -#define CLUSTER_MYID_Hints NULL +/* CLUSTER MYID tips */ +const char *CLUSTER_MYID_tips[] = { +"nondeterministic_output", +NULL +}; /********** CLUSTER NODES ********************/ /* CLUSTER NODES history */ #define CLUSTER_NODES_History NULL -/* CLUSTER NODES hints */ -#define CLUSTER_NODES_Hints NULL +/* CLUSTER NODES tips */ +const char *CLUSTER_NODES_tips[] = { +"nondeterministic_output", +NULL +}; /********** CLUSTER REPLICAS ********************/ /* CLUSTER REPLICAS history */ #define CLUSTER_REPLICAS_History NULL -/* CLUSTER REPLICAS hints */ -#define CLUSTER_REPLICAS_Hints NULL +/* CLUSTER REPLICAS tips */ +const char *CLUSTER_REPLICAS_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER REPLICAS argument table */ struct redisCommandArg CLUSTER_REPLICAS_Args[] = { @@ -457,8 +511,11 @@ struct redisCommandArg CLUSTER_REPLICAS_Args[] = { /* CLUSTER REPLICATE history */ #define CLUSTER_REPLICATE_History NULL -/* CLUSTER REPLICATE hints */ -#define CLUSTER_REPLICATE_Hints NULL +/* CLUSTER REPLICATE tips */ +const char *CLUSTER_REPLICATE_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER REPLICATE argument table */ struct redisCommandArg CLUSTER_REPLICATE_Args[] = { @@ -471,8 +528,11 @@ struct redisCommandArg CLUSTER_REPLICATE_Args[] = { /* CLUSTER RESET history */ #define CLUSTER_RESET_History NULL -/* CLUSTER RESET hints */ -#define CLUSTER_RESET_Hints NULL +/* CLUSTER RESET tips */ +const char *CLUSTER_RESET_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER RESET hard_soft argument table */ struct redisCommandArg CLUSTER_RESET_hard_soft_Subargs[] = { @@ -492,16 +552,22 @@ struct redisCommandArg CLUSTER_RESET_Args[] = { /* CLUSTER SAVECONFIG history */ #define CLUSTER_SAVECONFIG_History NULL -/* CLUSTER SAVECONFIG hints */ -#define CLUSTER_SAVECONFIG_Hints NULL +/* CLUSTER SAVECONFIG tips */ +const char *CLUSTER_SAVECONFIG_tips[] = { +"nondeterministic_output", +NULL +}; /********** CLUSTER SET_CONFIG_EPOCH ********************/ /* CLUSTER SET_CONFIG_EPOCH history */ #define CLUSTER_SET_CONFIG_EPOCH_History NULL -/* CLUSTER SET_CONFIG_EPOCH hints */ -#define CLUSTER_SET_CONFIG_EPOCH_Hints NULL +/* CLUSTER SET_CONFIG_EPOCH tips */ +const char *CLUSTER_SET_CONFIG_EPOCH_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER SET_CONFIG_EPOCH argument table */ struct redisCommandArg CLUSTER_SET_CONFIG_EPOCH_Args[] = { @@ -514,8 +580,11 @@ struct redisCommandArg CLUSTER_SET_CONFIG_EPOCH_Args[] = { /* CLUSTER SETSLOT history */ #define CLUSTER_SETSLOT_History NULL -/* CLUSTER SETSLOT hints */ -#define CLUSTER_SETSLOT_Hints NULL +/* CLUSTER SETSLOT tips */ +const char *CLUSTER_SETSLOT_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER SETSLOT subcommand argument table */ struct redisCommandArg CLUSTER_SETSLOT_subcommand_Subargs[] = { @@ -538,8 +607,11 @@ struct redisCommandArg CLUSTER_SETSLOT_Args[] = { /* CLUSTER SLAVES history */ #define CLUSTER_SLAVES_History NULL -/* CLUSTER SLAVES hints */ -#define CLUSTER_SLAVES_Hints NULL +/* CLUSTER SLAVES tips */ +const char *CLUSTER_SLAVES_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER SLAVES argument table */ struct redisCommandArg CLUSTER_SLAVES_Args[] = { @@ -555,37 +627,40 @@ commandHistory CLUSTER_SLOTS_History[] = { {0} }; -/* CLUSTER SLOTS hints */ -#define CLUSTER_SLOTS_Hints NULL +/* CLUSTER SLOTS tips */ +const char *CLUSTER_SLOTS_tips[] = { +"nondeterministic_output", +NULL +}; /* CLUSTER command table */ struct redisCommand CLUSTER_Subcommands[] = { -{"addslots","Assign new hash slots to receiving node","O(N) where N is the total number of hash slot arguments","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_ADDSLOTS_History,CLUSTER_ADDSLOTS_Hints,clusterCommand,-3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_ADDSLOTS_Args}, -{"addslotsrange","Assign new hash slots to receiving node","O(N) where N is the total number of the slots between the start slot and end slot arguments.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_ADDSLOTSRANGE_History,CLUSTER_ADDSLOTSRANGE_Hints,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_ADDSLOTSRANGE_Args}, -{"bumpepoch","Advance the cluster config epoch","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_BUMPEPOCH_History,CLUSTER_BUMPEPOCH_Hints,clusterCommand,2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0}, -{"count-failure-reports","Return the number of failure reports active for a given node","O(N) where N is the number of failure reports","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_COUNT_FAILURE_REPORTS_History,CLUSTER_COUNT_FAILURE_REPORTS_Hints,clusterCommand,3,CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_COUNT_FAILURE_REPORTS_Args}, -{"countkeysinslot","Return the number of local keys in the specified hash slot","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_COUNTKEYSINSLOT_History,CLUSTER_COUNTKEYSINSLOT_Hints,clusterCommand,3,CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_COUNTKEYSINSLOT_Args}, -{"delslots","Set hash slots as unbound in receiving node","O(N) where N is the total number of hash slot arguments","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_DELSLOTS_History,CLUSTER_DELSLOTS_Hints,clusterCommand,-3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_DELSLOTS_Args}, -{"delslotsrange","Set hash slots as unbound in receiving node","O(N) where N is the total number of the slots between the start slot and end slot arguments.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_DELSLOTSRANGE_History,CLUSTER_DELSLOTSRANGE_Hints,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_DELSLOTSRANGE_Args}, -{"failover","Forces a replica to perform a manual failover of its master.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_FAILOVER_History,CLUSTER_FAILOVER_Hints,clusterCommand,-2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_FAILOVER_Args}, -{"flushslots","Delete a node's own slots information","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_FLUSHSLOTS_History,CLUSTER_FLUSHSLOTS_Hints,clusterCommand,2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0}, -{"forget","Remove a node from the nodes table","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_FORGET_History,CLUSTER_FORGET_Hints,clusterCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_FORGET_Args}, -{"getkeysinslot","Return local key names in the specified hash slot","O(log(N)) where N is the number of requested keys","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_GETKEYSINSLOT_History,CLUSTER_GETKEYSINSLOT_Hints,clusterCommand,4,CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_GETKEYSINSLOT_Args}, -{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_HELP_History,CLUSTER_HELP_Hints,clusterCommand,2,CMD_LOADING|CMD_STALE,0}, -{"info","Provides info about Redis Cluster node state","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_INFO_History,CLUSTER_INFO_Hints,clusterCommand,2,CMD_RANDOM|CMD_STALE,0}, -{"keyslot","Returns the hash slot of the specified key","O(N) where N is the number of bytes in the key","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_KEYSLOT_History,CLUSTER_KEYSLOT_Hints,clusterCommand,3,CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_KEYSLOT_Args}, -{"links","Returns a list of all TCP links to and from peer nodes in cluster","O(N) where N is the total number of Cluster nodes","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_LINKS_History,CLUSTER_LINKS_Hints,clusterCommand,2,CMD_RANDOM|CMD_STALE,0}, -{"meet","Force a node cluster to handshake with another node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_MEET_History,CLUSTER_MEET_Hints,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_MEET_Args}, -{"myid","Return the node id","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_MYID_History,CLUSTER_MYID_Hints,clusterCommand,2,CMD_RANDOM|CMD_STALE,0}, -{"nodes","Get Cluster config for the node","O(N) where N is the total number of Cluster nodes","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_NODES_History,CLUSTER_NODES_Hints,clusterCommand,2,CMD_RANDOM|CMD_STALE,0}, -{"replicas","List replica nodes of the specified master node","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_REPLICAS_History,CLUSTER_REPLICAS_Hints,clusterCommand,3,CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_REPLICAS_Args}, -{"replicate","Reconfigure a node as a replica of the specified master node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_REPLICATE_History,CLUSTER_REPLICATE_Hints,clusterCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_REPLICATE_Args}, -{"reset","Reset a Redis Cluster node","O(N) where N is the number of known nodes. The command may execute a FLUSHALL as a side effect.","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_RESET_History,CLUSTER_RESET_Hints,clusterCommand,3,CMD_ADMIN|CMD_RANDOM|CMD_STALE|CMD_NOSCRIPT,0,.args=CLUSTER_RESET_Args}, -{"saveconfig","Forces the node to save cluster state on disk","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_SAVECONFIG_History,CLUSTER_SAVECONFIG_Hints,clusterCommand,2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0}, -{"set-config-epoch","Set the configuration epoch in a new node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_SET_CONFIG_EPOCH_History,CLUSTER_SET_CONFIG_EPOCH_Hints,clusterCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_SET_CONFIG_EPOCH_Args}, -{"setslot","Bind a hash slot to a specific node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_SETSLOT_History,CLUSTER_SETSLOT_Hints,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_SETSLOT_Args}, -{"slaves","List replica nodes of the specified master node","O(1)","3.0.0",CMD_DOC_NONE,"`CLUSTER REPLICAS`","5.0.0",COMMAND_GROUP_CLUSTER,CLUSTER_SLAVES_History,CLUSTER_SLAVES_Hints,clusterCommand,3,CMD_ADMIN|CMD_RANDOM|CMD_STALE,0,.args=CLUSTER_SLAVES_Args}, -{"slots","Get array of Cluster slot to node mappings","O(N) where N is the total number of Cluster nodes","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_SLOTS_History,CLUSTER_SLOTS_Hints,clusterCommand,2,CMD_RANDOM|CMD_STALE,0}, +{"addslots","Assign new hash slots to receiving node","O(N) where N is the total number of hash slot arguments","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_ADDSLOTS_History,CLUSTER_ADDSLOTS_tips,clusterCommand,-3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_ADDSLOTS_Args}, +{"addslotsrange","Assign new hash slots to receiving node","O(N) where N is the total number of the slots between the start slot and end slot arguments.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_ADDSLOTSRANGE_History,CLUSTER_ADDSLOTSRANGE_tips,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_ADDSLOTSRANGE_Args}, +{"bumpepoch","Advance the cluster config epoch","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_BUMPEPOCH_History,CLUSTER_BUMPEPOCH_tips,clusterCommand,2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0}, +{"count-failure-reports","Return the number of failure reports active for a given node","O(N) where N is the number of failure reports","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_COUNT_FAILURE_REPORTS_History,CLUSTER_COUNT_FAILURE_REPORTS_tips,clusterCommand,3,CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_COUNT_FAILURE_REPORTS_Args}, +{"countkeysinslot","Return the number of local keys in the specified hash slot","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_COUNTKEYSINSLOT_History,CLUSTER_COUNTKEYSINSLOT_tips,clusterCommand,3,CMD_STALE,0,.args=CLUSTER_COUNTKEYSINSLOT_Args}, +{"delslots","Set hash slots as unbound in receiving node","O(N) where N is the total number of hash slot arguments","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_DELSLOTS_History,CLUSTER_DELSLOTS_tips,clusterCommand,-3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_DELSLOTS_Args}, +{"delslotsrange","Set hash slots as unbound in receiving node","O(N) where N is the total number of the slots between the start slot and end slot arguments.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_DELSLOTSRANGE_History,CLUSTER_DELSLOTSRANGE_tips,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_DELSLOTSRANGE_Args}, +{"failover","Forces a replica to perform a manual failover of its master.","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_FAILOVER_History,CLUSTER_FAILOVER_tips,clusterCommand,-2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_FAILOVER_Args}, +{"flushslots","Delete a node's own slots information","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_FLUSHSLOTS_History,CLUSTER_FLUSHSLOTS_tips,clusterCommand,2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0}, +{"forget","Remove a node from the nodes table","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_FORGET_History,CLUSTER_FORGET_tips,clusterCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_FORGET_Args}, +{"getkeysinslot","Return local key names in the specified hash slot","O(log(N)) where N is the number of requested keys","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_GETKEYSINSLOT_History,CLUSTER_GETKEYSINSLOT_tips,clusterCommand,4,CMD_STALE,0,.args=CLUSTER_GETKEYSINSLOT_Args}, +{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_HELP_History,CLUSTER_HELP_tips,clusterCommand,2,CMD_LOADING|CMD_STALE,0}, +{"info","Provides info about Redis Cluster node state","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_INFO_History,CLUSTER_INFO_tips,clusterCommand,2,CMD_STALE,0}, +{"keyslot","Returns the hash slot of the specified key","O(N) where N is the number of bytes in the key","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_KEYSLOT_History,CLUSTER_KEYSLOT_tips,clusterCommand,3,CMD_STALE,0,.args=CLUSTER_KEYSLOT_Args}, +{"links","Returns a list of all TCP links to and from peer nodes in cluster","O(N) where N is the total number of Cluster nodes","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_LINKS_History,CLUSTER_LINKS_tips,clusterCommand,2,CMD_STALE,0}, +{"meet","Force a node cluster to handshake with another node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_MEET_History,CLUSTER_MEET_tips,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_MEET_Args}, +{"myid","Return the node id","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_MYID_History,CLUSTER_MYID_tips,clusterCommand,2,CMD_STALE,0}, +{"nodes","Get Cluster config for the node","O(N) where N is the total number of Cluster nodes","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_NODES_History,CLUSTER_NODES_tips,clusterCommand,2,CMD_STALE,0}, +{"replicas","List replica nodes of the specified master node","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_REPLICAS_History,CLUSTER_REPLICAS_tips,clusterCommand,3,CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_REPLICAS_Args}, +{"replicate","Reconfigure a node as a replica of the specified master node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_REPLICATE_History,CLUSTER_REPLICATE_tips,clusterCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_REPLICATE_Args}, +{"reset","Reset a Redis Cluster node","O(N) where N is the number of known nodes. The command may execute a FLUSHALL as a side effect.","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_RESET_History,CLUSTER_RESET_tips,clusterCommand,3,CMD_ADMIN|CMD_STALE|CMD_NOSCRIPT,0,.args=CLUSTER_RESET_Args}, +{"saveconfig","Forces the node to save cluster state on disk","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_SAVECONFIG_History,CLUSTER_SAVECONFIG_tips,clusterCommand,2,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0}, +{"set-config-epoch","Set the configuration epoch in a new node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_SET_CONFIG_EPOCH_History,CLUSTER_SET_CONFIG_EPOCH_tips,clusterCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_SET_CONFIG_EPOCH_Args}, +{"setslot","Bind a hash slot to a specific node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_SETSLOT_History,CLUSTER_SETSLOT_tips,clusterCommand,-4,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_SETSLOT_Args}, +{"slaves","List replica nodes of the specified master node","O(1)","3.0.0",CMD_DOC_NONE,"`CLUSTER REPLICAS`","5.0.0",COMMAND_GROUP_CLUSTER,CLUSTER_SLAVES_History,CLUSTER_SLAVES_tips,clusterCommand,3,CMD_ADMIN|CMD_STALE,0,.args=CLUSTER_SLAVES_Args}, +{"slots","Get array of Cluster slot to node mappings","O(N) where N is the total number of Cluster nodes","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_SLOTS_History,CLUSTER_SLOTS_tips,clusterCommand,2,CMD_STALE,0}, {0} }; @@ -594,24 +669,24 @@ struct redisCommand CLUSTER_Subcommands[] = { /* CLUSTER history */ #define CLUSTER_History NULL -/* CLUSTER hints */ -#define CLUSTER_Hints NULL +/* CLUSTER tips */ +#define CLUSTER_tips NULL /********** READONLY ********************/ /* READONLY history */ #define READONLY_History NULL -/* READONLY hints */ -#define READONLY_Hints NULL +/* READONLY tips */ +#define READONLY_tips NULL /********** READWRITE ********************/ /* READWRITE history */ #define READWRITE_History NULL -/* READWRITE hints */ -#define READWRITE_Hints NULL +/* READWRITE tips */ +#define READWRITE_tips NULL /********** AUTH ********************/ @@ -621,8 +696,8 @@ commandHistory AUTH_History[] = { {0} }; -/* AUTH hints */ -#define AUTH_Hints NULL +/* AUTH tips */ +#define AUTH_tips NULL /* AUTH argument table */ struct redisCommandArg AUTH_Args[] = { @@ -636,8 +711,8 @@ struct redisCommandArg AUTH_Args[] = { /* CLIENT CACHING history */ #define CLIENT_CACHING_History NULL -/* CLIENT CACHING hints */ -#define CLIENT_CACHING_Hints NULL +/* CLIENT CACHING tips */ +#define CLIENT_CACHING_tips NULL /* CLIENT CACHING mode argument table */ struct redisCommandArg CLIENT_CACHING_mode_Subargs[] = { @@ -657,40 +732,43 @@ struct redisCommandArg CLIENT_CACHING_Args[] = { /* CLIENT GETNAME history */ #define CLIENT_GETNAME_History NULL -/* CLIENT GETNAME hints */ -#define CLIENT_GETNAME_Hints NULL +/* CLIENT GETNAME tips */ +#define CLIENT_GETNAME_tips NULL /********** CLIENT GETREDIR ********************/ /* CLIENT GETREDIR history */ #define CLIENT_GETREDIR_History NULL -/* CLIENT GETREDIR hints */ -#define CLIENT_GETREDIR_Hints NULL +/* CLIENT GETREDIR tips */ +#define CLIENT_GETREDIR_tips NULL /********** CLIENT HELP ********************/ /* CLIENT HELP history */ #define CLIENT_HELP_History NULL -/* CLIENT HELP hints */ -#define CLIENT_HELP_Hints NULL +/* CLIENT HELP tips */ +#define CLIENT_HELP_tips NULL /********** CLIENT ID ********************/ /* CLIENT ID history */ #define CLIENT_ID_History NULL -/* CLIENT ID hints */ -#define CLIENT_ID_Hints NULL +/* CLIENT ID tips */ +#define CLIENT_ID_tips NULL /********** CLIENT INFO ********************/ /* CLIENT INFO history */ #define CLIENT_INFO_History NULL -/* CLIENT INFO hints */ -#define CLIENT_INFO_Hints NULL +/* CLIENT INFO tips */ +const char *CLIENT_INFO_tips[] = { +"nondeterministic_output", +NULL +}; /********** CLIENT KILL ********************/ @@ -704,8 +782,8 @@ commandHistory CLIENT_KILL_History[] = { {0} }; -/* CLIENT KILL hints */ -#define CLIENT_KILL_Hints NULL +/* CLIENT KILL tips */ +#define CLIENT_KILL_tips NULL /* CLIENT KILL normal_master_slave_pubsub argument table */ struct redisCommandArg CLIENT_KILL_normal_master_slave_pubsub_Subargs[] = { @@ -739,8 +817,11 @@ commandHistory CLIENT_LIST_History[] = { {0} }; -/* CLIENT LIST hints */ -#define CLIENT_LIST_Hints NULL +/* CLIENT LIST tips */ +const char *CLIENT_LIST_tips[] = { +"nondeterministic_output", +NULL +}; /* CLIENT LIST normal_master_replica_pubsub argument table */ struct redisCommandArg CLIENT_LIST_normal_master_replica_pubsub_Subargs[] = { @@ -769,8 +850,8 @@ struct redisCommandArg CLIENT_LIST_Args[] = { /* CLIENT NO_EVICT history */ #define CLIENT_NO_EVICT_History NULL -/* CLIENT NO_EVICT hints */ -#define CLIENT_NO_EVICT_Hints NULL +/* CLIENT NO_EVICT tips */ +#define CLIENT_NO_EVICT_tips NULL /* CLIENT NO_EVICT enabled argument table */ struct redisCommandArg CLIENT_NO_EVICT_enabled_Subargs[] = { @@ -794,8 +875,8 @@ commandHistory CLIENT_PAUSE_History[] = { {0} }; -/* CLIENT PAUSE hints */ -#define CLIENT_PAUSE_Hints NULL +/* CLIENT PAUSE tips */ +#define CLIENT_PAUSE_tips NULL /* CLIENT PAUSE mode argument table */ struct redisCommandArg CLIENT_PAUSE_mode_Subargs[] = { @@ -816,8 +897,8 @@ struct redisCommandArg CLIENT_PAUSE_Args[] = { /* CLIENT REPLY history */ #define CLIENT_REPLY_History NULL -/* CLIENT REPLY hints */ -#define CLIENT_REPLY_Hints NULL +/* CLIENT REPLY tips */ +#define CLIENT_REPLY_tips NULL /* CLIENT REPLY on_off_skip argument table */ struct redisCommandArg CLIENT_REPLY_on_off_skip_Subargs[] = { @@ -838,8 +919,8 @@ struct redisCommandArg CLIENT_REPLY_Args[] = { /* CLIENT SETNAME history */ #define CLIENT_SETNAME_History NULL -/* CLIENT SETNAME hints */ -#define CLIENT_SETNAME_Hints NULL +/* CLIENT SETNAME tips */ +#define CLIENT_SETNAME_tips NULL /* CLIENT SETNAME argument table */ struct redisCommandArg CLIENT_SETNAME_Args[] = { @@ -852,8 +933,8 @@ struct redisCommandArg CLIENT_SETNAME_Args[] = { /* CLIENT TRACKING history */ #define CLIENT_TRACKING_History NULL -/* CLIENT TRACKING hints */ -#define CLIENT_TRACKING_Hints NULL +/* CLIENT TRACKING tips */ +#define CLIENT_TRACKING_tips NULL /* CLIENT TRACKING status argument table */ struct redisCommandArg CLIENT_TRACKING_status_Subargs[] = { @@ -879,16 +960,16 @@ struct redisCommandArg CLIENT_TRACKING_Args[] = { /* CLIENT TRACKINGINFO history */ #define CLIENT_TRACKINGINFO_History NULL -/* CLIENT TRACKINGINFO hints */ -#define CLIENT_TRACKINGINFO_Hints NULL +/* CLIENT TRACKINGINFO tips */ +#define CLIENT_TRACKINGINFO_tips NULL /********** CLIENT UNBLOCK ********************/ /* CLIENT UNBLOCK history */ #define CLIENT_UNBLOCK_History NULL -/* CLIENT UNBLOCK hints */ -#define CLIENT_UNBLOCK_Hints NULL +/* CLIENT UNBLOCK tips */ +#define CLIENT_UNBLOCK_tips NULL /* CLIENT UNBLOCK timeout_error argument table */ struct redisCommandArg CLIENT_UNBLOCK_timeout_error_Subargs[] = { @@ -909,27 +990,27 @@ struct redisCommandArg CLIENT_UNBLOCK_Args[] = { /* CLIENT UNPAUSE history */ #define CLIENT_UNPAUSE_History NULL -/* CLIENT UNPAUSE hints */ -#define CLIENT_UNPAUSE_Hints NULL +/* CLIENT UNPAUSE tips */ +#define CLIENT_UNPAUSE_tips NULL /* CLIENT command table */ struct redisCommand CLIENT_Subcommands[] = { -{"caching","Instruct the server about tracking or not keys in the next request","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_CACHING_History,CLIENT_CACHING_Hints,clientCommand,3,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_CACHING_Args}, -{"getname","Get the current connection name","O(1)","2.6.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_GETNAME_History,CLIENT_GETNAME_Hints,clientCommand,2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, -{"getredir","Get tracking notifications redirection client ID if any","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_GETREDIR_History,CLIENT_GETREDIR_Hints,clientCommand,2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, -{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_HELP_History,CLIENT_HELP_Hints,clientCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, -{"id","Returns the client ID for the current connection","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_ID_History,CLIENT_ID_Hints,clientCommand,2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, -{"info","Returns information about the current client connection.","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_INFO_History,CLIENT_INFO_Hints,clientCommand,2,CMD_NOSCRIPT|CMD_RANDOM|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, -{"kill","Kill the connection of a client","O(N) where N is the number of client connections","2.4.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_KILL_History,CLIENT_KILL_Hints,clientCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_KILL_Args}, -{"list","Get the list of client connections","O(N) where N is the number of client connections","2.4.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_LIST_History,CLIENT_LIST_Hints,clientCommand,-2,CMD_ADMIN|CMD_NOSCRIPT|CMD_RANDOM|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_LIST_Args}, -{"no-evict","Set client eviction mode for the current connection","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_NO_EVICT_History,CLIENT_NO_EVICT_Hints,clientCommand,3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_NO_EVICT_Args}, -{"pause","Stop processing commands from clients for some time","O(1)","2.9.50",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_PAUSE_History,CLIENT_PAUSE_Hints,clientCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_PAUSE_Args}, -{"reply","Instruct the server whether to reply to commands","O(1)","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_REPLY_History,CLIENT_REPLY_Hints,clientCommand,3,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_REPLY_Args}, -{"setname","Set the current connection name","O(1)","2.6.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_SETNAME_History,CLIENT_SETNAME_Hints,clientCommand,3,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_SETNAME_Args}, -{"tracking","Enable or disable server assisted client side caching support","O(1). Some options may introduce additional complexity.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_TRACKING_History,CLIENT_TRACKING_Hints,clientCommand,-3,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_TRACKING_Args}, -{"trackinginfo","Return information about server assisted client side caching for the current connection","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_TRACKINGINFO_History,CLIENT_TRACKINGINFO_Hints,clientCommand,2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, -{"unblock","Unblock a client blocked in a blocking command from a different connection","O(log N) where N is the number of client connections","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_UNBLOCK_History,CLIENT_UNBLOCK_Hints,clientCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_UNBLOCK_Args}, -{"unpause","Resume processing of clients that were paused","O(N) Where N is the number of paused clients","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_UNPAUSE_History,CLIENT_UNPAUSE_Hints,clientCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"caching","Instruct the server about tracking or not keys in the next request","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_CACHING_History,CLIENT_CACHING_tips,clientCommand,3,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_CACHING_Args}, +{"getname","Get the current connection name","O(1)","2.6.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_GETNAME_History,CLIENT_GETNAME_tips,clientCommand,2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"getredir","Get tracking notifications redirection client ID if any","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_GETREDIR_History,CLIENT_GETREDIR_tips,clientCommand,2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_HELP_History,CLIENT_HELP_tips,clientCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"id","Returns the client ID for the current connection","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_ID_History,CLIENT_ID_tips,clientCommand,2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"info","Returns information about the current client connection.","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_INFO_History,CLIENT_INFO_tips,clientCommand,2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"kill","Kill the connection of a client","O(N) where N is the number of client connections","2.4.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_KILL_History,CLIENT_KILL_tips,clientCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_KILL_Args}, +{"list","Get the list of client connections","O(N) where N is the number of client connections","2.4.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_LIST_History,CLIENT_LIST_tips,clientCommand,-2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_LIST_Args}, +{"no-evict","Set client eviction mode for the current connection","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_NO_EVICT_History,CLIENT_NO_EVICT_tips,clientCommand,3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_NO_EVICT_Args}, +{"pause","Stop processing commands from clients for some time","O(1)","2.9.50",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_PAUSE_History,CLIENT_PAUSE_tips,clientCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_PAUSE_Args}, +{"reply","Instruct the server whether to reply to commands","O(1)","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_REPLY_History,CLIENT_REPLY_tips,clientCommand,3,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_REPLY_Args}, +{"setname","Set the current connection name","O(1)","2.6.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_SETNAME_History,CLIENT_SETNAME_tips,clientCommand,3,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_SETNAME_Args}, +{"tracking","Enable or disable server assisted client side caching support","O(1). Some options may introduce additional complexity.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_TRACKING_History,CLIENT_TRACKING_tips,clientCommand,-3,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_TRACKING_Args}, +{"trackinginfo","Return information about server assisted client side caching for the current connection","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_TRACKINGINFO_History,CLIENT_TRACKINGINFO_tips,clientCommand,2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"unblock","Unblock a client blocked in a blocking command from a different connection","O(log N) where N is the number of client connections","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_UNBLOCK_History,CLIENT_UNBLOCK_tips,clientCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=CLIENT_UNBLOCK_Args}, +{"unpause","Resume processing of clients that were paused","O(N) Where N is the number of paused clients","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_UNPAUSE_History,CLIENT_UNPAUSE_tips,clientCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, {0} }; @@ -938,16 +1019,16 @@ struct redisCommand CLIENT_Subcommands[] = { /* CLIENT history */ #define CLIENT_History NULL -/* CLIENT hints */ -#define CLIENT_Hints NULL +/* CLIENT tips */ +#define CLIENT_tips NULL /********** ECHO ********************/ /* ECHO history */ #define ECHO_History NULL -/* ECHO hints */ -#define ECHO_Hints NULL +/* ECHO tips */ +#define ECHO_tips NULL /* ECHO argument table */ struct redisCommandArg ECHO_Args[] = { @@ -963,8 +1044,8 @@ commandHistory HELLO_History[] = { {0} }; -/* HELLO hints */ -#define HELLO_Hints NULL +/* HELLO tips */ +#define HELLO_tips NULL /* HELLO arguments username_password argument table */ struct redisCommandArg HELLO_arguments_username_password_Subargs[] = { @@ -992,8 +1073,12 @@ struct redisCommandArg HELLO_Args[] = { /* PING history */ #define PING_History NULL -/* PING hints */ -#define PING_Hints NULL +/* PING tips */ +const char *PING_tips[] = { +"request_policy:all_shards", +"response_policy:all_succeeded", +NULL +}; /* PING argument table */ struct redisCommandArg PING_Args[] = { @@ -1006,24 +1091,24 @@ struct redisCommandArg PING_Args[] = { /* QUIT history */ #define QUIT_History NULL -/* QUIT hints */ -#define QUIT_Hints NULL +/* QUIT tips */ +#define QUIT_tips NULL /********** RESET ********************/ /* RESET history */ #define RESET_History NULL -/* RESET hints */ -#define RESET_Hints NULL +/* RESET tips */ +#define RESET_tips NULL /********** SELECT ********************/ /* SELECT history */ #define SELECT_History NULL -/* SELECT hints */ -#define SELECT_Hints NULL +/* SELECT tips */ +#define SELECT_tips NULL /* SELECT argument table */ struct redisCommandArg SELECT_Args[] = { @@ -1036,8 +1121,8 @@ struct redisCommandArg SELECT_Args[] = { /* COPY history */ #define COPY_History NULL -/* COPY hints */ -#define COPY_Hints NULL +/* COPY tips */ +#define COPY_tips NULL /* COPY argument table */ struct redisCommandArg COPY_Args[] = { @@ -1053,8 +1138,12 @@ struct redisCommandArg COPY_Args[] = { /* DEL history */ #define DEL_History NULL -/* DEL hints */ -#define DEL_Hints NULL +/* DEL tips */ +const char *DEL_tips[] = { +"request_policy:multi_shard", +"response_policy:agg_sum", +NULL +}; /* DEL argument table */ struct redisCommandArg DEL_Args[] = { @@ -1067,8 +1156,11 @@ struct redisCommandArg DEL_Args[] = { /* DUMP history */ #define DUMP_History NULL -/* DUMP hints */ -#define DUMP_Hints NULL +/* DUMP tips */ +const char *DUMP_tips[] = { +"nondeterministic_output", +NULL +}; /* DUMP argument table */ struct redisCommandArg DUMP_Args[] = { @@ -1084,8 +1176,12 @@ commandHistory EXISTS_History[] = { {0} }; -/* EXISTS hints */ -#define EXISTS_Hints NULL +/* EXISTS tips */ +const char *EXISTS_tips[] = { +"request_policy:multi_shard", +"response_policy:agg_sum", +NULL +}; /* EXISTS argument table */ struct redisCommandArg EXISTS_Args[] = { @@ -1101,8 +1197,8 @@ commandHistory EXPIRE_History[] = { {0} }; -/* EXPIRE hints */ -#define EXPIRE_Hints NULL +/* EXPIRE tips */ +#define EXPIRE_tips NULL /* EXPIRE condition argument table */ struct redisCommandArg EXPIRE_condition_Subargs[] = { @@ -1129,8 +1225,8 @@ commandHistory EXPIREAT_History[] = { {0} }; -/* EXPIREAT hints */ -#define EXPIREAT_Hints NULL +/* EXPIREAT tips */ +#define EXPIREAT_tips NULL /* EXPIREAT condition argument table */ struct redisCommandArg EXPIREAT_condition_Subargs[] = { @@ -1154,8 +1250,8 @@ struct redisCommandArg EXPIREAT_Args[] = { /* EXPIRETIME history */ #define EXPIRETIME_History NULL -/* EXPIRETIME hints */ -#define EXPIRETIME_Hints NULL +/* EXPIRETIME tips */ +#define EXPIRETIME_tips NULL /* EXPIRETIME argument table */ struct redisCommandArg EXPIRETIME_Args[] = { @@ -1168,8 +1264,12 @@ struct redisCommandArg EXPIRETIME_Args[] = { /* KEYS history */ #define KEYS_History NULL -/* KEYS hints */ -#define KEYS_Hints NULL +/* KEYS tips */ +const char *KEYS_tips[] = { +"request_policy:all_shards", +"nondeterministic_output_order", +NULL +}; /* KEYS argument table */ struct redisCommandArg KEYS_Args[] = { @@ -1188,8 +1288,11 @@ commandHistory MIGRATE_History[] = { {0} }; -/* MIGRATE hints */ -#define MIGRATE_Hints NULL +/* MIGRATE tips */ +const char *MIGRATE_tips[] = { +"nondeterministic_output", +NULL +}; /* MIGRATE key_or_empty_string argument table */ struct redisCommandArg MIGRATE_key_or_empty_string_Subargs[] = { @@ -1225,8 +1328,8 @@ struct redisCommandArg MIGRATE_Args[] = { /* MOVE history */ #define MOVE_History NULL -/* MOVE hints */ -#define MOVE_Hints NULL +/* MOVE tips */ +#define MOVE_tips NULL /* MOVE argument table */ struct redisCommandArg MOVE_Args[] = { @@ -1240,8 +1343,11 @@ struct redisCommandArg MOVE_Args[] = { /* OBJECT ENCODING history */ #define OBJECT_ENCODING_History NULL -/* OBJECT ENCODING hints */ -#define OBJECT_ENCODING_Hints NULL +/* OBJECT ENCODING tips */ +const char *OBJECT_ENCODING_tips[] = { +"nondeterministic_output", +NULL +}; /* OBJECT ENCODING argument table */ struct redisCommandArg OBJECT_ENCODING_Args[] = { @@ -1254,8 +1360,11 @@ struct redisCommandArg OBJECT_ENCODING_Args[] = { /* OBJECT FREQ history */ #define OBJECT_FREQ_History NULL -/* OBJECT FREQ hints */ -#define OBJECT_FREQ_Hints NULL +/* OBJECT FREQ tips */ +const char *OBJECT_FREQ_tips[] = { +"nondeterministic_output", +NULL +}; /* OBJECT FREQ argument table */ struct redisCommandArg OBJECT_FREQ_Args[] = { @@ -1268,16 +1377,19 @@ struct redisCommandArg OBJECT_FREQ_Args[] = { /* OBJECT HELP history */ #define OBJECT_HELP_History NULL -/* OBJECT HELP hints */ -#define OBJECT_HELP_Hints NULL +/* OBJECT HELP tips */ +#define OBJECT_HELP_tips NULL /********** OBJECT IDLETIME ********************/ /* OBJECT IDLETIME history */ #define OBJECT_IDLETIME_History NULL -/* OBJECT IDLETIME hints */ -#define OBJECT_IDLETIME_Hints NULL +/* OBJECT IDLETIME tips */ +const char *OBJECT_IDLETIME_tips[] = { +"nondeterministic_output", +NULL +}; /* OBJECT IDLETIME argument table */ struct redisCommandArg OBJECT_IDLETIME_Args[] = { @@ -1290,8 +1402,8 @@ struct redisCommandArg OBJECT_IDLETIME_Args[] = { /* OBJECT REFCOUNT history */ #define OBJECT_REFCOUNT_History NULL -/* OBJECT REFCOUNT hints */ -#define OBJECT_REFCOUNT_Hints NULL +/* OBJECT REFCOUNT tips */ +#define OBJECT_REFCOUNT_tips NULL /* OBJECT REFCOUNT argument table */ struct redisCommandArg OBJECT_REFCOUNT_Args[] = { @@ -1301,11 +1413,11 @@ struct redisCommandArg OBJECT_REFCOUNT_Args[] = { /* OBJECT command table */ struct redisCommand OBJECT_Subcommands[] = { -{"encoding","Inspect the internal encoding of a Redis object","O(1)","2.2.3",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_ENCODING_History,OBJECT_ENCODING_Hints,objectCommand,3,CMD_READONLY,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=OBJECT_ENCODING_Args}, -{"freq","Get the logarithmic access frequency counter of a Redis object","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_FREQ_History,OBJECT_FREQ_Hints,objectCommand,3,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=OBJECT_FREQ_Args}, -{"help","Show helpful text about the different subcommands","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_HELP_History,OBJECT_HELP_Hints,objectCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_KEYSPACE}, -{"idletime","Get the time since a Redis object was last accessed","O(1)","2.2.3",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_IDLETIME_History,OBJECT_IDLETIME_Hints,objectCommand,3,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=OBJECT_IDLETIME_Args}, -{"refcount","Get the number of references to the value of the key","O(1)","2.2.3",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_REFCOUNT_History,OBJECT_REFCOUNT_Hints,objectCommand,3,CMD_READONLY,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=OBJECT_REFCOUNT_Args}, +{"encoding","Inspect the internal encoding of a Redis object","O(1)","2.2.3",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_ENCODING_History,OBJECT_ENCODING_tips,objectCommand,3,CMD_READONLY,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=OBJECT_ENCODING_Args}, +{"freq","Get the logarithmic access frequency counter of a Redis object","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_FREQ_History,OBJECT_FREQ_tips,objectCommand,3,CMD_READONLY,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=OBJECT_FREQ_Args}, +{"help","Show helpful text about the different subcommands","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_HELP_History,OBJECT_HELP_tips,objectCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_KEYSPACE}, +{"idletime","Get the time since a Redis object was last accessed","O(1)","2.2.3",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_IDLETIME_History,OBJECT_IDLETIME_tips,objectCommand,3,CMD_READONLY,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=OBJECT_IDLETIME_Args}, +{"refcount","Get the number of references to the value of the key","O(1)","2.2.3",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_REFCOUNT_History,OBJECT_REFCOUNT_tips,objectCommand,3,CMD_READONLY,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=OBJECT_REFCOUNT_Args}, {0} }; @@ -1314,16 +1426,16 @@ struct redisCommand OBJECT_Subcommands[] = { /* OBJECT history */ #define OBJECT_History NULL -/* OBJECT hints */ -#define OBJECT_Hints NULL +/* OBJECT tips */ +#define OBJECT_tips NULL /********** PERSIST ********************/ /* PERSIST history */ #define PERSIST_History NULL -/* PERSIST hints */ -#define PERSIST_Hints NULL +/* PERSIST tips */ +#define PERSIST_tips NULL /* PERSIST argument table */ struct redisCommandArg PERSIST_Args[] = { @@ -1339,8 +1451,8 @@ commandHistory PEXPIRE_History[] = { {0} }; -/* PEXPIRE hints */ -#define PEXPIRE_Hints NULL +/* PEXPIRE tips */ +#define PEXPIRE_tips NULL /* PEXPIRE condition argument table */ struct redisCommandArg PEXPIRE_condition_Subargs[] = { @@ -1367,8 +1479,8 @@ commandHistory PEXPIREAT_History[] = { {0} }; -/* PEXPIREAT hints */ -#define PEXPIREAT_Hints NULL +/* PEXPIREAT tips */ +#define PEXPIREAT_tips NULL /* PEXPIREAT condition argument table */ struct redisCommandArg PEXPIREAT_condition_Subargs[] = { @@ -1392,8 +1504,8 @@ struct redisCommandArg PEXPIREAT_Args[] = { /* PEXPIRETIME history */ #define PEXPIRETIME_History NULL -/* PEXPIRETIME hints */ -#define PEXPIRETIME_Hints NULL +/* PEXPIRETIME tips */ +#define PEXPIRETIME_tips NULL /* PEXPIRETIME argument table */ struct redisCommandArg PEXPIRETIME_Args[] = { @@ -1409,8 +1521,11 @@ commandHistory PTTL_History[] = { {0} }; -/* PTTL hints */ -#define PTTL_Hints NULL +/* PTTL tips */ +const char *PTTL_tips[] = { +"nondeterministic_output", +NULL +}; /* PTTL argument table */ struct redisCommandArg PTTL_Args[] = { @@ -1423,8 +1538,12 @@ struct redisCommandArg PTTL_Args[] = { /* RANDOMKEY history */ #define RANDOMKEY_History NULL -/* RANDOMKEY hints */ -#define RANDOMKEY_Hints NULL +/* RANDOMKEY tips */ +const char *RANDOMKEY_tips[] = { +"request_policy:all_shards", +"nondeterministic_output", +NULL +}; /********** RENAME ********************/ @@ -1434,8 +1553,8 @@ commandHistory RENAME_History[] = { {0} }; -/* RENAME hints */ -#define RENAME_Hints NULL +/* RENAME tips */ +#define RENAME_tips NULL /* RENAME argument table */ struct redisCommandArg RENAME_Args[] = { @@ -1452,8 +1571,8 @@ commandHistory RENAMENX_History[] = { {0} }; -/* RENAMENX hints */ -#define RENAMENX_Hints NULL +/* RENAMENX tips */ +#define RENAMENX_tips NULL /* RENAMENX argument table */ struct redisCommandArg RENAMENX_Args[] = { @@ -1472,8 +1591,8 @@ commandHistory RESTORE_History[] = { {0} }; -/* RESTORE hints */ -#define RESTORE_Hints NULL +/* RESTORE tips */ +#define RESTORE_tips NULL /* RESTORE argument table */ struct redisCommandArg RESTORE_Args[] = { @@ -1495,8 +1614,12 @@ commandHistory SCAN_History[] = { {0} }; -/* SCAN hints */ -#define SCAN_Hints NULL +/* SCAN tips */ +const char *SCAN_tips[] = { +"nondeterministic_output", +"request_policy:special", +NULL +}; /* SCAN argument table */ struct redisCommandArg SCAN_Args[] = { @@ -1512,8 +1635,8 @@ struct redisCommandArg SCAN_Args[] = { /* SORT history */ #define SORT_History NULL -/* SORT hints */ -#define SORT_Hints NULL +/* SORT tips */ +#define SORT_tips NULL /* SORT offset_count argument table */ struct redisCommandArg SORT_offset_count_Subargs[] = { @@ -1546,8 +1669,8 @@ struct redisCommandArg SORT_Args[] = { /* SORT_RO history */ #define SORT_RO_History NULL -/* SORT_RO hints */ -#define SORT_RO_Hints NULL +/* SORT_RO tips */ +#define SORT_RO_tips NULL /* SORT_RO offset_count argument table */ struct redisCommandArg SORT_RO_offset_count_Subargs[] = { @@ -1579,8 +1702,12 @@ struct redisCommandArg SORT_RO_Args[] = { /* TOUCH history */ #define TOUCH_History NULL -/* TOUCH hints */ -#define TOUCH_Hints NULL +/* TOUCH tips */ +const char *TOUCH_tips[] = { +"request_policy:multi_shard", +"response_policy:agg_sum", +NULL +}; /* TOUCH argument table */ struct redisCommandArg TOUCH_Args[] = { @@ -1596,8 +1723,11 @@ commandHistory TTL_History[] = { {0} }; -/* TTL hints */ -#define TTL_Hints NULL +/* TTL tips */ +const char *TTL_tips[] = { +"nondeterministic_output", +NULL +}; /* TTL argument table */ struct redisCommandArg TTL_Args[] = { @@ -1610,8 +1740,8 @@ struct redisCommandArg TTL_Args[] = { /* TYPE history */ #define TYPE_History NULL -/* TYPE hints */ -#define TYPE_Hints NULL +/* TYPE tips */ +#define TYPE_tips NULL /* TYPE argument table */ struct redisCommandArg TYPE_Args[] = { @@ -1624,8 +1754,12 @@ struct redisCommandArg TYPE_Args[] = { /* UNLINK history */ #define UNLINK_History NULL -/* UNLINK hints */ -#define UNLINK_Hints NULL +/* UNLINK tips */ +const char *UNLINK_tips[] = { +"request_policy:multi_shard", +"response_policy:agg_sum", +NULL +}; /* UNLINK argument table */ struct redisCommandArg UNLINK_Args[] = { @@ -1638,8 +1772,12 @@ struct redisCommandArg UNLINK_Args[] = { /* WAIT history */ #define WAIT_History NULL -/* WAIT hints */ -#define WAIT_Hints NULL +/* WAIT tips */ +const char *WAIT_tips[] = { +"request_policy:all_shards", +"response_policy:agg_min", +NULL +}; /* WAIT argument table */ struct redisCommandArg WAIT_Args[] = { @@ -1656,8 +1794,8 @@ commandHistory GEOADD_History[] = { {0} }; -/* GEOADD hints */ -#define GEOADD_Hints NULL +/* GEOADD tips */ +#define GEOADD_tips NULL /* GEOADD condition argument table */ struct redisCommandArg GEOADD_condition_Subargs[] = { @@ -1688,8 +1826,8 @@ struct redisCommandArg GEOADD_Args[] = { /* GEODIST history */ #define GEODIST_History NULL -/* GEODIST hints */ -#define GEODIST_Hints NULL +/* GEODIST tips */ +#define GEODIST_tips NULL /* GEODIST unit argument table */ struct redisCommandArg GEODIST_unit_Subargs[] = { @@ -1714,8 +1852,8 @@ struct redisCommandArg GEODIST_Args[] = { /* GEOHASH history */ #define GEOHASH_History NULL -/* GEOHASH hints */ -#define GEOHASH_Hints NULL +/* GEOHASH tips */ +#define GEOHASH_tips NULL /* GEOHASH argument table */ struct redisCommandArg GEOHASH_Args[] = { @@ -1729,8 +1867,8 @@ struct redisCommandArg GEOHASH_Args[] = { /* GEOPOS history */ #define GEOPOS_History NULL -/* GEOPOS hints */ -#define GEOPOS_Hints NULL +/* GEOPOS tips */ +#define GEOPOS_tips NULL /* GEOPOS argument table */ struct redisCommandArg GEOPOS_Args[] = { @@ -1747,8 +1885,8 @@ commandHistory GEORADIUS_History[] = { {0} }; -/* GEORADIUS hints */ -#define GEORADIUS_Hints NULL +/* GEORADIUS tips */ +#define GEORADIUS_tips NULL /* GEORADIUS unit argument table */ struct redisCommandArg GEORADIUS_unit_Subargs[] = { @@ -1795,8 +1933,8 @@ struct redisCommandArg GEORADIUS_Args[] = { /* GEORADIUSBYMEMBER history */ #define GEORADIUSBYMEMBER_History NULL -/* GEORADIUSBYMEMBER hints */ -#define GEORADIUSBYMEMBER_Hints NULL +/* GEORADIUSBYMEMBER tips */ +#define GEORADIUSBYMEMBER_tips NULL /* GEORADIUSBYMEMBER unit argument table */ struct redisCommandArg GEORADIUSBYMEMBER_unit_Subargs[] = { @@ -1842,8 +1980,8 @@ struct redisCommandArg GEORADIUSBYMEMBER_Args[] = { /* GEORADIUSBYMEMBER_RO history */ #define GEORADIUSBYMEMBER_RO_History NULL -/* GEORADIUSBYMEMBER_RO hints */ -#define GEORADIUSBYMEMBER_RO_Hints NULL +/* GEORADIUSBYMEMBER_RO tips */ +#define GEORADIUSBYMEMBER_RO_tips NULL /* GEORADIUSBYMEMBER_RO unit argument table */ struct redisCommandArg GEORADIUSBYMEMBER_RO_unit_Subargs[] = { @@ -1887,8 +2025,8 @@ struct redisCommandArg GEORADIUSBYMEMBER_RO_Args[] = { /* GEORADIUS_RO history */ #define GEORADIUS_RO_History NULL -/* GEORADIUS_RO hints */ -#define GEORADIUS_RO_Hints NULL +/* GEORADIUS_RO tips */ +#define GEORADIUS_RO_tips NULL /* GEORADIUS_RO unit argument table */ struct redisCommandArg GEORADIUS_RO_unit_Subargs[] = { @@ -1933,8 +2071,8 @@ struct redisCommandArg GEORADIUS_RO_Args[] = { /* GEOSEARCH history */ #define GEOSEARCH_History NULL -/* GEOSEARCH hints */ -#define GEOSEARCH_Hints NULL +/* GEOSEARCH tips */ +#define GEOSEARCH_tips NULL /* GEOSEARCH longitude_latitude argument table */ struct redisCommandArg GEOSEARCH_longitude_latitude_Subargs[] = { @@ -2010,8 +2148,8 @@ struct redisCommandArg GEOSEARCH_Args[] = { /* GEOSEARCHSTORE history */ #define GEOSEARCHSTORE_History NULL -/* GEOSEARCHSTORE hints */ -#define GEOSEARCHSTORE_Hints NULL +/* GEOSEARCHSTORE tips */ +#define GEOSEARCHSTORE_tips NULL /* GEOSEARCHSTORE longitude_latitude argument table */ struct redisCommandArg GEOSEARCHSTORE_longitude_latitude_Subargs[] = { @@ -2089,8 +2227,8 @@ commandHistory HDEL_History[] = { {0} }; -/* HDEL hints */ -#define HDEL_Hints NULL +/* HDEL tips */ +#define HDEL_tips NULL /* HDEL argument table */ struct redisCommandArg HDEL_Args[] = { @@ -2104,8 +2242,8 @@ struct redisCommandArg HDEL_Args[] = { /* HEXISTS history */ #define HEXISTS_History NULL -/* HEXISTS hints */ -#define HEXISTS_Hints NULL +/* HEXISTS tips */ +#define HEXISTS_tips NULL /* HEXISTS argument table */ struct redisCommandArg HEXISTS_Args[] = { @@ -2119,8 +2257,8 @@ struct redisCommandArg HEXISTS_Args[] = { /* HGET history */ #define HGET_History NULL -/* HGET hints */ -#define HGET_Hints NULL +/* HGET tips */ +#define HGET_tips NULL /* HGET argument table */ struct redisCommandArg HGET_Args[] = { @@ -2134,8 +2272,11 @@ struct redisCommandArg HGET_Args[] = { /* HGETALL history */ #define HGETALL_History NULL -/* HGETALL hints */ -#define HGETALL_Hints NULL +/* HGETALL tips */ +const char *HGETALL_tips[] = { +"nondeterministic_output_order", +NULL +}; /* HGETALL argument table */ struct redisCommandArg HGETALL_Args[] = { @@ -2148,8 +2289,8 @@ struct redisCommandArg HGETALL_Args[] = { /* HINCRBY history */ #define HINCRBY_History NULL -/* HINCRBY hints */ -#define HINCRBY_Hints NULL +/* HINCRBY tips */ +#define HINCRBY_tips NULL /* HINCRBY argument table */ struct redisCommandArg HINCRBY_Args[] = { @@ -2164,8 +2305,8 @@ struct redisCommandArg HINCRBY_Args[] = { /* HINCRBYFLOAT history */ #define HINCRBYFLOAT_History NULL -/* HINCRBYFLOAT hints */ -#define HINCRBYFLOAT_Hints NULL +/* HINCRBYFLOAT tips */ +#define HINCRBYFLOAT_tips NULL /* HINCRBYFLOAT argument table */ struct redisCommandArg HINCRBYFLOAT_Args[] = { @@ -2180,8 +2321,11 @@ struct redisCommandArg HINCRBYFLOAT_Args[] = { /* HKEYS history */ #define HKEYS_History NULL -/* HKEYS hints */ -#define HKEYS_Hints NULL +/* HKEYS tips */ +const char *HKEYS_tips[] = { +"nondeterministic_output_order", +NULL +}; /* HKEYS argument table */ struct redisCommandArg HKEYS_Args[] = { @@ -2194,8 +2338,8 @@ struct redisCommandArg HKEYS_Args[] = { /* HLEN history */ #define HLEN_History NULL -/* HLEN hints */ -#define HLEN_Hints NULL +/* HLEN tips */ +#define HLEN_tips NULL /* HLEN argument table */ struct redisCommandArg HLEN_Args[] = { @@ -2208,8 +2352,8 @@ struct redisCommandArg HLEN_Args[] = { /* HMGET history */ #define HMGET_History NULL -/* HMGET hints */ -#define HMGET_Hints NULL +/* HMGET tips */ +#define HMGET_tips NULL /* HMGET argument table */ struct redisCommandArg HMGET_Args[] = { @@ -2223,8 +2367,8 @@ struct redisCommandArg HMGET_Args[] = { /* HMSET history */ #define HMSET_History NULL -/* HMSET hints */ -#define HMSET_Hints NULL +/* HMSET tips */ +#define HMSET_tips NULL /* HMSET field_value argument table */ struct redisCommandArg HMSET_field_value_Subargs[] = { @@ -2245,8 +2389,11 @@ struct redisCommandArg HMSET_Args[] = { /* HRANDFIELD history */ #define HRANDFIELD_History NULL -/* HRANDFIELD hints */ -#define HRANDFIELD_Hints NULL +/* HRANDFIELD tips */ +const char *HRANDFIELD_tips[] = { +"nondeterministic_output", +NULL +}; /* HRANDFIELD options argument table */ struct redisCommandArg HRANDFIELD_options_Subargs[] = { @@ -2267,8 +2414,11 @@ struct redisCommandArg HRANDFIELD_Args[] = { /* HSCAN history */ #define HSCAN_History NULL -/* HSCAN hints */ -#define HSCAN_Hints NULL +/* HSCAN tips */ +const char *HSCAN_tips[] = { +"nondeterministic_output", +NULL +}; /* HSCAN argument table */ struct redisCommandArg HSCAN_Args[] = { @@ -2287,8 +2437,8 @@ commandHistory HSET_History[] = { {0} }; -/* HSET hints */ -#define HSET_Hints NULL +/* HSET tips */ +#define HSET_tips NULL /* HSET field_value argument table */ struct redisCommandArg HSET_field_value_Subargs[] = { @@ -2309,8 +2459,8 @@ struct redisCommandArg HSET_Args[] = { /* HSETNX history */ #define HSETNX_History NULL -/* HSETNX hints */ -#define HSETNX_Hints NULL +/* HSETNX tips */ +#define HSETNX_tips NULL /* HSETNX argument table */ struct redisCommandArg HSETNX_Args[] = { @@ -2325,8 +2475,8 @@ struct redisCommandArg HSETNX_Args[] = { /* HSTRLEN history */ #define HSTRLEN_History NULL -/* HSTRLEN hints */ -#define HSTRLEN_Hints NULL +/* HSTRLEN tips */ +#define HSTRLEN_tips NULL /* HSTRLEN argument table */ struct redisCommandArg HSTRLEN_Args[] = { @@ -2340,8 +2490,11 @@ struct redisCommandArg HSTRLEN_Args[] = { /* HVALS history */ #define HVALS_History NULL -/* HVALS hints */ -#define HVALS_Hints NULL +/* HVALS tips */ +const char *HVALS_tips[] = { +"nondeterministic_output_order", +NULL +}; /* HVALS argument table */ struct redisCommandArg HVALS_Args[] = { @@ -2354,8 +2507,8 @@ struct redisCommandArg HVALS_Args[] = { /* PFADD history */ #define PFADD_History NULL -/* PFADD hints */ -#define PFADD_Hints NULL +/* PFADD tips */ +#define PFADD_tips NULL /* PFADD argument table */ struct redisCommandArg PFADD_Args[] = { @@ -2369,8 +2522,8 @@ struct redisCommandArg PFADD_Args[] = { /* PFCOUNT history */ #define PFCOUNT_History NULL -/* PFCOUNT hints */ -#define PFCOUNT_Hints NULL +/* PFCOUNT tips */ +#define PFCOUNT_tips NULL /* PFCOUNT argument table */ struct redisCommandArg PFCOUNT_Args[] = { @@ -2383,16 +2536,16 @@ struct redisCommandArg PFCOUNT_Args[] = { /* PFDEBUG history */ #define PFDEBUG_History NULL -/* PFDEBUG hints */ -#define PFDEBUG_Hints NULL +/* PFDEBUG tips */ +#define PFDEBUG_tips NULL /********** PFMERGE ********************/ /* PFMERGE history */ #define PFMERGE_History NULL -/* PFMERGE hints */ -#define PFMERGE_Hints NULL +/* PFMERGE tips */ +#define PFMERGE_tips NULL /* PFMERGE argument table */ struct redisCommandArg PFMERGE_Args[] = { @@ -2406,16 +2559,16 @@ struct redisCommandArg PFMERGE_Args[] = { /* PFSELFTEST history */ #define PFSELFTEST_History NULL -/* PFSELFTEST hints */ -#define PFSELFTEST_Hints NULL +/* PFSELFTEST tips */ +#define PFSELFTEST_tips NULL /********** BLMOVE ********************/ /* BLMOVE history */ #define BLMOVE_History NULL -/* BLMOVE hints */ -#define BLMOVE_Hints NULL +/* BLMOVE tips */ +#define BLMOVE_tips NULL /* BLMOVE wherefrom argument table */ struct redisCommandArg BLMOVE_wherefrom_Subargs[] = { @@ -2446,8 +2599,8 @@ struct redisCommandArg BLMOVE_Args[] = { /* BLMPOP history */ #define BLMPOP_History NULL -/* BLMPOP hints */ -#define BLMPOP_Hints NULL +/* BLMPOP tips */ +#define BLMPOP_tips NULL /* BLMPOP where argument table */ struct redisCommandArg BLMPOP_where_Subargs[] = { @@ -2474,8 +2627,8 @@ commandHistory BLPOP_History[] = { {0} }; -/* BLPOP hints */ -#define BLPOP_Hints NULL +/* BLPOP tips */ +#define BLPOP_tips NULL /* BLPOP argument table */ struct redisCommandArg BLPOP_Args[] = { @@ -2492,8 +2645,8 @@ commandHistory BRPOP_History[] = { {0} }; -/* BRPOP hints */ -#define BRPOP_Hints NULL +/* BRPOP tips */ +#define BRPOP_tips NULL /* BRPOP argument table */ struct redisCommandArg BRPOP_Args[] = { @@ -2510,8 +2663,8 @@ commandHistory BRPOPLPUSH_History[] = { {0} }; -/* BRPOPLPUSH hints */ -#define BRPOPLPUSH_Hints NULL +/* BRPOPLPUSH tips */ +#define BRPOPLPUSH_tips NULL /* BRPOPLPUSH argument table */ struct redisCommandArg BRPOPLPUSH_Args[] = { @@ -2526,8 +2679,8 @@ struct redisCommandArg BRPOPLPUSH_Args[] = { /* LINDEX history */ #define LINDEX_History NULL -/* LINDEX hints */ -#define LINDEX_Hints NULL +/* LINDEX tips */ +#define LINDEX_tips NULL /* LINDEX argument table */ struct redisCommandArg LINDEX_Args[] = { @@ -2541,8 +2694,8 @@ struct redisCommandArg LINDEX_Args[] = { /* LINSERT history */ #define LINSERT_History NULL -/* LINSERT hints */ -#define LINSERT_Hints NULL +/* LINSERT tips */ +#define LINSERT_tips NULL /* LINSERT where argument table */ struct redisCommandArg LINSERT_where_Subargs[] = { @@ -2565,8 +2718,8 @@ struct redisCommandArg LINSERT_Args[] = { /* LLEN history */ #define LLEN_History NULL -/* LLEN hints */ -#define LLEN_Hints NULL +/* LLEN tips */ +#define LLEN_tips NULL /* LLEN argument table */ struct redisCommandArg LLEN_Args[] = { @@ -2579,8 +2732,8 @@ struct redisCommandArg LLEN_Args[] = { /* LMOVE history */ #define LMOVE_History NULL -/* LMOVE hints */ -#define LMOVE_Hints NULL +/* LMOVE tips */ +#define LMOVE_tips NULL /* LMOVE wherefrom argument table */ struct redisCommandArg LMOVE_wherefrom_Subargs[] = { @@ -2610,8 +2763,8 @@ struct redisCommandArg LMOVE_Args[] = { /* LMPOP history */ #define LMPOP_History NULL -/* LMPOP hints */ -#define LMPOP_Hints NULL +/* LMPOP tips */ +#define LMPOP_tips NULL /* LMPOP where argument table */ struct redisCommandArg LMPOP_where_Subargs[] = { @@ -2637,8 +2790,8 @@ commandHistory LPOP_History[] = { {0} }; -/* LPOP hints */ -#define LPOP_Hints NULL +/* LPOP tips */ +#define LPOP_tips NULL /* LPOP argument table */ struct redisCommandArg LPOP_Args[] = { @@ -2652,8 +2805,8 @@ struct redisCommandArg LPOP_Args[] = { /* LPOS history */ #define LPOS_History NULL -/* LPOS hints */ -#define LPOS_Hints NULL +/* LPOS tips */ +#define LPOS_tips NULL /* LPOS argument table */ struct redisCommandArg LPOS_Args[] = { @@ -2673,8 +2826,8 @@ commandHistory LPUSH_History[] = { {0} }; -/* LPUSH hints */ -#define LPUSH_Hints NULL +/* LPUSH tips */ +#define LPUSH_tips NULL /* LPUSH argument table */ struct redisCommandArg LPUSH_Args[] = { @@ -2691,8 +2844,8 @@ commandHistory LPUSHX_History[] = { {0} }; -/* LPUSHX hints */ -#define LPUSHX_Hints NULL +/* LPUSHX tips */ +#define LPUSHX_tips NULL /* LPUSHX argument table */ struct redisCommandArg LPUSHX_Args[] = { @@ -2706,8 +2859,8 @@ struct redisCommandArg LPUSHX_Args[] = { /* LRANGE history */ #define LRANGE_History NULL -/* LRANGE hints */ -#define LRANGE_Hints NULL +/* LRANGE tips */ +#define LRANGE_tips NULL /* LRANGE argument table */ struct redisCommandArg LRANGE_Args[] = { @@ -2722,8 +2875,8 @@ struct redisCommandArg LRANGE_Args[] = { /* LREM history */ #define LREM_History NULL -/* LREM hints */ -#define LREM_Hints NULL +/* LREM tips */ +#define LREM_tips NULL /* LREM argument table */ struct redisCommandArg LREM_Args[] = { @@ -2738,8 +2891,8 @@ struct redisCommandArg LREM_Args[] = { /* LSET history */ #define LSET_History NULL -/* LSET hints */ -#define LSET_Hints NULL +/* LSET tips */ +#define LSET_tips NULL /* LSET argument table */ struct redisCommandArg LSET_Args[] = { @@ -2754,8 +2907,8 @@ struct redisCommandArg LSET_Args[] = { /* LTRIM history */ #define LTRIM_History NULL -/* LTRIM hints */ -#define LTRIM_Hints NULL +/* LTRIM tips */ +#define LTRIM_tips NULL /* LTRIM argument table */ struct redisCommandArg LTRIM_Args[] = { @@ -2773,8 +2926,8 @@ commandHistory RPOP_History[] = { {0} }; -/* RPOP hints */ -#define RPOP_Hints NULL +/* RPOP tips */ +#define RPOP_tips NULL /* RPOP argument table */ struct redisCommandArg RPOP_Args[] = { @@ -2788,8 +2941,8 @@ struct redisCommandArg RPOP_Args[] = { /* RPOPLPUSH history */ #define RPOPLPUSH_History NULL -/* RPOPLPUSH hints */ -#define RPOPLPUSH_Hints NULL +/* RPOPLPUSH tips */ +#define RPOPLPUSH_tips NULL /* RPOPLPUSH argument table */ struct redisCommandArg RPOPLPUSH_Args[] = { @@ -2806,8 +2959,8 @@ commandHistory RPUSH_History[] = { {0} }; -/* RPUSH hints */ -#define RPUSH_Hints NULL +/* RPUSH tips */ +#define RPUSH_tips NULL /* RPUSH argument table */ struct redisCommandArg RPUSH_Args[] = { @@ -2824,8 +2977,8 @@ commandHistory RPUSHX_History[] = { {0} }; -/* RPUSHX hints */ -#define RPUSHX_Hints NULL +/* RPUSHX tips */ +#define RPUSHX_tips NULL /* RPUSHX argument table */ struct redisCommandArg RPUSHX_Args[] = { @@ -2839,8 +2992,8 @@ struct redisCommandArg RPUSHX_Args[] = { /* PSUBSCRIBE history */ #define PSUBSCRIBE_History NULL -/* PSUBSCRIBE hints */ -#define PSUBSCRIBE_Hints NULL +/* PSUBSCRIBE tips */ +#define PSUBSCRIBE_tips NULL /* PSUBSCRIBE pattern argument table */ struct redisCommandArg PSUBSCRIBE_pattern_Subargs[] = { @@ -2859,8 +3012,8 @@ struct redisCommandArg PSUBSCRIBE_Args[] = { /* PUBLISH history */ #define PUBLISH_History NULL -/* PUBLISH hints */ -#define PUBLISH_Hints NULL +/* PUBLISH tips */ +#define PUBLISH_tips NULL /* PUBLISH argument table */ struct redisCommandArg PUBLISH_Args[] = { @@ -2874,8 +3027,8 @@ struct redisCommandArg PUBLISH_Args[] = { /* PUBSUB CHANNELS history */ #define PUBSUB_CHANNELS_History NULL -/* PUBSUB CHANNELS hints */ -#define PUBSUB_CHANNELS_Hints NULL +/* PUBSUB CHANNELS tips */ +#define PUBSUB_CHANNELS_tips NULL /* PUBSUB CHANNELS argument table */ struct redisCommandArg PUBSUB_CHANNELS_Args[] = { @@ -2888,24 +3041,24 @@ struct redisCommandArg PUBSUB_CHANNELS_Args[] = { /* PUBSUB HELP history */ #define PUBSUB_HELP_History NULL -/* PUBSUB HELP hints */ -#define PUBSUB_HELP_Hints NULL +/* PUBSUB HELP tips */ +#define PUBSUB_HELP_tips NULL /********** PUBSUB NUMPAT ********************/ /* PUBSUB NUMPAT history */ #define PUBSUB_NUMPAT_History NULL -/* PUBSUB NUMPAT hints */ -#define PUBSUB_NUMPAT_Hints NULL +/* PUBSUB NUMPAT tips */ +#define PUBSUB_NUMPAT_tips NULL /********** PUBSUB NUMSUB ********************/ /* PUBSUB NUMSUB history */ #define PUBSUB_NUMSUB_History NULL -/* PUBSUB NUMSUB hints */ -#define PUBSUB_NUMSUB_Hints NULL +/* PUBSUB NUMSUB tips */ +#define PUBSUB_NUMSUB_tips NULL /* PUBSUB NUMSUB argument table */ struct redisCommandArg PUBSUB_NUMSUB_Args[] = { @@ -2918,8 +3071,8 @@ struct redisCommandArg PUBSUB_NUMSUB_Args[] = { /* PUBSUB SHARDCHANNELS history */ #define PUBSUB_SHARDCHANNELS_History NULL -/* PUBSUB SHARDCHANNELS hints */ -#define PUBSUB_SHARDCHANNELS_Hints NULL +/* PUBSUB SHARDCHANNELS tips */ +#define PUBSUB_SHARDCHANNELS_tips NULL /* PUBSUB SHARDCHANNELS argument table */ struct redisCommandArg PUBSUB_SHARDCHANNELS_Args[] = { @@ -2932,17 +3085,17 @@ struct redisCommandArg PUBSUB_SHARDCHANNELS_Args[] = { /* PUBSUB SHARDNUMSUB history */ #define PUBSUB_SHARDNUMSUB_History NULL -/* PUBSUB SHARDNUMSUB hints */ -#define PUBSUB_SHARDNUMSUB_Hints NULL +/* PUBSUB SHARDNUMSUB tips */ +#define PUBSUB_SHARDNUMSUB_tips NULL /* PUBSUB command table */ struct redisCommand PUBSUB_Subcommands[] = { -{"channels","List active channels","O(N) where N is the number of active channels, and assuming constant time pattern matching (relatively short channels and patterns)","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_CHANNELS_History,PUBSUB_CHANNELS_Hints,pubsubCommand,-2,CMD_PUBSUB|CMD_LOADING|CMD_STALE,0,.args=PUBSUB_CHANNELS_Args}, -{"help","Show helpful text about the different subcommands","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_HELP_History,PUBSUB_HELP_Hints,pubsubCommand,2,CMD_LOADING|CMD_STALE,0}, -{"numpat","Get the count of unique patterns pattern subscriptions","O(1)","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_NUMPAT_History,PUBSUB_NUMPAT_Hints,pubsubCommand,2,CMD_PUBSUB|CMD_LOADING|CMD_STALE,0}, -{"numsub","Get the count of subscribers for channels","O(N) for the NUMSUB subcommand, where N is the number of requested channels","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_NUMSUB_History,PUBSUB_NUMSUB_Hints,pubsubCommand,-2,CMD_PUBSUB|CMD_LOADING|CMD_STALE,0,.args=PUBSUB_NUMSUB_Args}, -{"shardchannels","List active shard channels","O(N) where N is the number of active shard channels, and assuming constant time pattern matching (relatively short channels).","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_SHARDCHANNELS_History,PUBSUB_SHARDCHANNELS_Hints,pubsubCommand,-2,CMD_PUBSUB|CMD_LOADING|CMD_STALE,0,.args=PUBSUB_SHARDCHANNELS_Args}, -{"shardnumsub","Get the count of subscribers for shard channels","O(N) for the SHARDNUMSUB subcommand, where N is the number of requested channels","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_SHARDNUMSUB_History,PUBSUB_SHARDNUMSUB_Hints,pubsubCommand,-2,CMD_PUBSUB|CMD_LOADING|CMD_STALE,0}, +{"channels","List active channels","O(N) where N is the number of active channels, and assuming constant time pattern matching (relatively short channels and patterns)","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_CHANNELS_History,PUBSUB_CHANNELS_tips,pubsubCommand,-2,CMD_PUBSUB|CMD_LOADING|CMD_STALE,0,.args=PUBSUB_CHANNELS_Args}, +{"help","Show helpful text about the different subcommands","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_HELP_History,PUBSUB_HELP_tips,pubsubCommand,2,CMD_LOADING|CMD_STALE,0}, +{"numpat","Get the count of unique patterns pattern subscriptions","O(1)","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_NUMPAT_History,PUBSUB_NUMPAT_tips,pubsubCommand,2,CMD_PUBSUB|CMD_LOADING|CMD_STALE,0}, +{"numsub","Get the count of subscribers for channels","O(N) for the NUMSUB subcommand, where N is the number of requested channels","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_NUMSUB_History,PUBSUB_NUMSUB_tips,pubsubCommand,-2,CMD_PUBSUB|CMD_LOADING|CMD_STALE,0,.args=PUBSUB_NUMSUB_Args}, +{"shardchannels","List active shard channels","O(N) where N is the number of active shard channels, and assuming constant time pattern matching (relatively short channels).","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_SHARDCHANNELS_History,PUBSUB_SHARDCHANNELS_tips,pubsubCommand,-2,CMD_PUBSUB|CMD_LOADING|CMD_STALE,0,.args=PUBSUB_SHARDCHANNELS_Args}, +{"shardnumsub","Get the count of subscribers for shard channels","O(N) for the SHARDNUMSUB subcommand, where N is the number of requested channels","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_SHARDNUMSUB_History,PUBSUB_SHARDNUMSUB_tips,pubsubCommand,-2,CMD_PUBSUB|CMD_LOADING|CMD_STALE,0}, {0} }; @@ -2951,16 +3104,16 @@ struct redisCommand PUBSUB_Subcommands[] = { /* PUBSUB history */ #define PUBSUB_History NULL -/* PUBSUB hints */ -#define PUBSUB_Hints NULL +/* PUBSUB tips */ +#define PUBSUB_tips NULL /********** PUNSUBSCRIBE ********************/ /* PUNSUBSCRIBE history */ #define PUNSUBSCRIBE_History NULL -/* PUNSUBSCRIBE hints */ -#define PUNSUBSCRIBE_Hints NULL +/* PUNSUBSCRIBE tips */ +#define PUNSUBSCRIBE_tips NULL /* PUNSUBSCRIBE argument table */ struct redisCommandArg PUNSUBSCRIBE_Args[] = { @@ -2973,8 +3126,8 @@ struct redisCommandArg PUNSUBSCRIBE_Args[] = { /* SPUBLISH history */ #define SPUBLISH_History NULL -/* SPUBLISH hints */ -#define SPUBLISH_Hints NULL +/* SPUBLISH tips */ +#define SPUBLISH_tips NULL /* SPUBLISH argument table */ struct redisCommandArg SPUBLISH_Args[] = { @@ -2988,8 +3141,8 @@ struct redisCommandArg SPUBLISH_Args[] = { /* SSUBSCRIBE history */ #define SSUBSCRIBE_History NULL -/* SSUBSCRIBE hints */ -#define SSUBSCRIBE_Hints NULL +/* SSUBSCRIBE tips */ +#define SSUBSCRIBE_tips NULL /* SSUBSCRIBE argument table */ struct redisCommandArg SSUBSCRIBE_Args[] = { @@ -3005,8 +3158,8 @@ commandHistory SUBSCRIBE_History[] = { {0} }; -/* SUBSCRIBE hints */ -#define SUBSCRIBE_Hints NULL +/* SUBSCRIBE tips */ +#define SUBSCRIBE_tips NULL /* SUBSCRIBE argument table */ struct redisCommandArg SUBSCRIBE_Args[] = { @@ -3019,8 +3172,8 @@ struct redisCommandArg SUBSCRIBE_Args[] = { /* SUNSUBSCRIBE history */ #define SUNSUBSCRIBE_History NULL -/* SUNSUBSCRIBE hints */ -#define SUNSUBSCRIBE_Hints NULL +/* SUNSUBSCRIBE tips */ +#define SUNSUBSCRIBE_tips NULL /* SUNSUBSCRIBE argument table */ struct redisCommandArg SUNSUBSCRIBE_Args[] = { @@ -3033,8 +3186,8 @@ struct redisCommandArg SUNSUBSCRIBE_Args[] = { /* UNSUBSCRIBE history */ #define UNSUBSCRIBE_History NULL -/* UNSUBSCRIBE hints */ -#define UNSUBSCRIBE_Hints NULL +/* UNSUBSCRIBE tips */ +#define UNSUBSCRIBE_tips NULL /* UNSUBSCRIBE argument table */ struct redisCommandArg UNSUBSCRIBE_Args[] = { @@ -3047,8 +3200,8 @@ struct redisCommandArg UNSUBSCRIBE_Args[] = { /* EVAL history */ #define EVAL_History NULL -/* EVAL hints */ -#define EVAL_Hints NULL +/* EVAL tips */ +#define EVAL_tips NULL /* EVAL argument table */ struct redisCommandArg EVAL_Args[] = { @@ -3064,8 +3217,8 @@ struct redisCommandArg EVAL_Args[] = { /* EVALSHA history */ #define EVALSHA_History NULL -/* EVALSHA hints */ -#define EVALSHA_Hints NULL +/* EVALSHA tips */ +#define EVALSHA_tips NULL /* EVALSHA argument table */ struct redisCommandArg EVALSHA_Args[] = { @@ -3081,8 +3234,8 @@ struct redisCommandArg EVALSHA_Args[] = { /* EVALSHA_RO history */ #define EVALSHA_RO_History NULL -/* EVALSHA_RO hints */ -#define EVALSHA_RO_Hints NULL +/* EVALSHA_RO tips */ +#define EVALSHA_RO_tips NULL /* EVALSHA_RO argument table */ struct redisCommandArg EVALSHA_RO_Args[] = { @@ -3098,8 +3251,8 @@ struct redisCommandArg EVALSHA_RO_Args[] = { /* EVAL_RO history */ #define EVAL_RO_History NULL -/* EVAL_RO hints */ -#define EVAL_RO_Hints NULL +/* EVAL_RO tips */ +#define EVAL_RO_tips NULL /* EVAL_RO argument table */ struct redisCommandArg EVAL_RO_Args[] = { @@ -3115,8 +3268,8 @@ struct redisCommandArg EVAL_RO_Args[] = { /* FCALL history */ #define FCALL_History NULL -/* FCALL hints */ -#define FCALL_Hints NULL +/* FCALL tips */ +#define FCALL_tips NULL /* FCALL argument table */ struct redisCommandArg FCALL_Args[] = { @@ -3132,8 +3285,8 @@ struct redisCommandArg FCALL_Args[] = { /* FCALL_RO history */ #define FCALL_RO_History NULL -/* FCALL_RO hints */ -#define FCALL_RO_Hints NULL +/* FCALL_RO tips */ +#define FCALL_RO_tips NULL /* FCALL_RO argument table */ struct redisCommandArg FCALL_RO_Args[] = { @@ -3149,8 +3302,12 @@ struct redisCommandArg FCALL_RO_Args[] = { /* FUNCTION DELETE history */ #define FUNCTION_DELETE_History NULL -/* FUNCTION DELETE hints */ -#define FUNCTION_DELETE_Hints NULL +/* FUNCTION DELETE tips */ +const char *FUNCTION_DELETE_tips[] = { +"request_policy:all_shards", +"response_policy:all_succeeded", +NULL +}; /* FUNCTION DELETE argument table */ struct redisCommandArg FUNCTION_DELETE_Args[] = { @@ -3163,16 +3320,20 @@ struct redisCommandArg FUNCTION_DELETE_Args[] = { /* FUNCTION DUMP history */ #define FUNCTION_DUMP_History NULL -/* FUNCTION DUMP hints */ -#define FUNCTION_DUMP_Hints NULL +/* FUNCTION DUMP tips */ +#define FUNCTION_DUMP_tips NULL /********** FUNCTION FLUSH ********************/ /* FUNCTION FLUSH history */ #define FUNCTION_FLUSH_History NULL -/* FUNCTION FLUSH hints */ -#define FUNCTION_FLUSH_Hints NULL +/* FUNCTION FLUSH tips */ +const char *FUNCTION_FLUSH_tips[] = { +"request_policy:all_shards", +"response_policy:all_succeeded", +NULL +}; /* FUNCTION FLUSH async argument table */ struct redisCommandArg FUNCTION_FLUSH_async_Subargs[] = { @@ -3192,24 +3353,28 @@ struct redisCommandArg FUNCTION_FLUSH_Args[] = { /* FUNCTION HELP history */ #define FUNCTION_HELP_History NULL -/* FUNCTION HELP hints */ -#define FUNCTION_HELP_Hints NULL +/* FUNCTION HELP tips */ +#define FUNCTION_HELP_tips NULL /********** FUNCTION KILL ********************/ /* FUNCTION KILL history */ #define FUNCTION_KILL_History NULL -/* FUNCTION KILL hints */ -#define FUNCTION_KILL_Hints NULL +/* FUNCTION KILL tips */ +const char *FUNCTION_KILL_tips[] = { +"request_policy:all_shards", +"response_policy:one_succeeded", +NULL +}; /********** FUNCTION LIST ********************/ /* FUNCTION LIST history */ #define FUNCTION_LIST_History NULL -/* FUNCTION LIST hints */ -#define FUNCTION_LIST_Hints NULL +/* FUNCTION LIST tips */ +#define FUNCTION_LIST_tips NULL /* FUNCTION LIST argument table */ struct redisCommandArg FUNCTION_LIST_Args[] = { @@ -3223,8 +3388,12 @@ struct redisCommandArg FUNCTION_LIST_Args[] = { /* FUNCTION LOAD history */ #define FUNCTION_LOAD_History NULL -/* FUNCTION LOAD hints */ -#define FUNCTION_LOAD_Hints NULL +/* FUNCTION LOAD tips */ +const char *FUNCTION_LOAD_tips[] = { +"request_policy:all_shards", +"response_policy:all_succeeded", +NULL +}; /* FUNCTION LOAD argument table */ struct redisCommandArg FUNCTION_LOAD_Args[] = { @@ -3241,8 +3410,12 @@ struct redisCommandArg FUNCTION_LOAD_Args[] = { /* FUNCTION RESTORE history */ #define FUNCTION_RESTORE_History NULL -/* FUNCTION RESTORE hints */ -#define FUNCTION_RESTORE_Hints NULL +/* FUNCTION RESTORE tips */ +const char *FUNCTION_RESTORE_tips[] = { +"request_policy:all_shards", +"response_policy:all_succeeded", +NULL +}; /* FUNCTION RESTORE policy argument table */ struct redisCommandArg FUNCTION_RESTORE_policy_Subargs[] = { @@ -3264,20 +3437,24 @@ struct redisCommandArg FUNCTION_RESTORE_Args[] = { /* FUNCTION STATS history */ #define FUNCTION_STATS_History NULL -/* FUNCTION STATS hints */ -#define FUNCTION_STATS_Hints NULL +/* FUNCTION STATS tips */ +const char *FUNCTION_STATS_tips[] = { +"request_policy:all_shards", +"response_policy:one_succeeded", +NULL +}; /* FUNCTION command table */ struct redisCommand FUNCTION_Subcommands[] = { -{"delete","Delete a function by name","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_DELETE_History,FUNCTION_DELETE_Hints,functionDeleteCommand,3,CMD_NOSCRIPT|CMD_WRITE,ACL_CATEGORY_SCRIPTING,.args=FUNCTION_DELETE_Args}, -{"dump","Dump all functions into a serialized binary payload","O(N) where N is the number of functions","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_DUMP_History,FUNCTION_DUMP_Hints,functionDumpCommand,2,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING}, -{"flush","Deleting all functions","O(N) where N is the number of functions deleted","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_FLUSH_History,FUNCTION_FLUSH_Hints,functionFlushCommand,-2,CMD_NOSCRIPT|CMD_WRITE,ACL_CATEGORY_SCRIPTING,.args=FUNCTION_FLUSH_Args}, -{"help","Show helpful text about the different subcommands","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_HELP_History,FUNCTION_HELP_Hints,functionHelpCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_SCRIPTING}, -{"kill","Kill the function currently in execution.","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_KILL_History,FUNCTION_KILL_Hints,functionKillCommand,2,CMD_NOSCRIPT|CMD_ALLOW_BUSY,ACL_CATEGORY_SCRIPTING}, -{"list","List information about all the functions","O(N) where N is the number of functions","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_LIST_History,FUNCTION_LIST_Hints,functionListCommand,-2,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING,.args=FUNCTION_LIST_Args}, -{"load","Create a function with the given arguments (name, code, description)","O(1) (considering compilation time is redundant)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_LOAD_History,FUNCTION_LOAD_Hints,functionLoadCommand,-5,CMD_NOSCRIPT|CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SCRIPTING,.args=FUNCTION_LOAD_Args}, -{"restore","Restore all the functions on the given payload","O(N) where N is the number of functions on the payload","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_RESTORE_History,FUNCTION_RESTORE_Hints,functionRestoreCommand,-3,CMD_NOSCRIPT|CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SCRIPTING,.args=FUNCTION_RESTORE_Args}, -{"stats","Return information about the function currently running (name, description, duration)","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_STATS_History,FUNCTION_STATS_Hints,functionStatsCommand,2,CMD_NOSCRIPT|CMD_ALLOW_BUSY,ACL_CATEGORY_SCRIPTING}, +{"delete","Delete a function by name","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_DELETE_History,FUNCTION_DELETE_tips,functionDeleteCommand,3,CMD_NOSCRIPT|CMD_WRITE,ACL_CATEGORY_SCRIPTING,.args=FUNCTION_DELETE_Args}, +{"dump","Dump all functions into a serialized binary payload","O(N) where N is the number of functions","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_DUMP_History,FUNCTION_DUMP_tips,functionDumpCommand,2,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING}, +{"flush","Deleting all functions","O(N) where N is the number of functions deleted","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_FLUSH_History,FUNCTION_FLUSH_tips,functionFlushCommand,-2,CMD_NOSCRIPT|CMD_WRITE,ACL_CATEGORY_SCRIPTING,.args=FUNCTION_FLUSH_Args}, +{"help","Show helpful text about the different subcommands","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_HELP_History,FUNCTION_HELP_tips,functionHelpCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_SCRIPTING}, +{"kill","Kill the function currently in execution.","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_KILL_History,FUNCTION_KILL_tips,functionKillCommand,2,CMD_NOSCRIPT|CMD_ALLOW_BUSY,ACL_CATEGORY_SCRIPTING}, +{"list","List information about all the functions","O(N) where N is the number of functions","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_LIST_History,FUNCTION_LIST_tips,functionListCommand,-2,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING,.args=FUNCTION_LIST_Args}, +{"load","Create a function with the given arguments (name, code, description)","O(1) (considering compilation time is redundant)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_LOAD_History,FUNCTION_LOAD_tips,functionLoadCommand,-5,CMD_NOSCRIPT|CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SCRIPTING,.args=FUNCTION_LOAD_Args}, +{"restore","Restore all the functions on the given payload","O(N) where N is the number of functions on the payload","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_RESTORE_History,FUNCTION_RESTORE_tips,functionRestoreCommand,-3,CMD_NOSCRIPT|CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SCRIPTING,.args=FUNCTION_RESTORE_Args}, +{"stats","Return information about the function currently running (name, description, duration)","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_STATS_History,FUNCTION_STATS_tips,functionStatsCommand,2,CMD_NOSCRIPT|CMD_ALLOW_BUSY,ACL_CATEGORY_SCRIPTING}, {0} }; @@ -3286,16 +3463,16 @@ struct redisCommand FUNCTION_Subcommands[] = { /* FUNCTION history */ #define FUNCTION_History NULL -/* FUNCTION hints */ -#define FUNCTION_Hints NULL +/* FUNCTION tips */ +#define FUNCTION_tips NULL /********** SCRIPT DEBUG ********************/ /* SCRIPT DEBUG history */ #define SCRIPT_DEBUG_History NULL -/* SCRIPT DEBUG hints */ -#define SCRIPT_DEBUG_Hints NULL +/* SCRIPT DEBUG tips */ +#define SCRIPT_DEBUG_tips NULL /* SCRIPT DEBUG mode argument table */ struct redisCommandArg SCRIPT_DEBUG_mode_Subargs[] = { @@ -3316,8 +3493,12 @@ struct redisCommandArg SCRIPT_DEBUG_Args[] = { /* SCRIPT EXISTS history */ #define SCRIPT_EXISTS_History NULL -/* SCRIPT EXISTS hints */ -#define SCRIPT_EXISTS_Hints NULL +/* SCRIPT EXISTS tips */ +const char *SCRIPT_EXISTS_tips[] = { +"request_policy:all_shards", +"response_policy:agg_logical_and", +NULL +}; /* SCRIPT EXISTS argument table */ struct redisCommandArg SCRIPT_EXISTS_Args[] = { @@ -3333,8 +3514,12 @@ commandHistory SCRIPT_FLUSH_History[] = { {0} }; -/* SCRIPT FLUSH hints */ -#define SCRIPT_FLUSH_Hints NULL +/* SCRIPT FLUSH tips */ +const char *SCRIPT_FLUSH_tips[] = { +"request_policy:all_nodes", +"response_policy:all_succeeded", +NULL +}; /* SCRIPT FLUSH async argument table */ struct redisCommandArg SCRIPT_FLUSH_async_Subargs[] = { @@ -3354,24 +3539,32 @@ struct redisCommandArg SCRIPT_FLUSH_Args[] = { /* SCRIPT HELP history */ #define SCRIPT_HELP_History NULL -/* SCRIPT HELP hints */ -#define SCRIPT_HELP_Hints NULL +/* SCRIPT HELP tips */ +#define SCRIPT_HELP_tips NULL /********** SCRIPT KILL ********************/ /* SCRIPT KILL history */ #define SCRIPT_KILL_History NULL -/* SCRIPT KILL hints */ -#define SCRIPT_KILL_Hints NULL +/* SCRIPT KILL tips */ +const char *SCRIPT_KILL_tips[] = { +"request_policy:all_shards", +"response_policy:one_succeeded", +NULL +}; /********** SCRIPT LOAD ********************/ /* SCRIPT LOAD history */ #define SCRIPT_LOAD_History NULL -/* SCRIPT LOAD hints */ -#define SCRIPT_LOAD_Hints NULL +/* SCRIPT LOAD tips */ +const char *SCRIPT_LOAD_tips[] = { +"request_policy:all_nodes", +"response_policy:all_succeeded", +NULL +}; /* SCRIPT LOAD argument table */ struct redisCommandArg SCRIPT_LOAD_Args[] = { @@ -3381,12 +3574,12 @@ struct redisCommandArg SCRIPT_LOAD_Args[] = { /* SCRIPT command table */ struct redisCommand SCRIPT_Subcommands[] = { -{"debug","Set the debug mode for executed scripts.","O(1)","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_DEBUG_History,SCRIPT_DEBUG_Hints,scriptCommand,3,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING,.args=SCRIPT_DEBUG_Args}, -{"exists","Check existence of scripts in the script cache.","O(N) with N being the number of scripts to check (so checking a single script is an O(1) operation).","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_EXISTS_History,SCRIPT_EXISTS_Hints,scriptCommand,-3,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING,.args=SCRIPT_EXISTS_Args}, -{"flush","Remove all the scripts from the script cache.","O(N) with N being the number of scripts in cache","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_FLUSH_History,SCRIPT_FLUSH_Hints,scriptCommand,-2,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING,.args=SCRIPT_FLUSH_Args}, -{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_HELP_History,SCRIPT_HELP_Hints,scriptCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_SCRIPTING}, -{"kill","Kill the script currently in execution.","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_KILL_History,SCRIPT_KILL_Hints,scriptCommand,2,CMD_NOSCRIPT|CMD_ALLOW_BUSY,ACL_CATEGORY_SCRIPTING}, -{"load","Load the specified Lua script into the script cache.","O(N) with N being the length in bytes of the script body.","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_LOAD_History,SCRIPT_LOAD_Hints,scriptCommand,3,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING,.args=SCRIPT_LOAD_Args}, +{"debug","Set the debug mode for executed scripts.","O(1)","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_DEBUG_History,SCRIPT_DEBUG_tips,scriptCommand,3,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING,.args=SCRIPT_DEBUG_Args}, +{"exists","Check existence of scripts in the script cache.","O(N) with N being the number of scripts to check (so checking a single script is an O(1) operation).","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_EXISTS_History,SCRIPT_EXISTS_tips,scriptCommand,-3,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING,.args=SCRIPT_EXISTS_Args}, +{"flush","Remove all the scripts from the script cache.","O(N) with N being the number of scripts in cache","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_FLUSH_History,SCRIPT_FLUSH_tips,scriptCommand,-2,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING,.args=SCRIPT_FLUSH_Args}, +{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_HELP_History,SCRIPT_HELP_tips,scriptCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_SCRIPTING}, +{"kill","Kill the script currently in execution.","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_KILL_History,SCRIPT_KILL_tips,scriptCommand,2,CMD_NOSCRIPT|CMD_ALLOW_BUSY,ACL_CATEGORY_SCRIPTING}, +{"load","Load the specified Lua script into the script cache.","O(N) with N being the length in bytes of the script body.","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_LOAD_History,SCRIPT_LOAD_tips,scriptCommand,3,CMD_NOSCRIPT,ACL_CATEGORY_SCRIPTING,.args=SCRIPT_LOAD_Args}, {0} }; @@ -3395,191 +3588,191 @@ struct redisCommand SCRIPT_Subcommands[] = { /* SCRIPT history */ #define SCRIPT_History NULL -/* SCRIPT hints */ -#define SCRIPT_Hints NULL +/* SCRIPT tips */ +#define SCRIPT_tips NULL /********** SENTINEL CKQUORUM ********************/ /* SENTINEL CKQUORUM history */ #define SENTINEL_CKQUORUM_History NULL -/* SENTINEL CKQUORUM hints */ -#define SENTINEL_CKQUORUM_Hints NULL +/* SENTINEL CKQUORUM tips */ +#define SENTINEL_CKQUORUM_tips NULL /********** SENTINEL CONFIG ********************/ /* SENTINEL CONFIG history */ #define SENTINEL_CONFIG_History NULL -/* SENTINEL CONFIG hints */ -#define SENTINEL_CONFIG_Hints NULL +/* SENTINEL CONFIG tips */ +#define SENTINEL_CONFIG_tips NULL /********** SENTINEL DEBUG ********************/ /* SENTINEL DEBUG history */ #define SENTINEL_DEBUG_History NULL -/* SENTINEL DEBUG hints */ -#define SENTINEL_DEBUG_Hints NULL +/* SENTINEL DEBUG tips */ +#define SENTINEL_DEBUG_tips NULL /********** SENTINEL FAILOVER ********************/ /* SENTINEL FAILOVER history */ #define SENTINEL_FAILOVER_History NULL -/* SENTINEL FAILOVER hints */ -#define SENTINEL_FAILOVER_Hints NULL +/* SENTINEL FAILOVER tips */ +#define SENTINEL_FAILOVER_tips NULL /********** SENTINEL FLUSHCONFIG ********************/ /* SENTINEL FLUSHCONFIG history */ #define SENTINEL_FLUSHCONFIG_History NULL -/* SENTINEL FLUSHCONFIG hints */ -#define SENTINEL_FLUSHCONFIG_Hints NULL +/* SENTINEL FLUSHCONFIG tips */ +#define SENTINEL_FLUSHCONFIG_tips NULL /********** SENTINEL GET_MASTER_ADDR_BY_NAME ********************/ /* SENTINEL GET_MASTER_ADDR_BY_NAME history */ #define SENTINEL_GET_MASTER_ADDR_BY_NAME_History NULL -/* SENTINEL GET_MASTER_ADDR_BY_NAME hints */ -#define SENTINEL_GET_MASTER_ADDR_BY_NAME_Hints NULL +/* SENTINEL GET_MASTER_ADDR_BY_NAME tips */ +#define SENTINEL_GET_MASTER_ADDR_BY_NAME_tips NULL /********** SENTINEL HELP ********************/ /* SENTINEL HELP history */ #define SENTINEL_HELP_History NULL -/* SENTINEL HELP hints */ -#define SENTINEL_HELP_Hints NULL +/* SENTINEL HELP tips */ +#define SENTINEL_HELP_tips NULL /********** SENTINEL INFO_CACHE ********************/ /* SENTINEL INFO_CACHE history */ #define SENTINEL_INFO_CACHE_History NULL -/* SENTINEL INFO_CACHE hints */ -#define SENTINEL_INFO_CACHE_Hints NULL +/* SENTINEL INFO_CACHE tips */ +#define SENTINEL_INFO_CACHE_tips NULL /********** SENTINEL IS_MASTER_DOWN_BY_ADDR ********************/ /* SENTINEL IS_MASTER_DOWN_BY_ADDR history */ #define SENTINEL_IS_MASTER_DOWN_BY_ADDR_History NULL -/* SENTINEL IS_MASTER_DOWN_BY_ADDR hints */ -#define SENTINEL_IS_MASTER_DOWN_BY_ADDR_Hints NULL +/* SENTINEL IS_MASTER_DOWN_BY_ADDR tips */ +#define SENTINEL_IS_MASTER_DOWN_BY_ADDR_tips NULL /********** SENTINEL MASTER ********************/ /* SENTINEL MASTER history */ #define SENTINEL_MASTER_History NULL -/* SENTINEL MASTER hints */ -#define SENTINEL_MASTER_Hints NULL +/* SENTINEL MASTER tips */ +#define SENTINEL_MASTER_tips NULL /********** SENTINEL MASTERS ********************/ /* SENTINEL MASTERS history */ #define SENTINEL_MASTERS_History NULL -/* SENTINEL MASTERS hints */ -#define SENTINEL_MASTERS_Hints NULL +/* SENTINEL MASTERS tips */ +#define SENTINEL_MASTERS_tips NULL /********** SENTINEL MONITOR ********************/ /* SENTINEL MONITOR history */ #define SENTINEL_MONITOR_History NULL -/* SENTINEL MONITOR hints */ -#define SENTINEL_MONITOR_Hints NULL +/* SENTINEL MONITOR tips */ +#define SENTINEL_MONITOR_tips NULL /********** SENTINEL MYID ********************/ /* SENTINEL MYID history */ #define SENTINEL_MYID_History NULL -/* SENTINEL MYID hints */ -#define SENTINEL_MYID_Hints NULL +/* SENTINEL MYID tips */ +#define SENTINEL_MYID_tips NULL /********** SENTINEL PENDING_SCRIPTS ********************/ /* SENTINEL PENDING_SCRIPTS history */ #define SENTINEL_PENDING_SCRIPTS_History NULL -/* SENTINEL PENDING_SCRIPTS hints */ -#define SENTINEL_PENDING_SCRIPTS_Hints NULL +/* SENTINEL PENDING_SCRIPTS tips */ +#define SENTINEL_PENDING_SCRIPTS_tips NULL /********** SENTINEL REMOVE ********************/ /* SENTINEL REMOVE history */ #define SENTINEL_REMOVE_History NULL -/* SENTINEL REMOVE hints */ -#define SENTINEL_REMOVE_Hints NULL +/* SENTINEL REMOVE tips */ +#define SENTINEL_REMOVE_tips NULL /********** SENTINEL REPLICAS ********************/ /* SENTINEL REPLICAS history */ #define SENTINEL_REPLICAS_History NULL -/* SENTINEL REPLICAS hints */ -#define SENTINEL_REPLICAS_Hints NULL +/* SENTINEL REPLICAS tips */ +#define SENTINEL_REPLICAS_tips NULL /********** SENTINEL RESET ********************/ /* SENTINEL RESET history */ #define SENTINEL_RESET_History NULL -/* SENTINEL RESET hints */ -#define SENTINEL_RESET_Hints NULL +/* SENTINEL RESET tips */ +#define SENTINEL_RESET_tips NULL /********** SENTINEL SENTINELS ********************/ /* SENTINEL SENTINELS history */ #define SENTINEL_SENTINELS_History NULL -/* SENTINEL SENTINELS hints */ -#define SENTINEL_SENTINELS_Hints NULL +/* SENTINEL SENTINELS tips */ +#define SENTINEL_SENTINELS_tips NULL /********** SENTINEL SET ********************/ /* SENTINEL SET history */ #define SENTINEL_SET_History NULL -/* SENTINEL SET hints */ -#define SENTINEL_SET_Hints NULL +/* SENTINEL SET tips */ +#define SENTINEL_SET_tips NULL /********** SENTINEL SIMULATE_FAILURE ********************/ /* SENTINEL SIMULATE_FAILURE history */ #define SENTINEL_SIMULATE_FAILURE_History NULL -/* SENTINEL SIMULATE_FAILURE hints */ -#define SENTINEL_SIMULATE_FAILURE_Hints NULL +/* SENTINEL SIMULATE_FAILURE tips */ +#define SENTINEL_SIMULATE_FAILURE_tips NULL /* SENTINEL command table */ struct redisCommand SENTINEL_Subcommands[] = { -{"ckquorum","Check for a Sentinel quorum",NULL,"2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_CKQUORUM_History,SENTINEL_CKQUORUM_Hints,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"config","Configure Sentinel","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_CONFIG_History,SENTINEL_CONFIG_Hints,sentinelCommand,-3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"debug",NULL,NULL,"7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_DEBUG_History,SENTINEL_DEBUG_Hints,sentinelCommand,-2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"failover","Force a failover",NULL,"2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_FAILOVER_History,SENTINEL_FAILOVER_Hints,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"flushconfig","Rewrite configuration file","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_FLUSHCONFIG_History,SENTINEL_FLUSHCONFIG_Hints,sentinelCommand,2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"get-master-addr-by-name","Get port and address of a master","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_GET_MASTER_ADDR_BY_NAME_History,SENTINEL_GET_MASTER_ADDR_BY_NAME_Hints,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"help","Show helpful text about the different subcommands","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_HELP_History,SENTINEL_HELP_Hints,sentinelCommand,2,CMD_LOADING|CMD_STALE|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"info-cache","Get cached INFO from the instances in the deployment","O(N) where N is the number of instances","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_INFO_CACHE_History,SENTINEL_INFO_CACHE_Hints,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"is-master-down-by-addr","Check if a master is down","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_IS_MASTER_DOWN_BY_ADDR_History,SENTINEL_IS_MASTER_DOWN_BY_ADDR_Hints,sentinelCommand,6,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"master","Shows the state of a master","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_MASTER_History,SENTINEL_MASTER_Hints,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"masters","List the monitored masters","O(N) where N is the number of masters","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_MASTERS_History,SENTINEL_MASTERS_Hints,sentinelCommand,2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"monitor","Start monitoring","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_MONITOR_History,SENTINEL_MONITOR_Hints,sentinelCommand,6,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"myid","Get the Sentinel instance ID","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_MYID_History,SENTINEL_MYID_Hints,sentinelCommand,2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"pending-scripts","Get information about pending scripts",NULL,"2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_PENDING_SCRIPTS_History,SENTINEL_PENDING_SCRIPTS_Hints,sentinelCommand,2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"remove","Stop monitoring","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_REMOVE_History,SENTINEL_REMOVE_Hints,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"replicas","List the monitored replicas","O(N) where N is the number of replicas","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_REPLICAS_History,SENTINEL_REPLICAS_Hints,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"reset","Reset masters by name pattern","O(N) where N is the number of monitored masters","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_RESET_History,SENTINEL_RESET_Hints,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"sentinels","List the Sentinel instances","O(N) where N is the number of Sentinels","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_SENTINELS_History,SENTINEL_SENTINELS_Hints,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"set","Change the configuration of a monitored master","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_SET_History,SENTINEL_SET_Hints,sentinelCommand,-5,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, -{"simulate-failure","Simulate failover scenarios",NULL,"3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_SIMULATE_FAILURE_History,SENTINEL_SIMULATE_FAILURE_Hints,sentinelCommand,-3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"ckquorum","Check for a Sentinel quorum",NULL,"2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_CKQUORUM_History,SENTINEL_CKQUORUM_tips,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"config","Configure Sentinel","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_CONFIG_History,SENTINEL_CONFIG_tips,sentinelCommand,-3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"debug",NULL,NULL,"7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_DEBUG_History,SENTINEL_DEBUG_tips,sentinelCommand,-2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"failover","Force a failover",NULL,"2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_FAILOVER_History,SENTINEL_FAILOVER_tips,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"flushconfig","Rewrite configuration file","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_FLUSHCONFIG_History,SENTINEL_FLUSHCONFIG_tips,sentinelCommand,2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"get-master-addr-by-name","Get port and address of a master","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_GET_MASTER_ADDR_BY_NAME_History,SENTINEL_GET_MASTER_ADDR_BY_NAME_tips,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"help","Show helpful text about the different subcommands","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_HELP_History,SENTINEL_HELP_tips,sentinelCommand,2,CMD_LOADING|CMD_STALE|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"info-cache","Get cached INFO from the instances in the deployment","O(N) where N is the number of instances","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_INFO_CACHE_History,SENTINEL_INFO_CACHE_tips,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"is-master-down-by-addr","Check if a master is down","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_IS_MASTER_DOWN_BY_ADDR_History,SENTINEL_IS_MASTER_DOWN_BY_ADDR_tips,sentinelCommand,6,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"master","Shows the state of a master","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_MASTER_History,SENTINEL_MASTER_tips,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"masters","List the monitored masters","O(N) where N is the number of masters","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_MASTERS_History,SENTINEL_MASTERS_tips,sentinelCommand,2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"monitor","Start monitoring","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_MONITOR_History,SENTINEL_MONITOR_tips,sentinelCommand,6,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"myid","Get the Sentinel instance ID","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_MYID_History,SENTINEL_MYID_tips,sentinelCommand,2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"pending-scripts","Get information about pending scripts",NULL,"2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_PENDING_SCRIPTS_History,SENTINEL_PENDING_SCRIPTS_tips,sentinelCommand,2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"remove","Stop monitoring","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_REMOVE_History,SENTINEL_REMOVE_tips,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"replicas","List the monitored replicas","O(N) where N is the number of replicas","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_REPLICAS_History,SENTINEL_REPLICAS_tips,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"reset","Reset masters by name pattern","O(N) where N is the number of monitored masters","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_RESET_History,SENTINEL_RESET_tips,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"sentinels","List the Sentinel instances","O(N) where N is the number of Sentinels","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_SENTINELS_History,SENTINEL_SENTINELS_tips,sentinelCommand,3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"set","Change the configuration of a monitored master","O(1)","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_SET_History,SENTINEL_SET_tips,sentinelCommand,-5,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, +{"simulate-failure","Simulate failover scenarios",NULL,"3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_SIMULATE_FAILURE_History,SENTINEL_SIMULATE_FAILURE_tips,sentinelCommand,-3,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0}, {0} }; @@ -3588,16 +3781,16 @@ struct redisCommand SENTINEL_Subcommands[] = { /* SENTINEL history */ #define SENTINEL_History NULL -/* SENTINEL hints */ -#define SENTINEL_Hints NULL +/* SENTINEL tips */ +#define SENTINEL_tips NULL /********** ACL CAT ********************/ /* ACL CAT history */ #define ACL_CAT_History NULL -/* ACL CAT hints */ -#define ACL_CAT_Hints NULL +/* ACL CAT tips */ +#define ACL_CAT_tips NULL /* ACL CAT argument table */ struct redisCommandArg ACL_CAT_Args[] = { @@ -3610,8 +3803,8 @@ struct redisCommandArg ACL_CAT_Args[] = { /* ACL DELUSER history */ #define ACL_DELUSER_History NULL -/* ACL DELUSER hints */ -#define ACL_DELUSER_Hints NULL +/* ACL DELUSER tips */ +#define ACL_DELUSER_tips NULL /* ACL DELUSER argument table */ struct redisCommandArg ACL_DELUSER_Args[] = { @@ -3624,8 +3817,8 @@ struct redisCommandArg ACL_DELUSER_Args[] = { /* ACL GENPASS history */ #define ACL_GENPASS_History NULL -/* ACL GENPASS hints */ -#define ACL_GENPASS_Hints NULL +/* ACL GENPASS tips */ +#define ACL_GENPASS_tips NULL /* ACL GENPASS argument table */ struct redisCommandArg ACL_GENPASS_Args[] = { @@ -3641,8 +3834,8 @@ commandHistory ACL_GETUSER_History[] = { {0} }; -/* ACL GETUSER hints */ -#define ACL_GETUSER_Hints NULL +/* ACL GETUSER tips */ +#define ACL_GETUSER_tips NULL /* ACL GETUSER argument table */ struct redisCommandArg ACL_GETUSER_Args[] = { @@ -3655,32 +3848,32 @@ struct redisCommandArg ACL_GETUSER_Args[] = { /* ACL HELP history */ #define ACL_HELP_History NULL -/* ACL HELP hints */ -#define ACL_HELP_Hints NULL +/* ACL HELP tips */ +#define ACL_HELP_tips NULL /********** ACL LIST ********************/ /* ACL LIST history */ #define ACL_LIST_History NULL -/* ACL LIST hints */ -#define ACL_LIST_Hints NULL +/* ACL LIST tips */ +#define ACL_LIST_tips NULL /********** ACL LOAD ********************/ /* ACL LOAD history */ #define ACL_LOAD_History NULL -/* ACL LOAD hints */ -#define ACL_LOAD_Hints NULL +/* ACL LOAD tips */ +#define ACL_LOAD_tips NULL /********** ACL LOG ********************/ /* ACL LOG history */ #define ACL_LOG_History NULL -/* ACL LOG hints */ -#define ACL_LOG_Hints NULL +/* ACL LOG tips */ +#define ACL_LOG_tips NULL /* ACL LOG operation argument table */ struct redisCommandArg ACL_LOG_operation_Subargs[] = { @@ -3700,8 +3893,8 @@ struct redisCommandArg ACL_LOG_Args[] = { /* ACL SAVE history */ #define ACL_SAVE_History NULL -/* ACL SAVE hints */ -#define ACL_SAVE_Hints NULL +/* ACL SAVE tips */ +#define ACL_SAVE_tips NULL /********** ACL SETUSER ********************/ @@ -3711,8 +3904,8 @@ commandHistory ACL_SETUSER_History[] = { {0} }; -/* ACL SETUSER hints */ -#define ACL_SETUSER_Hints NULL +/* ACL SETUSER tips */ +#define ACL_SETUSER_tips NULL /* ACL SETUSER argument table */ struct redisCommandArg ACL_SETUSER_Args[] = { @@ -3726,31 +3919,31 @@ struct redisCommandArg ACL_SETUSER_Args[] = { /* ACL USERS history */ #define ACL_USERS_History NULL -/* ACL USERS hints */ -#define ACL_USERS_Hints NULL +/* ACL USERS tips */ +#define ACL_USERS_tips NULL /********** ACL WHOAMI ********************/ /* ACL WHOAMI history */ #define ACL_WHOAMI_History NULL -/* ACL WHOAMI hints */ -#define ACL_WHOAMI_Hints NULL +/* ACL WHOAMI tips */ +#define ACL_WHOAMI_tips NULL /* ACL command table */ struct redisCommand ACL_Subcommands[] = { -{"cat","List the ACL categories or the commands inside a category","O(1) since the categories and commands are a fixed set.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_CAT_History,ACL_CAT_Hints,aclCommand,-2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_CAT_Args}, -{"deluser","Remove the specified ACL users and the associated rules","O(1) amortized time considering the typical user.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_DELUSER_History,ACL_DELUSER_Hints,aclCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_DELUSER_Args}, -{"genpass","Generate a pseudorandom secure password to use for ACL users","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_GENPASS_History,ACL_GENPASS_Hints,aclCommand,-2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_GENPASS_Args}, -{"getuser","Get the rules for a specific ACL user","O(N). Where N is the number of password, command and pattern rules that the user has.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_GETUSER_History,ACL_GETUSER_Hints,aclCommand,3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_GETUSER_Args}, -{"help","Show helpful text about the different subcommands","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_HELP_History,ACL_HELP_Hints,aclCommand,2,CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, -{"list","List the current ACL rules in ACL config file format","O(N). Where N is the number of configured users.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_LIST_History,ACL_LIST_Hints,aclCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, -{"load","Reload the ACLs from the configured ACL file","O(N). Where N is the number of configured users.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_LOAD_History,ACL_LOAD_Hints,aclCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, -{"log","List latest events denied because of ACLs in place","O(N) with N being the number of entries shown.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_LOG_History,ACL_LOG_Hints,aclCommand,-2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_LOG_Args}, -{"save","Save the current ACL rules in the configured ACL file","O(N). Where N is the number of configured users.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_SAVE_History,ACL_SAVE_Hints,aclCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, -{"setuser","Modify or create the rules for a specific ACL user","O(N). Where N is the number of rules provided.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_SETUSER_History,ACL_SETUSER_Hints,aclCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_SETUSER_Args}, -{"users","List the username of all the configured ACL rules","O(N). Where N is the number of configured users.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_USERS_History,ACL_USERS_Hints,aclCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, -{"whoami","Return the name of the user associated to the current connection","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_WHOAMI_History,ACL_WHOAMI_Hints,aclCommand,2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, +{"cat","List the ACL categories or the commands inside a category","O(1) since the categories and commands are a fixed set.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_CAT_History,ACL_CAT_tips,aclCommand,-2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_CAT_Args}, +{"deluser","Remove the specified ACL users and the associated rules","O(1) amortized time considering the typical user.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_DELUSER_History,ACL_DELUSER_tips,aclCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_DELUSER_Args}, +{"genpass","Generate a pseudorandom secure password to use for ACL users","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_GENPASS_History,ACL_GENPASS_tips,aclCommand,-2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_GENPASS_Args}, +{"getuser","Get the rules for a specific ACL user","O(N). Where N is the number of password, command and pattern rules that the user has.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_GETUSER_History,ACL_GETUSER_tips,aclCommand,3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_GETUSER_Args}, +{"help","Show helpful text about the different subcommands","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_HELP_History,ACL_HELP_tips,aclCommand,2,CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, +{"list","List the current ACL rules in ACL config file format","O(N). Where N is the number of configured users.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_LIST_History,ACL_LIST_tips,aclCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, +{"load","Reload the ACLs from the configured ACL file","O(N). Where N is the number of configured users.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_LOAD_History,ACL_LOAD_tips,aclCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, +{"log","List latest events denied because of ACLs in place","O(N) with N being the number of entries shown.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_LOG_History,ACL_LOG_tips,aclCommand,-2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_LOG_Args}, +{"save","Save the current ACL rules in the configured ACL file","O(N). Where N is the number of configured users.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_SAVE_History,ACL_SAVE_tips,aclCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, +{"setuser","Modify or create the rules for a specific ACL user","O(N). Where N is the number of rules provided.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_SETUSER_History,ACL_SETUSER_tips,aclCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=ACL_SETUSER_Args}, +{"users","List the username of all the configured ACL rules","O(N). Where N is the number of configured users.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_USERS_History,ACL_USERS_tips,aclCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, +{"whoami","Return the name of the user associated to the current connection","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_WHOAMI_History,ACL_WHOAMI_tips,aclCommand,2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0}, {0} }; @@ -3759,16 +3952,16 @@ struct redisCommand ACL_Subcommands[] = { /* ACL history */ #define ACL_History NULL -/* ACL hints */ -#define ACL_Hints NULL +/* ACL tips */ +#define ACL_tips NULL /********** BGREWRITEAOF ********************/ /* BGREWRITEAOF history */ #define BGREWRITEAOF_History NULL -/* BGREWRITEAOF hints */ -#define BGREWRITEAOF_Hints NULL +/* BGREWRITEAOF tips */ +#define BGREWRITEAOF_tips NULL /********** BGSAVE ********************/ @@ -3778,8 +3971,8 @@ commandHistory BGSAVE_History[] = { {0} }; -/* BGSAVE hints */ -#define BGSAVE_Hints NULL +/* BGSAVE tips */ +#define BGSAVE_tips NULL /* BGSAVE argument table */ struct redisCommandArg BGSAVE_Args[] = { @@ -3792,16 +3985,16 @@ struct redisCommandArg BGSAVE_Args[] = { /* COMMAND COUNT history */ #define COMMAND_COUNT_History NULL -/* COMMAND COUNT hints */ -#define COMMAND_COUNT_Hints NULL +/* COMMAND COUNT tips */ +#define COMMAND_COUNT_tips NULL /********** COMMAND DOCS ********************/ /* COMMAND DOCS history */ #define COMMAND_DOCS_History NULL -/* COMMAND DOCS hints */ -#define COMMAND_DOCS_Hints NULL +/* COMMAND DOCS tips */ +#define COMMAND_DOCS_tips NULL /* COMMAND DOCS argument table */ struct redisCommandArg COMMAND_DOCS_Args[] = { @@ -3814,16 +4007,16 @@ struct redisCommandArg COMMAND_DOCS_Args[] = { /* COMMAND GETKEYS history */ #define COMMAND_GETKEYS_History NULL -/* COMMAND GETKEYS hints */ -#define COMMAND_GETKEYS_Hints NULL +/* COMMAND GETKEYS tips */ +#define COMMAND_GETKEYS_tips NULL /********** COMMAND HELP ********************/ /* COMMAND HELP history */ #define COMMAND_HELP_History NULL -/* COMMAND HELP hints */ -#define COMMAND_HELP_Hints NULL +/* COMMAND HELP tips */ +#define COMMAND_HELP_tips NULL /********** COMMAND INFO ********************/ @@ -3833,8 +4026,8 @@ commandHistory COMMAND_INFO_History[] = { {0} }; -/* COMMAND INFO hints */ -#define COMMAND_INFO_Hints NULL +/* COMMAND INFO tips */ +#define COMMAND_INFO_tips NULL /* COMMAND INFO argument table */ struct redisCommandArg COMMAND_INFO_Args[] = { @@ -3847,8 +4040,8 @@ struct redisCommandArg COMMAND_INFO_Args[] = { /* COMMAND LIST history */ #define COMMAND_LIST_History NULL -/* COMMAND LIST hints */ -#define COMMAND_LIST_Hints NULL +/* COMMAND LIST tips */ +#define COMMAND_LIST_tips NULL /* COMMAND LIST filterby argument table */ struct redisCommandArg COMMAND_LIST_filterby_Subargs[] = { @@ -3866,12 +4059,12 @@ struct redisCommandArg COMMAND_LIST_Args[] = { /* COMMAND command table */ struct redisCommand COMMAND_Subcommands[] = { -{"count","Get total number of Redis commands","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_COUNT_History,COMMAND_COUNT_Hints,commandCountCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, -{"docs","Get array of specific Redis command documentation","O(N) where N is the number of commands to look up","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_DOCS_History,COMMAND_DOCS_Hints,commandDocsCommand,-2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=COMMAND_DOCS_Args}, -{"getkeys","Extract keys given a full Redis command","O(N) where N is the number of arguments to the command","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_GETKEYS_History,COMMAND_GETKEYS_Hints,commandGetKeysCommand,-4,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, -{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_HELP_History,COMMAND_HELP_Hints,commandHelpCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, -{"info","Get array of specific Redis command details, or all when no argument is given.","O(N) where N is the number of commands to look up","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_INFO_History,COMMAND_INFO_Hints,commandInfoCommand,-2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=COMMAND_INFO_Args}, -{"list","Get an array of Redis command names","O(N) where N is the total number of Redis commands","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_LIST_History,COMMAND_LIST_Hints,commandListCommand,-2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=COMMAND_LIST_Args}, +{"count","Get total number of Redis commands","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_COUNT_History,COMMAND_COUNT_tips,commandCountCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"docs","Get array of specific Redis command documentation","O(N) where N is the number of commands to look up","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_DOCS_History,COMMAND_DOCS_tips,commandDocsCommand,-2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=COMMAND_DOCS_Args}, +{"getkeys","Extract keys given a full Redis command","O(N) where N is the number of arguments to the command","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_GETKEYS_History,COMMAND_GETKEYS_tips,commandGetKeysCommand,-4,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_HELP_History,COMMAND_HELP_tips,commandHelpCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"info","Get array of specific Redis command details, or all when no argument is given.","O(N) where N is the number of commands to look up","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_INFO_History,COMMAND_INFO_tips,commandInfoCommand,-2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=COMMAND_INFO_Args}, +{"list","Get an array of Redis command names","O(N) where N is the total number of Redis commands","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_LIST_History,COMMAND_LIST_tips,commandListCommand,-2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION,.args=COMMAND_LIST_Args}, {0} }; @@ -3880,8 +4073,11 @@ struct redisCommand COMMAND_Subcommands[] = { /* COMMAND history */ #define COMMAND_History NULL -/* COMMAND hints */ -#define COMMAND_Hints NULL +/* COMMAND tips */ +const char *COMMAND_tips[] = { +"nondeterministic_output", +NULL +}; /********** CONFIG GET ********************/ @@ -3891,8 +4087,8 @@ commandHistory CONFIG_GET_History[] = { {0} }; -/* CONFIG GET hints */ -#define CONFIG_GET_Hints NULL +/* CONFIG GET tips */ +#define CONFIG_GET_tips NULL /* CONFIG GET parameter argument table */ struct redisCommandArg CONFIG_GET_parameter_Subargs[] = { @@ -3911,24 +4107,24 @@ struct redisCommandArg CONFIG_GET_Args[] = { /* CONFIG HELP history */ #define CONFIG_HELP_History NULL -/* CONFIG HELP hints */ -#define CONFIG_HELP_Hints NULL +/* CONFIG HELP tips */ +#define CONFIG_HELP_tips NULL /********** CONFIG RESETSTAT ********************/ /* CONFIG RESETSTAT history */ #define CONFIG_RESETSTAT_History NULL -/* CONFIG RESETSTAT hints */ -#define CONFIG_RESETSTAT_Hints NULL +/* CONFIG RESETSTAT tips */ +#define CONFIG_RESETSTAT_tips NULL /********** CONFIG REWRITE ********************/ /* CONFIG REWRITE history */ #define CONFIG_REWRITE_History NULL -/* CONFIG REWRITE hints */ -#define CONFIG_REWRITE_Hints NULL +/* CONFIG REWRITE tips */ +#define CONFIG_REWRITE_tips NULL /********** CONFIG SET ********************/ @@ -3938,8 +4134,12 @@ commandHistory CONFIG_SET_History[] = { {0} }; -/* CONFIG SET hints */ -#define CONFIG_SET_Hints NULL +/* CONFIG SET tips */ +const char *CONFIG_SET_tips[] = { +"request_policy:all_nodes", +"response_policy:all_succeeded", +NULL +}; /* CONFIG SET parameter_value argument table */ struct redisCommandArg CONFIG_SET_parameter_value_Subargs[] = { @@ -3956,11 +4156,11 @@ struct redisCommandArg CONFIG_SET_Args[] = { /* CONFIG command table */ struct redisCommand CONFIG_Subcommands[] = { -{"get","Get the values of configuration parameters","O(N) when N is the number of configuration parameters provided","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_GET_History,CONFIG_GET_Hints,configGetCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=CONFIG_GET_Args}, -{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_HELP_History,CONFIG_HELP_Hints,configHelpCommand,2,CMD_LOADING|CMD_STALE,0}, -{"resetstat","Reset the stats returned by INFO","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_RESETSTAT_History,CONFIG_RESETSTAT_Hints,configResetStatCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, -{"rewrite","Rewrite the configuration file with the in memory configuration","O(1)","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_REWRITE_History,CONFIG_REWRITE_Hints,configRewriteCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, -{"set","Set configuration parameters to the given values","O(N) when N is the number of configuration parameters provided","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_SET_History,CONFIG_SET_Hints,configSetCommand,-4,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=CONFIG_SET_Args}, +{"get","Get the values of configuration parameters","O(N) when N is the number of configuration parameters provided","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_GET_History,CONFIG_GET_tips,configGetCommand,-3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=CONFIG_GET_Args}, +{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_HELP_History,CONFIG_HELP_tips,configHelpCommand,2,CMD_LOADING|CMD_STALE,0}, +{"resetstat","Reset the stats returned by INFO","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_RESETSTAT_History,CONFIG_RESETSTAT_tips,configResetStatCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, +{"rewrite","Rewrite the configuration file with the in memory configuration","O(1)","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_REWRITE_History,CONFIG_REWRITE_tips,configRewriteCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, +{"set","Set configuration parameters to the given values","O(N) when N is the number of configuration parameters provided","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_SET_History,CONFIG_SET_tips,configSetCommand,-4,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=CONFIG_SET_Args}, {0} }; @@ -3969,32 +4169,36 @@ struct redisCommand CONFIG_Subcommands[] = { /* CONFIG history */ #define CONFIG_History NULL -/* CONFIG hints */ -#define CONFIG_Hints NULL +/* CONFIG tips */ +#define CONFIG_tips NULL /********** DBSIZE ********************/ /* DBSIZE history */ #define DBSIZE_History NULL -/* DBSIZE hints */ -#define DBSIZE_Hints NULL +/* DBSIZE tips */ +const char *DBSIZE_tips[] = { +"request_policy:all_shards", +"response_policy:agg_sum", +NULL +}; /********** DEBUG ********************/ /* DEBUG history */ #define DEBUG_History NULL -/* DEBUG hints */ -#define DEBUG_Hints NULL +/* DEBUG tips */ +#define DEBUG_tips NULL /********** FAILOVER ********************/ /* FAILOVER history */ #define FAILOVER_History NULL -/* FAILOVER hints */ -#define FAILOVER_Hints NULL +/* FAILOVER tips */ +#define FAILOVER_tips NULL /* FAILOVER target argument table */ struct redisCommandArg FAILOVER_target_Subargs[] = { @@ -4021,8 +4225,12 @@ commandHistory FLUSHALL_History[] = { {0} }; -/* FLUSHALL hints */ -#define FLUSHALL_Hints NULL +/* FLUSHALL tips */ +const char *FLUSHALL_tips[] = { +"request_policy:all_shards", +"response_policy:all_succeeded", +NULL +}; /* FLUSHALL async argument table */ struct redisCommandArg FLUSHALL_async_Subargs[] = { @@ -4046,8 +4254,12 @@ commandHistory FLUSHDB_History[] = { {0} }; -/* FLUSHDB hints */ -#define FLUSHDB_Hints NULL +/* FLUSHDB tips */ +const char *FLUSHDB_tips[] = { +"request_policy:all_shards", +"response_policy:all_succeeded", +NULL +}; /* FLUSHDB async argument table */ struct redisCommandArg FLUSHDB_async_Subargs[] = { @@ -4067,8 +4279,13 @@ struct redisCommandArg FLUSHDB_Args[] = { /* INFO history */ #define INFO_History NULL -/* INFO hints */ -#define INFO_Hints NULL +/* INFO tips */ +const char *INFO_tips[] = { +"nondeterministic_output", +"request_policy:all_shards", +"response_policy:special", +NULL +}; /* INFO argument table */ struct redisCommandArg INFO_Args[] = { @@ -4081,24 +4298,27 @@ struct redisCommandArg INFO_Args[] = { /* LASTSAVE history */ #define LASTSAVE_History NULL -/* LASTSAVE hints */ -#define LASTSAVE_Hints NULL +/* LASTSAVE tips */ +const char *LASTSAVE_tips[] = { +"nondeterministic_output", +NULL +}; /********** LATENCY DOCTOR ********************/ /* LATENCY DOCTOR history */ #define LATENCY_DOCTOR_History NULL -/* LATENCY DOCTOR hints */ -#define LATENCY_DOCTOR_Hints NULL +/* LATENCY DOCTOR tips */ +#define LATENCY_DOCTOR_tips NULL /********** LATENCY GRAPH ********************/ /* LATENCY GRAPH history */ #define LATENCY_GRAPH_History NULL -/* LATENCY GRAPH hints */ -#define LATENCY_GRAPH_Hints NULL +/* LATENCY GRAPH tips */ +#define LATENCY_GRAPH_tips NULL /* LATENCY GRAPH argument table */ struct redisCommandArg LATENCY_GRAPH_Args[] = { @@ -4111,16 +4331,16 @@ struct redisCommandArg LATENCY_GRAPH_Args[] = { /* LATENCY HELP history */ #define LATENCY_HELP_History NULL -/* LATENCY HELP hints */ -#define LATENCY_HELP_Hints NULL +/* LATENCY HELP tips */ +#define LATENCY_HELP_tips NULL /********** LATENCY HISTOGRAM ********************/ /* LATENCY HISTOGRAM history */ #define LATENCY_HISTOGRAM_History NULL -/* LATENCY HISTOGRAM hints */ -#define LATENCY_HISTOGRAM_Hints NULL +/* LATENCY HISTOGRAM tips */ +#define LATENCY_HISTOGRAM_tips NULL /* LATENCY HISTOGRAM argument table */ struct redisCommandArg LATENCY_HISTOGRAM_Args[] = { @@ -4133,8 +4353,8 @@ struct redisCommandArg LATENCY_HISTOGRAM_Args[] = { /* LATENCY HISTORY history */ #define LATENCY_HISTORY_History NULL -/* LATENCY HISTORY hints */ -#define LATENCY_HISTORY_Hints NULL +/* LATENCY HISTORY tips */ +#define LATENCY_HISTORY_tips NULL /* LATENCY HISTORY argument table */ struct redisCommandArg LATENCY_HISTORY_Args[] = { @@ -4147,16 +4367,16 @@ struct redisCommandArg LATENCY_HISTORY_Args[] = { /* LATENCY LATEST history */ #define LATENCY_LATEST_History NULL -/* LATENCY LATEST hints */ -#define LATENCY_LATEST_Hints NULL +/* LATENCY LATEST tips */ +#define LATENCY_LATEST_tips NULL /********** LATENCY RESET ********************/ /* LATENCY RESET history */ #define LATENCY_RESET_History NULL -/* LATENCY RESET hints */ -#define LATENCY_RESET_Hints NULL +/* LATENCY RESET tips */ +#define LATENCY_RESET_tips NULL /* LATENCY RESET argument table */ struct redisCommandArg LATENCY_RESET_Args[] = { @@ -4166,13 +4386,13 @@ struct redisCommandArg LATENCY_RESET_Args[] = { /* LATENCY command table */ struct redisCommand LATENCY_Subcommands[] = { -{"doctor","Return a human readable latency analysis report.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_DOCTOR_History,LATENCY_DOCTOR_Hints,latencyCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, -{"graph","Return a latency graph for the event.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_GRAPH_History,LATENCY_GRAPH_Hints,latencyCommand,3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=LATENCY_GRAPH_Args}, -{"help","Show helpful text about the different subcommands.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_HELP_History,LATENCY_HELP_Hints,latencyCommand,2,CMD_LOADING|CMD_STALE,0}, -{"histogram","Return the cumulative distribution of latencies of a subset of commands or all.","O(N) where N is the number of commands with latency information being retrieved.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_HISTOGRAM_History,LATENCY_HISTOGRAM_Hints,latencyCommand,-2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=LATENCY_HISTOGRAM_Args}, -{"history","Return timestamp-latency samples for the event.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_HISTORY_History,LATENCY_HISTORY_Hints,latencyCommand,3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=LATENCY_HISTORY_Args}, -{"latest","Return the latest latency samples for all events.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_LATEST_History,LATENCY_LATEST_Hints,latencyCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, -{"reset","Reset latency data for one or more events.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_RESET_History,LATENCY_RESET_Hints,latencyCommand,-2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=LATENCY_RESET_Args}, +{"doctor","Return a human readable latency analysis report.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_DOCTOR_History,LATENCY_DOCTOR_tips,latencyCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, +{"graph","Return a latency graph for the event.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_GRAPH_History,LATENCY_GRAPH_tips,latencyCommand,3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=LATENCY_GRAPH_Args}, +{"help","Show helpful text about the different subcommands.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_HELP_History,LATENCY_HELP_tips,latencyCommand,2,CMD_LOADING|CMD_STALE,0}, +{"histogram","Return the cumulative distribution of latencies of a subset of commands or all.","O(N) where N is the number of commands with latency information being retrieved.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_HISTOGRAM_History,LATENCY_HISTOGRAM_tips,latencyCommand,-2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=LATENCY_HISTOGRAM_Args}, +{"history","Return timestamp-latency samples for the event.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_HISTORY_History,LATENCY_HISTORY_tips,latencyCommand,3,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=LATENCY_HISTORY_Args}, +{"latest","Return the latest latency samples for all events.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_LATEST_History,LATENCY_LATEST_tips,latencyCommand,2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, +{"reset","Reset latency data for one or more events.","O(1)","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_RESET_History,LATENCY_RESET_tips,latencyCommand,-2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,.args=LATENCY_RESET_Args}, {0} }; @@ -4181,16 +4401,16 @@ struct redisCommand LATENCY_Subcommands[] = { /* LATENCY history */ #define LATENCY_History NULL -/* LATENCY hints */ -#define LATENCY_Hints NULL +/* LATENCY tips */ +#define LATENCY_tips NULL /********** LOLWUT ********************/ /* LOLWUT history */ #define LOLWUT_History NULL -/* LOLWUT hints */ -#define LOLWUT_Hints NULL +/* LOLWUT tips */ +#define LOLWUT_tips NULL /* LOLWUT argument table */ struct redisCommandArg LOLWUT_Args[] = { @@ -4203,48 +4423,57 @@ struct redisCommandArg LOLWUT_Args[] = { /* MEMORY DOCTOR history */ #define MEMORY_DOCTOR_History NULL -/* MEMORY DOCTOR hints */ -#define MEMORY_DOCTOR_Hints NULL +/* MEMORY DOCTOR tips */ +const char *MEMORY_DOCTOR_tips[] = { +"nondeterministic_output", +NULL +}; /********** MEMORY HELP ********************/ /* MEMORY HELP history */ #define MEMORY_HELP_History NULL -/* MEMORY HELP hints */ -#define MEMORY_HELP_Hints NULL +/* MEMORY HELP tips */ +#define MEMORY_HELP_tips NULL /********** MEMORY MALLOC_STATS ********************/ /* MEMORY MALLOC_STATS history */ #define MEMORY_MALLOC_STATS_History NULL -/* MEMORY MALLOC_STATS hints */ -#define MEMORY_MALLOC_STATS_Hints NULL +/* MEMORY MALLOC_STATS tips */ +const char *MEMORY_MALLOC_STATS_tips[] = { +"nondeterministic_output", +NULL +}; /********** MEMORY PURGE ********************/ /* MEMORY PURGE history */ #define MEMORY_PURGE_History NULL -/* MEMORY PURGE hints */ -#define MEMORY_PURGE_Hints NULL +/* MEMORY PURGE tips */ +#define MEMORY_PURGE_tips NULL /********** MEMORY STATS ********************/ /* MEMORY STATS history */ #define MEMORY_STATS_History NULL -/* MEMORY STATS hints */ -#define MEMORY_STATS_Hints NULL +/* MEMORY STATS tips */ +const char *MEMORY_STATS_tips[] = { +"nondeterministic_output", +NULL +}; /********** MEMORY USAGE ********************/ /* MEMORY USAGE history */ #define MEMORY_USAGE_History NULL -/* MEMORY USAGE hints */ -#define MEMORY_USAGE_Hints NULL +/* MEMORY USAGE tips */ +#define MEMORY_USAGE_tips NULL /* MEMORY USAGE argument table */ struct redisCommandArg MEMORY_USAGE_Args[] = { @@ -4255,12 +4484,12 @@ struct redisCommandArg MEMORY_USAGE_Args[] = { /* MEMORY command table */ struct redisCommand MEMORY_Subcommands[] = { -{"doctor","Outputs memory problems report","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_DOCTOR_History,MEMORY_DOCTOR_Hints,memoryCommand,2,CMD_RANDOM,0}, -{"help","Show helpful text about the different subcommands","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_HELP_History,MEMORY_HELP_Hints,memoryCommand,2,CMD_LOADING|CMD_STALE,0}, -{"malloc-stats","Show allocator internal stats","Depends on how much memory is allocated, could be slow","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_MALLOC_STATS_History,MEMORY_MALLOC_STATS_Hints,memoryCommand,2,CMD_RANDOM,0}, -{"purge","Ask the allocator to release memory","Depends on how much memory is allocated, could be slow","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_PURGE_History,MEMORY_PURGE_Hints,memoryCommand,2,0,0}, -{"stats","Show memory usage details","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_STATS_History,MEMORY_STATS_Hints,memoryCommand,2,CMD_RANDOM,0}, -{"usage","Estimate the memory usage of a key","O(N) where N is the number of samples.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_USAGE_History,MEMORY_USAGE_Hints,memoryCommand,-3,CMD_READONLY,0,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=MEMORY_USAGE_Args}, +{"doctor","Outputs memory problems report","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_DOCTOR_History,MEMORY_DOCTOR_tips,memoryCommand,2,0,0}, +{"help","Show helpful text about the different subcommands","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_HELP_History,MEMORY_HELP_tips,memoryCommand,2,CMD_LOADING|CMD_STALE,0}, +{"malloc-stats","Show allocator internal stats","Depends on how much memory is allocated, could be slow","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_MALLOC_STATS_History,MEMORY_MALLOC_STATS_tips,memoryCommand,2,0,0}, +{"purge","Ask the allocator to release memory","Depends on how much memory is allocated, could be slow","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_PURGE_History,MEMORY_PURGE_tips,memoryCommand,2,0,0}, +{"stats","Show memory usage details","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_STATS_History,MEMORY_STATS_tips,memoryCommand,2,0,0}, +{"usage","Estimate the memory usage of a key","O(N) where N is the number of samples.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_USAGE_History,MEMORY_USAGE_tips,memoryCommand,-3,CMD_READONLY,0,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=MEMORY_USAGE_Args}, {0} }; @@ -4269,32 +4498,32 @@ struct redisCommand MEMORY_Subcommands[] = { /* MEMORY history */ #define MEMORY_History NULL -/* MEMORY hints */ -#define MEMORY_Hints NULL +/* MEMORY tips */ +#define MEMORY_tips NULL /********** MODULE HELP ********************/ /* MODULE HELP history */ #define MODULE_HELP_History NULL -/* MODULE HELP hints */ -#define MODULE_HELP_Hints NULL +/* MODULE HELP tips */ +#define MODULE_HELP_tips NULL /********** MODULE LIST ********************/ /* MODULE LIST history */ #define MODULE_LIST_History NULL -/* MODULE LIST hints */ -#define MODULE_LIST_Hints NULL +/* MODULE LIST tips */ +#define MODULE_LIST_tips NULL /********** MODULE LOAD ********************/ /* MODULE LOAD history */ #define MODULE_LOAD_History NULL -/* MODULE LOAD hints */ -#define MODULE_LOAD_Hints NULL +/* MODULE LOAD tips */ +#define MODULE_LOAD_tips NULL /* MODULE LOAD argument table */ struct redisCommandArg MODULE_LOAD_Args[] = { @@ -4308,8 +4537,8 @@ struct redisCommandArg MODULE_LOAD_Args[] = { /* MODULE UNLOAD history */ #define MODULE_UNLOAD_History NULL -/* MODULE UNLOAD hints */ -#define MODULE_UNLOAD_Hints NULL +/* MODULE UNLOAD tips */ +#define MODULE_UNLOAD_tips NULL /* MODULE UNLOAD argument table */ struct redisCommandArg MODULE_UNLOAD_Args[] = { @@ -4319,10 +4548,10 @@ struct redisCommandArg MODULE_UNLOAD_Args[] = { /* MODULE command table */ struct redisCommand MODULE_Subcommands[] = { -{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MODULE_HELP_History,MODULE_HELP_Hints,moduleCommand,2,CMD_LOADING|CMD_STALE,0}, -{"list","List all modules loaded by the server","O(N) where N is the number of loaded modules.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MODULE_LIST_History,MODULE_LIST_Hints,moduleCommand,2,CMD_ADMIN|CMD_NOSCRIPT,0}, -{"load","Load a module","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MODULE_LOAD_History,MODULE_LOAD_Hints,moduleCommand,-3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT|CMD_PROTECTED,0,.args=MODULE_LOAD_Args}, -{"unload","Unload a module","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MODULE_UNLOAD_History,MODULE_UNLOAD_Hints,moduleCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT|CMD_PROTECTED,0,.args=MODULE_UNLOAD_Args}, +{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MODULE_HELP_History,MODULE_HELP_tips,moduleCommand,2,CMD_LOADING|CMD_STALE,0}, +{"list","List all modules loaded by the server","O(N) where N is the number of loaded modules.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MODULE_LIST_History,MODULE_LIST_tips,moduleCommand,2,CMD_ADMIN|CMD_NOSCRIPT,0}, +{"load","Load a module","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MODULE_LOAD_History,MODULE_LOAD_tips,moduleCommand,-3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT|CMD_PROTECTED,0,.args=MODULE_LOAD_Args}, +{"unload","Unload a module","O(1)","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MODULE_UNLOAD_History,MODULE_UNLOAD_tips,moduleCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT|CMD_PROTECTED,0,.args=MODULE_UNLOAD_Args}, {0} }; @@ -4331,8 +4560,8 @@ struct redisCommand MODULE_Subcommands[] = { /* MODULE history */ #define MODULE_History NULL -/* MODULE hints */ -#define MODULE_Hints NULL +/* MODULE tips */ +#define MODULE_tips NULL /********** MONITOR ********************/ @@ -4344,16 +4573,16 @@ commandHistory MONITOR_History[] = { {0} }; -/* MONITOR hints */ -#define MONITOR_Hints NULL +/* MONITOR tips */ +#define MONITOR_tips NULL /********** PSYNC ********************/ /* PSYNC history */ #define PSYNC_History NULL -/* PSYNC hints */ -#define PSYNC_Hints NULL +/* PSYNC tips */ +#define PSYNC_tips NULL /* PSYNC argument table */ struct redisCommandArg PSYNC_Args[] = { @@ -4367,16 +4596,16 @@ struct redisCommandArg PSYNC_Args[] = { /* REPLCONF history */ #define REPLCONF_History NULL -/* REPLCONF hints */ -#define REPLCONF_Hints NULL +/* REPLCONF tips */ +#define REPLCONF_tips NULL /********** REPLICAOF ********************/ /* REPLICAOF history */ #define REPLICAOF_History NULL -/* REPLICAOF hints */ -#define REPLICAOF_Hints NULL +/* REPLICAOF tips */ +#define REPLICAOF_tips NULL /* REPLICAOF argument table */ struct redisCommandArg REPLICAOF_Args[] = { @@ -4390,24 +4619,24 @@ struct redisCommandArg REPLICAOF_Args[] = { /* RESTORE_ASKING history */ #define RESTORE_ASKING_History NULL -/* RESTORE_ASKING hints */ -#define RESTORE_ASKING_Hints NULL +/* RESTORE_ASKING tips */ +#define RESTORE_ASKING_tips NULL /********** ROLE ********************/ /* ROLE history */ #define ROLE_History NULL -/* ROLE hints */ -#define ROLE_Hints NULL +/* ROLE tips */ +#define ROLE_tips NULL /********** SAVE ********************/ /* SAVE history */ #define SAVE_History NULL -/* SAVE hints */ -#define SAVE_Hints NULL +/* SAVE tips */ +#define SAVE_tips NULL /********** SHUTDOWN ********************/ @@ -4417,8 +4646,8 @@ commandHistory SHUTDOWN_History[] = { {0} }; -/* SHUTDOWN hints */ -#define SHUTDOWN_Hints NULL +/* SHUTDOWN tips */ +#define SHUTDOWN_tips NULL /* SHUTDOWN nosave_save argument table */ struct redisCommandArg SHUTDOWN_nosave_save_Subargs[] = { @@ -4441,8 +4670,8 @@ struct redisCommandArg SHUTDOWN_Args[] = { /* SLAVEOF history */ #define SLAVEOF_History NULL -/* SLAVEOF hints */ -#define SLAVEOF_Hints NULL +/* SLAVEOF tips */ +#define SLAVEOF_tips NULL /* SLAVEOF argument table */ struct redisCommandArg SLAVEOF_Args[] = { @@ -4459,8 +4688,12 @@ commandHistory SLOWLOG_GET_History[] = { {0} }; -/* SLOWLOG GET hints */ -#define SLOWLOG_GET_Hints NULL +/* SLOWLOG GET tips */ +const char *SLOWLOG_GET_tips[] = { +"request_policy:all_nodes", +"nondeterministic_output", +NULL +}; /* SLOWLOG GET argument table */ struct redisCommandArg SLOWLOG_GET_Args[] = { @@ -4473,31 +4706,40 @@ struct redisCommandArg SLOWLOG_GET_Args[] = { /* SLOWLOG HELP history */ #define SLOWLOG_HELP_History NULL -/* SLOWLOG HELP hints */ -#define SLOWLOG_HELP_Hints NULL +/* SLOWLOG HELP tips */ +#define SLOWLOG_HELP_tips NULL /********** SLOWLOG LEN ********************/ /* SLOWLOG LEN history */ #define SLOWLOG_LEN_History NULL -/* SLOWLOG LEN hints */ -#define SLOWLOG_LEN_Hints NULL +/* SLOWLOG LEN tips */ +const char *SLOWLOG_LEN_tips[] = { +"request_policy:all_nodes", +"response_policy:agg_sum", +"nondeterministic_output", +NULL +}; /********** SLOWLOG RESET ********************/ /* SLOWLOG RESET history */ #define SLOWLOG_RESET_History NULL -/* SLOWLOG RESET hints */ -#define SLOWLOG_RESET_Hints NULL +/* SLOWLOG RESET tips */ +const char *SLOWLOG_RESET_tips[] = { +"request_policy:all_nodes", +"response_policy:all_succeeded", +NULL +}; /* SLOWLOG command table */ struct redisCommand SLOWLOG_Subcommands[] = { -{"get","Get the slow log's entries","O(N) where N is the number of entries returned","2.2.12",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLOWLOG_GET_History,SLOWLOG_GET_Hints,slowlogCommand,-2,CMD_ADMIN|CMD_RANDOM|CMD_LOADING|CMD_STALE,0,.args=SLOWLOG_GET_Args}, -{"help","Show helpful text about the different subcommands","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLOWLOG_HELP_History,SLOWLOG_HELP_Hints,slowlogCommand,2,CMD_LOADING|CMD_STALE,0}, -{"len","Get the slow log's length","O(1)","2.2.12",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLOWLOG_LEN_History,SLOWLOG_LEN_Hints,slowlogCommand,2,CMD_ADMIN|CMD_RANDOM|CMD_LOADING|CMD_STALE,0}, -{"reset","Clear all entries from the slow log","O(N) where N is the number of entries in the slowlog","2.2.12",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLOWLOG_RESET_History,SLOWLOG_RESET_Hints,slowlogCommand,2,CMD_ADMIN|CMD_LOADING|CMD_STALE,0}, +{"get","Get the slow log's entries","O(N) where N is the number of entries returned","2.2.12",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLOWLOG_GET_History,SLOWLOG_GET_tips,slowlogCommand,-2,CMD_ADMIN|CMD_LOADING|CMD_STALE,0,.args=SLOWLOG_GET_Args}, +{"help","Show helpful text about the different subcommands","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLOWLOG_HELP_History,SLOWLOG_HELP_tips,slowlogCommand,2,CMD_LOADING|CMD_STALE,0}, +{"len","Get the slow log's length","O(1)","2.2.12",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLOWLOG_LEN_History,SLOWLOG_LEN_tips,slowlogCommand,2,CMD_ADMIN|CMD_LOADING|CMD_STALE,0}, +{"reset","Clear all entries from the slow log","O(N) where N is the number of entries in the slowlog","2.2.12",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLOWLOG_RESET_History,SLOWLOG_RESET_tips,slowlogCommand,2,CMD_ADMIN|CMD_LOADING|CMD_STALE,0}, {0} }; @@ -4506,16 +4748,16 @@ struct redisCommand SLOWLOG_Subcommands[] = { /* SLOWLOG history */ #define SLOWLOG_History NULL -/* SLOWLOG hints */ -#define SLOWLOG_Hints NULL +/* SLOWLOG tips */ +#define SLOWLOG_tips NULL /********** SWAPDB ********************/ /* SWAPDB history */ #define SWAPDB_History NULL -/* SWAPDB hints */ -#define SWAPDB_Hints NULL +/* SWAPDB tips */ +#define SWAPDB_tips NULL /* SWAPDB argument table */ struct redisCommandArg SWAPDB_Args[] = { @@ -4529,16 +4771,19 @@ struct redisCommandArg SWAPDB_Args[] = { /* SYNC history */ #define SYNC_History NULL -/* SYNC hints */ -#define SYNC_Hints NULL +/* SYNC tips */ +#define SYNC_tips NULL /********** TIME ********************/ /* TIME history */ #define TIME_History NULL -/* TIME hints */ -#define TIME_Hints NULL +/* TIME tips */ +const char *TIME_tips[] = { +"nondeterministic_output", +NULL +}; /********** SADD ********************/ @@ -4548,8 +4793,8 @@ commandHistory SADD_History[] = { {0} }; -/* SADD hints */ -#define SADD_Hints NULL +/* SADD tips */ +#define SADD_tips NULL /* SADD argument table */ struct redisCommandArg SADD_Args[] = { @@ -4563,8 +4808,8 @@ struct redisCommandArg SADD_Args[] = { /* SCARD history */ #define SCARD_History NULL -/* SCARD hints */ -#define SCARD_Hints NULL +/* SCARD tips */ +#define SCARD_tips NULL /* SCARD argument table */ struct redisCommandArg SCARD_Args[] = { @@ -4577,8 +4822,11 @@ struct redisCommandArg SCARD_Args[] = { /* SDIFF history */ #define SDIFF_History NULL -/* SDIFF hints */ -#define SDIFF_Hints NULL +/* SDIFF tips */ +const char *SDIFF_tips[] = { +"nondeterministic_output_order", +NULL +}; /* SDIFF argument table */ struct redisCommandArg SDIFF_Args[] = { @@ -4591,8 +4839,8 @@ struct redisCommandArg SDIFF_Args[] = { /* SDIFFSTORE history */ #define SDIFFSTORE_History NULL -/* SDIFFSTORE hints */ -#define SDIFFSTORE_Hints NULL +/* SDIFFSTORE tips */ +#define SDIFFSTORE_tips NULL /* SDIFFSTORE argument table */ struct redisCommandArg SDIFFSTORE_Args[] = { @@ -4606,8 +4854,11 @@ struct redisCommandArg SDIFFSTORE_Args[] = { /* SINTER history */ #define SINTER_History NULL -/* SINTER hints */ -#define SINTER_Hints NULL +/* SINTER tips */ +const char *SINTER_tips[] = { +"nondeterministic_output_order", +NULL +}; /* SINTER argument table */ struct redisCommandArg SINTER_Args[] = { @@ -4620,8 +4871,8 @@ struct redisCommandArg SINTER_Args[] = { /* SINTERCARD history */ #define SINTERCARD_History NULL -/* SINTERCARD hints */ -#define SINTERCARD_Hints NULL +/* SINTERCARD tips */ +#define SINTERCARD_tips NULL /* SINTERCARD argument table */ struct redisCommandArg SINTERCARD_Args[] = { @@ -4636,8 +4887,8 @@ struct redisCommandArg SINTERCARD_Args[] = { /* SINTERSTORE history */ #define SINTERSTORE_History NULL -/* SINTERSTORE hints */ -#define SINTERSTORE_Hints NULL +/* SINTERSTORE tips */ +#define SINTERSTORE_tips NULL /* SINTERSTORE argument table */ struct redisCommandArg SINTERSTORE_Args[] = { @@ -4651,8 +4902,8 @@ struct redisCommandArg SINTERSTORE_Args[] = { /* SISMEMBER history */ #define SISMEMBER_History NULL -/* SISMEMBER hints */ -#define SISMEMBER_Hints NULL +/* SISMEMBER tips */ +#define SISMEMBER_tips NULL /* SISMEMBER argument table */ struct redisCommandArg SISMEMBER_Args[] = { @@ -4666,8 +4917,11 @@ struct redisCommandArg SISMEMBER_Args[] = { /* SMEMBERS history */ #define SMEMBERS_History NULL -/* SMEMBERS hints */ -#define SMEMBERS_Hints NULL +/* SMEMBERS tips */ +const char *SMEMBERS_tips[] = { +"nondeterministic_output_order", +NULL +}; /* SMEMBERS argument table */ struct redisCommandArg SMEMBERS_Args[] = { @@ -4680,8 +4934,8 @@ struct redisCommandArg SMEMBERS_Args[] = { /* SMISMEMBER history */ #define SMISMEMBER_History NULL -/* SMISMEMBER hints */ -#define SMISMEMBER_Hints NULL +/* SMISMEMBER tips */ +#define SMISMEMBER_tips NULL /* SMISMEMBER argument table */ struct redisCommandArg SMISMEMBER_Args[] = { @@ -4695,8 +4949,8 @@ struct redisCommandArg SMISMEMBER_Args[] = { /* SMOVE history */ #define SMOVE_History NULL -/* SMOVE hints */ -#define SMOVE_Hints NULL +/* SMOVE tips */ +#define SMOVE_tips NULL /* SMOVE argument table */ struct redisCommandArg SMOVE_Args[] = { @@ -4714,8 +4968,11 @@ commandHistory SPOP_History[] = { {0} }; -/* SPOP hints */ -#define SPOP_Hints NULL +/* SPOP tips */ +const char *SPOP_tips[] = { +"nondeterministic_output", +NULL +}; /* SPOP argument table */ struct redisCommandArg SPOP_Args[] = { @@ -4732,8 +4989,11 @@ commandHistory SRANDMEMBER_History[] = { {0} }; -/* SRANDMEMBER hints */ -#define SRANDMEMBER_Hints NULL +/* SRANDMEMBER tips */ +const char *SRANDMEMBER_tips[] = { +"nondeterministic_output", +NULL +}; /* SRANDMEMBER argument table */ struct redisCommandArg SRANDMEMBER_Args[] = { @@ -4750,8 +5010,8 @@ commandHistory SREM_History[] = { {0} }; -/* SREM hints */ -#define SREM_Hints NULL +/* SREM tips */ +#define SREM_tips NULL /* SREM argument table */ struct redisCommandArg SREM_Args[] = { @@ -4765,8 +5025,11 @@ struct redisCommandArg SREM_Args[] = { /* SSCAN history */ #define SSCAN_History NULL -/* SSCAN hints */ -#define SSCAN_Hints NULL +/* SSCAN tips */ +const char *SSCAN_tips[] = { +"nondeterministic_output", +NULL +}; /* SSCAN argument table */ struct redisCommandArg SSCAN_Args[] = { @@ -4782,8 +5045,11 @@ struct redisCommandArg SSCAN_Args[] = { /* SUNION history */ #define SUNION_History NULL -/* SUNION hints */ -#define SUNION_Hints NULL +/* SUNION tips */ +const char *SUNION_tips[] = { +"nondeterministic_output_order", +NULL +}; /* SUNION argument table */ struct redisCommandArg SUNION_Args[] = { @@ -4796,8 +5062,8 @@ struct redisCommandArg SUNION_Args[] = { /* SUNIONSTORE history */ #define SUNIONSTORE_History NULL -/* SUNIONSTORE hints */ -#define SUNIONSTORE_Hints NULL +/* SUNIONSTORE tips */ +#define SUNIONSTORE_tips NULL /* SUNIONSTORE argument table */ struct redisCommandArg SUNIONSTORE_Args[] = { @@ -4811,8 +5077,8 @@ struct redisCommandArg SUNIONSTORE_Args[] = { /* BZMPOP history */ #define BZMPOP_History NULL -/* BZMPOP hints */ -#define BZMPOP_Hints NULL +/* BZMPOP tips */ +#define BZMPOP_tips NULL /* BZMPOP where argument table */ struct redisCommandArg BZMPOP_where_Subargs[] = { @@ -4839,8 +5105,8 @@ commandHistory BZPOPMAX_History[] = { {0} }; -/* BZPOPMAX hints */ -#define BZPOPMAX_Hints NULL +/* BZPOPMAX tips */ +#define BZPOPMAX_tips NULL /* BZPOPMAX argument table */ struct redisCommandArg BZPOPMAX_Args[] = { @@ -4857,8 +5123,8 @@ commandHistory BZPOPMIN_History[] = { {0} }; -/* BZPOPMIN hints */ -#define BZPOPMIN_Hints NULL +/* BZPOPMIN tips */ +#define BZPOPMIN_tips NULL /* BZPOPMIN argument table */ struct redisCommandArg BZPOPMIN_Args[] = { @@ -4877,8 +5143,8 @@ commandHistory ZADD_History[] = { {0} }; -/* ZADD hints */ -#define ZADD_Hints NULL +/* ZADD tips */ +#define ZADD_tips NULL /* ZADD condition argument table */ struct redisCommandArg ZADD_condition_Subargs[] = { @@ -4917,8 +5183,8 @@ struct redisCommandArg ZADD_Args[] = { /* ZCARD history */ #define ZCARD_History NULL -/* ZCARD hints */ -#define ZCARD_Hints NULL +/* ZCARD tips */ +#define ZCARD_tips NULL /* ZCARD argument table */ struct redisCommandArg ZCARD_Args[] = { @@ -4931,8 +5197,8 @@ struct redisCommandArg ZCARD_Args[] = { /* ZCOUNT history */ #define ZCOUNT_History NULL -/* ZCOUNT hints */ -#define ZCOUNT_Hints NULL +/* ZCOUNT tips */ +#define ZCOUNT_tips NULL /* ZCOUNT argument table */ struct redisCommandArg ZCOUNT_Args[] = { @@ -4947,8 +5213,8 @@ struct redisCommandArg ZCOUNT_Args[] = { /* ZDIFF history */ #define ZDIFF_History NULL -/* ZDIFF hints */ -#define ZDIFF_Hints NULL +/* ZDIFF tips */ +#define ZDIFF_tips NULL /* ZDIFF argument table */ struct redisCommandArg ZDIFF_Args[] = { @@ -4963,8 +5229,8 @@ struct redisCommandArg ZDIFF_Args[] = { /* ZDIFFSTORE history */ #define ZDIFFSTORE_History NULL -/* ZDIFFSTORE hints */ -#define ZDIFFSTORE_Hints NULL +/* ZDIFFSTORE tips */ +#define ZDIFFSTORE_tips NULL /* ZDIFFSTORE argument table */ struct redisCommandArg ZDIFFSTORE_Args[] = { @@ -4979,8 +5245,8 @@ struct redisCommandArg ZDIFFSTORE_Args[] = { /* ZINCRBY history */ #define ZINCRBY_History NULL -/* ZINCRBY hints */ -#define ZINCRBY_Hints NULL +/* ZINCRBY tips */ +#define ZINCRBY_tips NULL /* ZINCRBY argument table */ struct redisCommandArg ZINCRBY_Args[] = { @@ -4995,8 +5261,8 @@ struct redisCommandArg ZINCRBY_Args[] = { /* ZINTER history */ #define ZINTER_History NULL -/* ZINTER hints */ -#define ZINTER_Hints NULL +/* ZINTER tips */ +#define ZINTER_tips NULL /* ZINTER aggregate argument table */ struct redisCommandArg ZINTER_aggregate_Subargs[] = { @@ -5021,8 +5287,8 @@ struct redisCommandArg ZINTER_Args[] = { /* ZINTERCARD history */ #define ZINTERCARD_History NULL -/* ZINTERCARD hints */ -#define ZINTERCARD_Hints NULL +/* ZINTERCARD tips */ +#define ZINTERCARD_tips NULL /* ZINTERCARD argument table */ struct redisCommandArg ZINTERCARD_Args[] = { @@ -5037,8 +5303,8 @@ struct redisCommandArg ZINTERCARD_Args[] = { /* ZINTERSTORE history */ #define ZINTERSTORE_History NULL -/* ZINTERSTORE hints */ -#define ZINTERSTORE_Hints NULL +/* ZINTERSTORE tips */ +#define ZINTERSTORE_tips NULL /* ZINTERSTORE aggregate argument table */ struct redisCommandArg ZINTERSTORE_aggregate_Subargs[] = { @@ -5063,8 +5329,8 @@ struct redisCommandArg ZINTERSTORE_Args[] = { /* ZLEXCOUNT history */ #define ZLEXCOUNT_History NULL -/* ZLEXCOUNT hints */ -#define ZLEXCOUNT_Hints NULL +/* ZLEXCOUNT tips */ +#define ZLEXCOUNT_tips NULL /* ZLEXCOUNT argument table */ struct redisCommandArg ZLEXCOUNT_Args[] = { @@ -5079,8 +5345,8 @@ struct redisCommandArg ZLEXCOUNT_Args[] = { /* ZMPOP history */ #define ZMPOP_History NULL -/* ZMPOP hints */ -#define ZMPOP_Hints NULL +/* ZMPOP tips */ +#define ZMPOP_tips NULL /* ZMPOP where argument table */ struct redisCommandArg ZMPOP_where_Subargs[] = { @@ -5103,8 +5369,8 @@ struct redisCommandArg ZMPOP_Args[] = { /* ZMSCORE history */ #define ZMSCORE_History NULL -/* ZMSCORE hints */ -#define ZMSCORE_Hints NULL +/* ZMSCORE tips */ +#define ZMSCORE_tips NULL /* ZMSCORE argument table */ struct redisCommandArg ZMSCORE_Args[] = { @@ -5118,8 +5384,8 @@ struct redisCommandArg ZMSCORE_Args[] = { /* ZPOPMAX history */ #define ZPOPMAX_History NULL -/* ZPOPMAX hints */ -#define ZPOPMAX_Hints NULL +/* ZPOPMAX tips */ +#define ZPOPMAX_tips NULL /* ZPOPMAX argument table */ struct redisCommandArg ZPOPMAX_Args[] = { @@ -5133,8 +5399,8 @@ struct redisCommandArg ZPOPMAX_Args[] = { /* ZPOPMIN history */ #define ZPOPMIN_History NULL -/* ZPOPMIN hints */ -#define ZPOPMIN_Hints NULL +/* ZPOPMIN tips */ +#define ZPOPMIN_tips NULL /* ZPOPMIN argument table */ struct redisCommandArg ZPOPMIN_Args[] = { @@ -5148,8 +5414,11 @@ struct redisCommandArg ZPOPMIN_Args[] = { /* ZRANDMEMBER history */ #define ZRANDMEMBER_History NULL -/* ZRANDMEMBER hints */ -#define ZRANDMEMBER_Hints NULL +/* ZRANDMEMBER tips */ +const char *ZRANDMEMBER_tips[] = { +"nondeterministic_output", +NULL +}; /* ZRANDMEMBER options argument table */ struct redisCommandArg ZRANDMEMBER_options_Subargs[] = { @@ -5173,8 +5442,8 @@ commandHistory ZRANGE_History[] = { {0} }; -/* ZRANGE hints */ -#define ZRANGE_Hints NULL +/* ZRANGE tips */ +#define ZRANGE_tips NULL /* ZRANGE sortby argument table */ struct redisCommandArg ZRANGE_sortby_Subargs[] = { @@ -5207,8 +5476,8 @@ struct redisCommandArg ZRANGE_Args[] = { /* ZRANGEBYLEX history */ #define ZRANGEBYLEX_History NULL -/* ZRANGEBYLEX hints */ -#define ZRANGEBYLEX_Hints NULL +/* ZRANGEBYLEX tips */ +#define ZRANGEBYLEX_tips NULL /* ZRANGEBYLEX offset_count argument table */ struct redisCommandArg ZRANGEBYLEX_offset_count_Subargs[] = { @@ -5234,8 +5503,8 @@ commandHistory ZRANGEBYSCORE_History[] = { {0} }; -/* ZRANGEBYSCORE hints */ -#define ZRANGEBYSCORE_Hints NULL +/* ZRANGEBYSCORE tips */ +#define ZRANGEBYSCORE_tips NULL /* ZRANGEBYSCORE offset_count argument table */ struct redisCommandArg ZRANGEBYSCORE_offset_count_Subargs[] = { @@ -5259,8 +5528,8 @@ struct redisCommandArg ZRANGEBYSCORE_Args[] = { /* ZRANGESTORE history */ #define ZRANGESTORE_History NULL -/* ZRANGESTORE hints */ -#define ZRANGESTORE_Hints NULL +/* ZRANGESTORE tips */ +#define ZRANGESTORE_tips NULL /* ZRANGESTORE sortby argument table */ struct redisCommandArg ZRANGESTORE_sortby_Subargs[] = { @@ -5293,8 +5562,8 @@ struct redisCommandArg ZRANGESTORE_Args[] = { /* ZRANK history */ #define ZRANK_History NULL -/* ZRANK hints */ -#define ZRANK_Hints NULL +/* ZRANK tips */ +#define ZRANK_tips NULL /* ZRANK argument table */ struct redisCommandArg ZRANK_Args[] = { @@ -5311,8 +5580,8 @@ commandHistory ZREM_History[] = { {0} }; -/* ZREM hints */ -#define ZREM_Hints NULL +/* ZREM tips */ +#define ZREM_tips NULL /* ZREM argument table */ struct redisCommandArg ZREM_Args[] = { @@ -5326,8 +5595,8 @@ struct redisCommandArg ZREM_Args[] = { /* ZREMRANGEBYLEX history */ #define ZREMRANGEBYLEX_History NULL -/* ZREMRANGEBYLEX hints */ -#define ZREMRANGEBYLEX_Hints NULL +/* ZREMRANGEBYLEX tips */ +#define ZREMRANGEBYLEX_tips NULL /* ZREMRANGEBYLEX argument table */ struct redisCommandArg ZREMRANGEBYLEX_Args[] = { @@ -5342,8 +5611,8 @@ struct redisCommandArg ZREMRANGEBYLEX_Args[] = { /* ZREMRANGEBYRANK history */ #define ZREMRANGEBYRANK_History NULL -/* ZREMRANGEBYRANK hints */ -#define ZREMRANGEBYRANK_Hints NULL +/* ZREMRANGEBYRANK tips */ +#define ZREMRANGEBYRANK_tips NULL /* ZREMRANGEBYRANK argument table */ struct redisCommandArg ZREMRANGEBYRANK_Args[] = { @@ -5358,8 +5627,8 @@ struct redisCommandArg ZREMRANGEBYRANK_Args[] = { /* ZREMRANGEBYSCORE history */ #define ZREMRANGEBYSCORE_History NULL -/* ZREMRANGEBYSCORE hints */ -#define ZREMRANGEBYSCORE_Hints NULL +/* ZREMRANGEBYSCORE tips */ +#define ZREMRANGEBYSCORE_tips NULL /* ZREMRANGEBYSCORE argument table */ struct redisCommandArg ZREMRANGEBYSCORE_Args[] = { @@ -5374,8 +5643,8 @@ struct redisCommandArg ZREMRANGEBYSCORE_Args[] = { /* ZREVRANGE history */ #define ZREVRANGE_History NULL -/* ZREVRANGE hints */ -#define ZREVRANGE_Hints NULL +/* ZREVRANGE tips */ +#define ZREVRANGE_tips NULL /* ZREVRANGE argument table */ struct redisCommandArg ZREVRANGE_Args[] = { @@ -5391,8 +5660,8 @@ struct redisCommandArg ZREVRANGE_Args[] = { /* ZREVRANGEBYLEX history */ #define ZREVRANGEBYLEX_History NULL -/* ZREVRANGEBYLEX hints */ -#define ZREVRANGEBYLEX_Hints NULL +/* ZREVRANGEBYLEX tips */ +#define ZREVRANGEBYLEX_tips NULL /* ZREVRANGEBYLEX offset_count argument table */ struct redisCommandArg ZREVRANGEBYLEX_offset_count_Subargs[] = { @@ -5418,8 +5687,8 @@ commandHistory ZREVRANGEBYSCORE_History[] = { {0} }; -/* ZREVRANGEBYSCORE hints */ -#define ZREVRANGEBYSCORE_Hints NULL +/* ZREVRANGEBYSCORE tips */ +#define ZREVRANGEBYSCORE_tips NULL /* ZREVRANGEBYSCORE offset_count argument table */ struct redisCommandArg ZREVRANGEBYSCORE_offset_count_Subargs[] = { @@ -5443,8 +5712,8 @@ struct redisCommandArg ZREVRANGEBYSCORE_Args[] = { /* ZREVRANK history */ #define ZREVRANK_History NULL -/* ZREVRANK hints */ -#define ZREVRANK_Hints NULL +/* ZREVRANK tips */ +#define ZREVRANK_tips NULL /* ZREVRANK argument table */ struct redisCommandArg ZREVRANK_Args[] = { @@ -5458,8 +5727,11 @@ struct redisCommandArg ZREVRANK_Args[] = { /* ZSCAN history */ #define ZSCAN_History NULL -/* ZSCAN hints */ -#define ZSCAN_Hints NULL +/* ZSCAN tips */ +const char *ZSCAN_tips[] = { +"nondeterministic_output", +NULL +}; /* ZSCAN argument table */ struct redisCommandArg ZSCAN_Args[] = { @@ -5475,8 +5747,8 @@ struct redisCommandArg ZSCAN_Args[] = { /* ZSCORE history */ #define ZSCORE_History NULL -/* ZSCORE hints */ -#define ZSCORE_Hints NULL +/* ZSCORE tips */ +#define ZSCORE_tips NULL /* ZSCORE argument table */ struct redisCommandArg ZSCORE_Args[] = { @@ -5490,8 +5762,8 @@ struct redisCommandArg ZSCORE_Args[] = { /* ZUNION history */ #define ZUNION_History NULL -/* ZUNION hints */ -#define ZUNION_Hints NULL +/* ZUNION tips */ +#define ZUNION_tips NULL /* ZUNION aggregate argument table */ struct redisCommandArg ZUNION_aggregate_Subargs[] = { @@ -5516,8 +5788,8 @@ struct redisCommandArg ZUNION_Args[] = { /* ZUNIONSTORE history */ #define ZUNIONSTORE_History NULL -/* ZUNIONSTORE hints */ -#define ZUNIONSTORE_Hints NULL +/* ZUNIONSTORE tips */ +#define ZUNIONSTORE_tips NULL /* ZUNIONSTORE aggregate argument table */ struct redisCommandArg ZUNIONSTORE_aggregate_Subargs[] = { @@ -5542,8 +5814,8 @@ struct redisCommandArg ZUNIONSTORE_Args[] = { /* XACK history */ #define XACK_History NULL -/* XACK hints */ -#define XACK_Hints NULL +/* XACK tips */ +#define XACK_tips NULL /* XACK argument table */ struct redisCommandArg XACK_Args[] = { @@ -5562,8 +5834,11 @@ commandHistory XADD_History[] = { {0} }; -/* XADD hints */ -#define XADD_Hints NULL +/* XADD tips */ +const char *XADD_tips[] = { +"nondeterministic_output", +NULL +}; /* XADD trim strategy argument table */ struct redisCommandArg XADD_trim_strategy_Subargs[] = { @@ -5617,8 +5892,11 @@ struct redisCommandArg XADD_Args[] = { /* XAUTOCLAIM history */ #define XAUTOCLAIM_History NULL -/* XAUTOCLAIM hints */ -#define XAUTOCLAIM_Hints NULL +/* XAUTOCLAIM tips */ +const char *XAUTOCLAIM_tips[] = { +"nondeterministic_output", +NULL +}; /* XAUTOCLAIM argument table */ struct redisCommandArg XAUTOCLAIM_Args[] = { @@ -5637,8 +5915,11 @@ struct redisCommandArg XAUTOCLAIM_Args[] = { /* XCLAIM history */ #define XCLAIM_History NULL -/* XCLAIM hints */ -#define XCLAIM_Hints NULL +/* XCLAIM tips */ +const char *XCLAIM_tips[] = { +"nondeterministic_output", +NULL +}; /* XCLAIM argument table */ struct redisCommandArg XCLAIM_Args[] = { @@ -5660,8 +5941,8 @@ struct redisCommandArg XCLAIM_Args[] = { /* XDEL history */ #define XDEL_History NULL -/* XDEL hints */ -#define XDEL_Hints NULL +/* XDEL tips */ +#define XDEL_tips NULL /* XDEL argument table */ struct redisCommandArg XDEL_Args[] = { @@ -5675,8 +5956,8 @@ struct redisCommandArg XDEL_Args[] = { /* XGROUP CREATE history */ #define XGROUP_CREATE_History NULL -/* XGROUP CREATE hints */ -#define XGROUP_CREATE_Hints NULL +/* XGROUP CREATE tips */ +#define XGROUP_CREATE_tips NULL /* XGROUP CREATE id argument table */ struct redisCommandArg XGROUP_CREATE_id_Subargs[] = { @@ -5699,8 +5980,8 @@ struct redisCommandArg XGROUP_CREATE_Args[] = { /* XGROUP CREATECONSUMER history */ #define XGROUP_CREATECONSUMER_History NULL -/* XGROUP CREATECONSUMER hints */ -#define XGROUP_CREATECONSUMER_Hints NULL +/* XGROUP CREATECONSUMER tips */ +#define XGROUP_CREATECONSUMER_tips NULL /* XGROUP CREATECONSUMER argument table */ struct redisCommandArg XGROUP_CREATECONSUMER_Args[] = { @@ -5715,8 +5996,8 @@ struct redisCommandArg XGROUP_CREATECONSUMER_Args[] = { /* XGROUP DELCONSUMER history */ #define XGROUP_DELCONSUMER_History NULL -/* XGROUP DELCONSUMER hints */ -#define XGROUP_DELCONSUMER_Hints NULL +/* XGROUP DELCONSUMER tips */ +#define XGROUP_DELCONSUMER_tips NULL /* XGROUP DELCONSUMER argument table */ struct redisCommandArg XGROUP_DELCONSUMER_Args[] = { @@ -5731,8 +6012,8 @@ struct redisCommandArg XGROUP_DELCONSUMER_Args[] = { /* XGROUP DESTROY history */ #define XGROUP_DESTROY_History NULL -/* XGROUP DESTROY hints */ -#define XGROUP_DESTROY_Hints NULL +/* XGROUP DESTROY tips */ +#define XGROUP_DESTROY_tips NULL /* XGROUP DESTROY argument table */ struct redisCommandArg XGROUP_DESTROY_Args[] = { @@ -5746,16 +6027,16 @@ struct redisCommandArg XGROUP_DESTROY_Args[] = { /* XGROUP HELP history */ #define XGROUP_HELP_History NULL -/* XGROUP HELP hints */ -#define XGROUP_HELP_Hints NULL +/* XGROUP HELP tips */ +#define XGROUP_HELP_tips NULL /********** XGROUP SETID ********************/ /* XGROUP SETID history */ #define XGROUP_SETID_History NULL -/* XGROUP SETID hints */ -#define XGROUP_SETID_Hints NULL +/* XGROUP SETID tips */ +#define XGROUP_SETID_tips NULL /* XGROUP SETID id argument table */ struct redisCommandArg XGROUP_SETID_id_Subargs[] = { @@ -5774,12 +6055,12 @@ struct redisCommandArg XGROUP_SETID_Args[] = { /* XGROUP command table */ struct redisCommand XGROUP_Subcommands[] = { -{"create","Create a consumer group.","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_CREATE_History,XGROUP_CREATE_Hints,xgroupCommand,-5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XGROUP_CREATE_Args}, -{"createconsumer","Create a consumer in a consumer group.","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_CREATECONSUMER_History,XGROUP_CREATECONSUMER_Hints,xgroupCommand,5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XGROUP_CREATECONSUMER_Args}, -{"delconsumer","Delete a consumer from a consumer group.","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_DELCONSUMER_History,XGROUP_DELCONSUMER_Hints,xgroupCommand,5,CMD_WRITE,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XGROUP_DELCONSUMER_Args}, -{"destroy","Destroy a consumer group.","O(N) where N is the number of entries in the group's pending entries list (PEL).","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_DESTROY_History,XGROUP_DESTROY_Hints,xgroupCommand,4,CMD_WRITE,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XGROUP_DESTROY_Args}, -{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_HELP_History,XGROUP_HELP_Hints,xgroupCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_STREAM}, -{"setid","Set a consumer group to an arbitrary last delivered ID value.","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_SETID_History,XGROUP_SETID_Hints,xgroupCommand,5,CMD_WRITE,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XGROUP_SETID_Args}, +{"create","Create a consumer group.","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_CREATE_History,XGROUP_CREATE_tips,xgroupCommand,-5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XGROUP_CREATE_Args}, +{"createconsumer","Create a consumer in a consumer group.","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_CREATECONSUMER_History,XGROUP_CREATECONSUMER_tips,xgroupCommand,5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XGROUP_CREATECONSUMER_Args}, +{"delconsumer","Delete a consumer from a consumer group.","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_DELCONSUMER_History,XGROUP_DELCONSUMER_tips,xgroupCommand,5,CMD_WRITE,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XGROUP_DELCONSUMER_Args}, +{"destroy","Destroy a consumer group.","O(N) where N is the number of entries in the group's pending entries list (PEL).","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_DESTROY_History,XGROUP_DESTROY_tips,xgroupCommand,4,CMD_WRITE,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XGROUP_DESTROY_Args}, +{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_HELP_History,XGROUP_HELP_tips,xgroupCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_STREAM}, +{"setid","Set a consumer group to an arbitrary last delivered ID value.","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_SETID_History,XGROUP_SETID_tips,xgroupCommand,5,CMD_WRITE,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XGROUP_SETID_Args}, {0} }; @@ -5788,16 +6069,19 @@ struct redisCommand XGROUP_Subcommands[] = { /* XGROUP history */ #define XGROUP_History NULL -/* XGROUP hints */ -#define XGROUP_Hints NULL +/* XGROUP tips */ +#define XGROUP_tips NULL /********** XINFO CONSUMERS ********************/ /* XINFO CONSUMERS history */ #define XINFO_CONSUMERS_History NULL -/* XINFO CONSUMERS hints */ -#define XINFO_CONSUMERS_Hints NULL +/* XINFO CONSUMERS tips */ +const char *XINFO_CONSUMERS_tips[] = { +"nondeterministic_output", +NULL +}; /* XINFO CONSUMERS argument table */ struct redisCommandArg XINFO_CONSUMERS_Args[] = { @@ -5811,8 +6095,8 @@ struct redisCommandArg XINFO_CONSUMERS_Args[] = { /* XINFO GROUPS history */ #define XINFO_GROUPS_History NULL -/* XINFO GROUPS hints */ -#define XINFO_GROUPS_Hints NULL +/* XINFO GROUPS tips */ +#define XINFO_GROUPS_tips NULL /* XINFO GROUPS argument table */ struct redisCommandArg XINFO_GROUPS_Args[] = { @@ -5825,16 +6109,16 @@ struct redisCommandArg XINFO_GROUPS_Args[] = { /* XINFO HELP history */ #define XINFO_HELP_History NULL -/* XINFO HELP hints */ -#define XINFO_HELP_Hints NULL +/* XINFO HELP tips */ +#define XINFO_HELP_tips NULL /********** XINFO STREAM ********************/ /* XINFO STREAM history */ #define XINFO_STREAM_History NULL -/* XINFO STREAM hints */ -#define XINFO_STREAM_Hints NULL +/* XINFO STREAM tips */ +#define XINFO_STREAM_tips NULL /* XINFO STREAM full argument table */ struct redisCommandArg XINFO_STREAM_full_Subargs[] = { @@ -5851,10 +6135,10 @@ struct redisCommandArg XINFO_STREAM_Args[] = { /* XINFO command table */ struct redisCommand XINFO_Subcommands[] = { -{"consumers","List the consumers in a consumer group","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XINFO_CONSUMERS_History,XINFO_CONSUMERS_Hints,xinfoCommand,4,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XINFO_CONSUMERS_Args}, -{"groups","List the consumer groups of a stream","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XINFO_GROUPS_History,XINFO_GROUPS_Hints,xinfoCommand,3,CMD_READONLY,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XINFO_GROUPS_Args}, -{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XINFO_HELP_History,XINFO_HELP_Hints,xinfoCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_STREAM}, -{"stream","Get information about a stream","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XINFO_STREAM_History,XINFO_STREAM_Hints,xinfoCommand,-3,CMD_READONLY,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XINFO_STREAM_Args}, +{"consumers","List the consumers in a consumer group","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XINFO_CONSUMERS_History,XINFO_CONSUMERS_tips,xinfoCommand,4,CMD_READONLY,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XINFO_CONSUMERS_Args}, +{"groups","List the consumer groups of a stream","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XINFO_GROUPS_History,XINFO_GROUPS_tips,xinfoCommand,3,CMD_READONLY,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XINFO_GROUPS_Args}, +{"help","Show helpful text about the different subcommands","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XINFO_HELP_History,XINFO_HELP_tips,xinfoCommand,2,CMD_LOADING|CMD_STALE,ACL_CATEGORY_STREAM}, +{"stream","Get information about a stream","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XINFO_STREAM_History,XINFO_STREAM_tips,xinfoCommand,-3,CMD_READONLY,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XINFO_STREAM_Args}, {0} }; @@ -5863,16 +6147,16 @@ struct redisCommand XINFO_Subcommands[] = { /* XINFO history */ #define XINFO_History NULL -/* XINFO hints */ -#define XINFO_Hints NULL +/* XINFO tips */ +#define XINFO_tips NULL /********** XLEN ********************/ /* XLEN history */ #define XLEN_History NULL -/* XLEN hints */ -#define XLEN_Hints NULL +/* XLEN tips */ +#define XLEN_tips NULL /* XLEN argument table */ struct redisCommandArg XLEN_Args[] = { @@ -5888,8 +6172,11 @@ commandHistory XPENDING_History[] = { {0} }; -/* XPENDING hints */ -#define XPENDING_Hints NULL +/* XPENDING tips */ +const char *XPENDING_tips[] = { +"nondeterministic_output", +NULL +}; /* XPENDING filters argument table */ struct redisCommandArg XPENDING_filters_Subargs[] = { @@ -5917,8 +6204,8 @@ commandHistory XRANGE_History[] = { {0} }; -/* XRANGE hints */ -#define XRANGE_Hints NULL +/* XRANGE tips */ +#define XRANGE_tips NULL /* XRANGE argument table */ struct redisCommandArg XRANGE_Args[] = { @@ -5934,8 +6221,8 @@ struct redisCommandArg XRANGE_Args[] = { /* XREAD history */ #define XREAD_History NULL -/* XREAD hints */ -#define XREAD_Hints NULL +/* XREAD tips */ +#define XREAD_tips NULL /* XREAD streams argument table */ struct redisCommandArg XREAD_streams_Subargs[] = { @@ -5957,8 +6244,8 @@ struct redisCommandArg XREAD_Args[] = { /* XREADGROUP history */ #define XREADGROUP_History NULL -/* XREADGROUP hints */ -#define XREADGROUP_Hints NULL +/* XREADGROUP tips */ +#define XREADGROUP_tips NULL /* XREADGROUP group_consumer argument table */ struct redisCommandArg XREADGROUP_group_consumer_Subargs[] = { @@ -5992,8 +6279,8 @@ commandHistory XREVRANGE_History[] = { {0} }; -/* XREVRANGE hints */ -#define XREVRANGE_Hints NULL +/* XREVRANGE tips */ +#define XREVRANGE_tips NULL /* XREVRANGE argument table */ struct redisCommandArg XREVRANGE_Args[] = { @@ -6009,8 +6296,8 @@ struct redisCommandArg XREVRANGE_Args[] = { /* XSETID history */ #define XSETID_History NULL -/* XSETID hints */ -#define XSETID_Hints NULL +/* XSETID tips */ +#define XSETID_tips NULL /* XSETID argument table */ struct redisCommandArg XSETID_Args[] = { @@ -6027,8 +6314,11 @@ commandHistory XTRIM_History[] = { {0} }; -/* XTRIM hints */ -#define XTRIM_Hints NULL +/* XTRIM tips */ +const char *XTRIM_tips[] = { +"nondeterministic_output", +NULL +}; /* XTRIM trim strategy argument table */ struct redisCommandArg XTRIM_trim_strategy_Subargs[] = { @@ -6065,8 +6355,8 @@ struct redisCommandArg XTRIM_Args[] = { /* APPEND history */ #define APPEND_History NULL -/* APPEND hints */ -#define APPEND_Hints NULL +/* APPEND tips */ +#define APPEND_tips NULL /* APPEND argument table */ struct redisCommandArg APPEND_Args[] = { @@ -6080,8 +6370,8 @@ struct redisCommandArg APPEND_Args[] = { /* DECR history */ #define DECR_History NULL -/* DECR hints */ -#define DECR_Hints NULL +/* DECR tips */ +#define DECR_tips NULL /* DECR argument table */ struct redisCommandArg DECR_Args[] = { @@ -6094,8 +6384,8 @@ struct redisCommandArg DECR_Args[] = { /* DECRBY history */ #define DECRBY_History NULL -/* DECRBY hints */ -#define DECRBY_Hints NULL +/* DECRBY tips */ +#define DECRBY_tips NULL /* DECRBY argument table */ struct redisCommandArg DECRBY_Args[] = { @@ -6109,8 +6399,8 @@ struct redisCommandArg DECRBY_Args[] = { /* GET history */ #define GET_History NULL -/* GET hints */ -#define GET_Hints NULL +/* GET tips */ +#define GET_tips NULL /* GET argument table */ struct redisCommandArg GET_Args[] = { @@ -6123,8 +6413,8 @@ struct redisCommandArg GET_Args[] = { /* GETDEL history */ #define GETDEL_History NULL -/* GETDEL hints */ -#define GETDEL_Hints NULL +/* GETDEL tips */ +#define GETDEL_tips NULL /* GETDEL argument table */ struct redisCommandArg GETDEL_Args[] = { @@ -6137,8 +6427,8 @@ struct redisCommandArg GETDEL_Args[] = { /* GETEX history */ #define GETEX_History NULL -/* GETEX hints */ -#define GETEX_Hints NULL +/* GETEX tips */ +#define GETEX_tips NULL /* GETEX expiration argument table */ struct redisCommandArg GETEX_expiration_Subargs[] = { @@ -6162,8 +6452,8 @@ struct redisCommandArg GETEX_Args[] = { /* GETRANGE history */ #define GETRANGE_History NULL -/* GETRANGE hints */ -#define GETRANGE_Hints NULL +/* GETRANGE tips */ +#define GETRANGE_tips NULL /* GETRANGE argument table */ struct redisCommandArg GETRANGE_Args[] = { @@ -6178,8 +6468,8 @@ struct redisCommandArg GETRANGE_Args[] = { /* GETSET history */ #define GETSET_History NULL -/* GETSET hints */ -#define GETSET_Hints NULL +/* GETSET tips */ +#define GETSET_tips NULL /* GETSET argument table */ struct redisCommandArg GETSET_Args[] = { @@ -6193,8 +6483,8 @@ struct redisCommandArg GETSET_Args[] = { /* INCR history */ #define INCR_History NULL -/* INCR hints */ -#define INCR_Hints NULL +/* INCR tips */ +#define INCR_tips NULL /* INCR argument table */ struct redisCommandArg INCR_Args[] = { @@ -6207,8 +6497,8 @@ struct redisCommandArg INCR_Args[] = { /* INCRBY history */ #define INCRBY_History NULL -/* INCRBY hints */ -#define INCRBY_Hints NULL +/* INCRBY tips */ +#define INCRBY_tips NULL /* INCRBY argument table */ struct redisCommandArg INCRBY_Args[] = { @@ -6222,8 +6512,8 @@ struct redisCommandArg INCRBY_Args[] = { /* INCRBYFLOAT history */ #define INCRBYFLOAT_History NULL -/* INCRBYFLOAT hints */ -#define INCRBYFLOAT_Hints NULL +/* INCRBYFLOAT tips */ +#define INCRBYFLOAT_tips NULL /* INCRBYFLOAT argument table */ struct redisCommandArg INCRBYFLOAT_Args[] = { @@ -6237,8 +6527,8 @@ struct redisCommandArg INCRBYFLOAT_Args[] = { /* LCS history */ #define LCS_History NULL -/* LCS hints */ -#define LCS_Hints NULL +/* LCS tips */ +#define LCS_tips NULL /* LCS argument table */ struct redisCommandArg LCS_Args[] = { @@ -6256,8 +6546,11 @@ struct redisCommandArg LCS_Args[] = { /* MGET history */ #define MGET_History NULL -/* MGET hints */ -#define MGET_Hints NULL +/* MGET tips */ +const char *MGET_tips[] = { +"request_policy:multi_shard", +NULL +}; /* MGET argument table */ struct redisCommandArg MGET_Args[] = { @@ -6270,8 +6563,12 @@ struct redisCommandArg MGET_Args[] = { /* MSET history */ #define MSET_History NULL -/* MSET hints */ -#define MSET_Hints NULL +/* MSET tips */ +const char *MSET_tips[] = { +"request_policy:multi_shard", +"response_policy:all_succeeded", +NULL +}; /* MSET key_value argument table */ struct redisCommandArg MSET_key_value_Subargs[] = { @@ -6291,8 +6588,8 @@ struct redisCommandArg MSET_Args[] = { /* MSETNX history */ #define MSETNX_History NULL -/* MSETNX hints */ -#define MSETNX_Hints NULL +/* MSETNX tips */ +#define MSETNX_tips NULL /* MSETNX key_value argument table */ struct redisCommandArg MSETNX_key_value_Subargs[] = { @@ -6312,8 +6609,8 @@ struct redisCommandArg MSETNX_Args[] = { /* PSETEX history */ #define PSETEX_History NULL -/* PSETEX hints */ -#define PSETEX_Hints NULL +/* PSETEX tips */ +#define PSETEX_tips NULL /* PSETEX argument table */ struct redisCommandArg PSETEX_Args[] = { @@ -6334,8 +6631,8 @@ commandHistory SET_History[] = { {0} }; -/* SET hints */ -#define SET_Hints NULL +/* SET tips */ +#define SET_tips NULL /* SET expiration argument table */ struct redisCommandArg SET_expiration_Subargs[] = { @@ -6369,8 +6666,8 @@ struct redisCommandArg SET_Args[] = { /* SETEX history */ #define SETEX_History NULL -/* SETEX hints */ -#define SETEX_Hints NULL +/* SETEX tips */ +#define SETEX_tips NULL /* SETEX argument table */ struct redisCommandArg SETEX_Args[] = { @@ -6385,8 +6682,8 @@ struct redisCommandArg SETEX_Args[] = { /* SETNX history */ #define SETNX_History NULL -/* SETNX hints */ -#define SETNX_Hints NULL +/* SETNX tips */ +#define SETNX_tips NULL /* SETNX argument table */ struct redisCommandArg SETNX_Args[] = { @@ -6400,8 +6697,8 @@ struct redisCommandArg SETNX_Args[] = { /* SETRANGE history */ #define SETRANGE_History NULL -/* SETRANGE hints */ -#define SETRANGE_Hints NULL +/* SETRANGE tips */ +#define SETRANGE_tips NULL /* SETRANGE argument table */ struct redisCommandArg SETRANGE_Args[] = { @@ -6416,8 +6713,8 @@ struct redisCommandArg SETRANGE_Args[] = { /* STRLEN history */ #define STRLEN_History NULL -/* STRLEN hints */ -#define STRLEN_Hints NULL +/* STRLEN tips */ +#define STRLEN_tips NULL /* STRLEN argument table */ struct redisCommandArg STRLEN_Args[] = { @@ -6430,8 +6727,8 @@ struct redisCommandArg STRLEN_Args[] = { /* SUBSTR history */ #define SUBSTR_History NULL -/* SUBSTR hints */ -#define SUBSTR_Hints NULL +/* SUBSTR tips */ +#define SUBSTR_tips NULL /* SUBSTR argument table */ struct redisCommandArg SUBSTR_Args[] = { @@ -6446,40 +6743,40 @@ struct redisCommandArg SUBSTR_Args[] = { /* DISCARD history */ #define DISCARD_History NULL -/* DISCARD hints */ -#define DISCARD_Hints NULL +/* DISCARD tips */ +#define DISCARD_tips NULL /********** EXEC ********************/ /* EXEC history */ #define EXEC_History NULL -/* EXEC hints */ -#define EXEC_Hints NULL +/* EXEC tips */ +#define EXEC_tips NULL /********** MULTI ********************/ /* MULTI history */ #define MULTI_History NULL -/* MULTI hints */ -#define MULTI_Hints NULL +/* MULTI tips */ +#define MULTI_tips NULL /********** UNWATCH ********************/ /* UNWATCH history */ #define UNWATCH_History NULL -/* UNWATCH hints */ -#define UNWATCH_Hints NULL +/* UNWATCH tips */ +#define UNWATCH_tips NULL /********** WATCH ********************/ /* WATCH history */ #define WATCH_History NULL -/* WATCH hints */ -#define WATCH_Hints NULL +/* WATCH tips */ +#define WATCH_tips NULL /* WATCH argument table */ struct redisCommandArg WATCH_Args[] = { @@ -6490,262 +6787,262 @@ struct redisCommandArg WATCH_Args[] = { /* Main command table */ struct redisCommand redisCommandTable[] = { /* bitmap */ -{"bitcount","Count set bits in a string","O(N)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,BITCOUNT_History,BITCOUNT_Hints,bitcountCommand,-2,CMD_READONLY,ACL_CATEGORY_BITMAP,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BITCOUNT_Args}, -{"bitfield","Perform arbitrary bitfield integer operations on strings","O(1) for each subcommand specified","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,BITFIELD_History,BITFIELD_Hints,bitfieldCommand,-2,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_BITMAP,{{CMD_KEY_RW|CMD_KEY_UPDATE|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BITFIELD_Args}, -{"bitfield_ro","Perform arbitrary bitfield integer operations on strings. Read-only variant of BITFIELD","O(1) for each subcommand specified","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,BITFIELD_RO_History,BITFIELD_RO_Hints,bitfieldroCommand,-2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_BITMAP,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BITFIELD_RO_Args}, -{"bitop","Perform bitwise operations between strings","O(N)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,BITOP_History,BITOP_Hints,bitopCommand,-4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_BITMAP,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={3},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=BITOP_Args}, -{"bitpos","Find first bit set or clear in a string","O(N)","2.8.7",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,BITPOS_History,BITPOS_Hints,bitposCommand,-3,CMD_READONLY,ACL_CATEGORY_BITMAP,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BITPOS_Args}, -{"getbit","Returns the bit value at offset in the string value stored at key","O(1)","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,GETBIT_History,GETBIT_Hints,getbitCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_BITMAP,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GETBIT_Args}, -{"setbit","Sets or clears the bit at offset in the string value stored at key","O(1)","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,SETBIT_History,SETBIT_Hints,setbitCommand,4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_BITMAP,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SETBIT_Args}, +{"bitcount","Count set bits in a string","O(N)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,BITCOUNT_History,BITCOUNT_tips,bitcountCommand,-2,CMD_READONLY,ACL_CATEGORY_BITMAP,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BITCOUNT_Args}, +{"bitfield","Perform arbitrary bitfield integer operations on strings","O(1) for each subcommand specified","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,BITFIELD_History,BITFIELD_tips,bitfieldCommand,-2,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_BITMAP,{{CMD_KEY_RW|CMD_KEY_UPDATE|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BITFIELD_Args}, +{"bitfield_ro","Perform arbitrary bitfield integer operations on strings. Read-only variant of BITFIELD","O(1) for each subcommand specified","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,BITFIELD_RO_History,BITFIELD_RO_tips,bitfieldroCommand,-2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_BITMAP,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BITFIELD_RO_Args}, +{"bitop","Perform bitwise operations between strings","O(N)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,BITOP_History,BITOP_tips,bitopCommand,-4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_BITMAP,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={3},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=BITOP_Args}, +{"bitpos","Find first bit set or clear in a string","O(N)","2.8.7",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,BITPOS_History,BITPOS_tips,bitposCommand,-3,CMD_READONLY,ACL_CATEGORY_BITMAP,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BITPOS_Args}, +{"getbit","Returns the bit value at offset in the string value stored at key","O(1)","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,GETBIT_History,GETBIT_tips,getbitCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_BITMAP,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GETBIT_Args}, +{"setbit","Sets or clears the bit at offset in the string value stored at key","O(1)","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_BITMAP,SETBIT_History,SETBIT_tips,setbitCommand,4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_BITMAP,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SETBIT_Args}, /* cluster */ -{"asking","Sent by cluster clients after an -ASK redirect","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,ASKING_History,ASKING_Hints,askingCommand,1,CMD_FAST,ACL_CATEGORY_CONNECTION}, -{"cluster","A container for cluster commands","Depends on subcommand.","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_History,CLUSTER_Hints,NULL,-2,0,0,.subcommands=CLUSTER_Subcommands}, -{"readonly","Enables read queries for a connection to a cluster replica node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,READONLY_History,READONLY_Hints,readonlyCommand,1,CMD_FAST|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, -{"readwrite","Disables read queries for a connection to a cluster replica node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,READWRITE_History,READWRITE_Hints,readwriteCommand,1,CMD_FAST|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"asking","Sent by cluster clients after an -ASK redirect","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,ASKING_History,ASKING_tips,askingCommand,1,CMD_FAST,ACL_CATEGORY_CONNECTION}, +{"cluster","A container for cluster commands","Depends on subcommand.","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,CLUSTER_History,CLUSTER_tips,NULL,-2,0,0,.subcommands=CLUSTER_Subcommands}, +{"readonly","Enables read queries for a connection to a cluster replica node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,READONLY_History,READONLY_tips,readonlyCommand,1,CMD_FAST|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, +{"readwrite","Disables read queries for a connection to a cluster replica node","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CLUSTER,READWRITE_History,READWRITE_tips,readwriteCommand,1,CMD_FAST|CMD_LOADING|CMD_STALE,ACL_CATEGORY_CONNECTION}, /* connection */ -{"auth","Authenticate to the server","O(N) where N is the number of passwords defined for the user","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,AUTH_History,AUTH_Hints,authCommand,-2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_NO_AUTH|CMD_SENTINEL|CMD_ALLOW_BUSY,ACL_CATEGORY_CONNECTION,.args=AUTH_Args}, -{"client","A container for client connection commands","Depends on subcommand.","2.4.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_History,CLIENT_Hints,NULL,-2,CMD_SENTINEL,0,.subcommands=CLIENT_Subcommands}, -{"echo","Echo the given string","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,ECHO_History,ECHO_Hints,echoCommand,2,CMD_FAST,ACL_CATEGORY_CONNECTION,.args=ECHO_Args}, -{"hello","Handshake with Redis","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,HELLO_History,HELLO_Hints,helloCommand,-1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_NO_AUTH|CMD_SENTINEL|CMD_ALLOW_BUSY,ACL_CATEGORY_CONNECTION,.args=HELLO_Args}, -{"ping","Ping the server","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,PING_History,PING_Hints,pingCommand,-1,CMD_FAST|CMD_SENTINEL,ACL_CATEGORY_CONNECTION,.args=PING_Args}, -{"quit","Close the connection","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,QUIT_History,QUIT_Hints,quitCommand,-1,CMD_ALLOW_BUSY|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_NO_AUTH,ACL_CATEGORY_CONNECTION}, -{"reset","Reset the connection","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,RESET_History,RESET_Hints,resetCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_NO_AUTH|CMD_ALLOW_BUSY,ACL_CATEGORY_CONNECTION}, -{"select","Change the selected database for the current connection","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,SELECT_History,SELECT_Hints,selectCommand,2,CMD_LOADING|CMD_STALE|CMD_FAST,ACL_CATEGORY_CONNECTION,.args=SELECT_Args}, +{"auth","Authenticate to the server","O(N) where N is the number of passwords defined for the user","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,AUTH_History,AUTH_tips,authCommand,-2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_NO_AUTH|CMD_SENTINEL|CMD_ALLOW_BUSY,ACL_CATEGORY_CONNECTION,.args=AUTH_Args}, +{"client","A container for client connection commands","Depends on subcommand.","2.4.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,CLIENT_History,CLIENT_tips,NULL,-2,CMD_SENTINEL,0,.subcommands=CLIENT_Subcommands}, +{"echo","Echo the given string","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,ECHO_History,ECHO_tips,echoCommand,2,CMD_FAST,ACL_CATEGORY_CONNECTION,.args=ECHO_Args}, +{"hello","Handshake with Redis","O(1)","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,HELLO_History,HELLO_tips,helloCommand,-1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_NO_AUTH|CMD_SENTINEL|CMD_ALLOW_BUSY,ACL_CATEGORY_CONNECTION,.args=HELLO_Args}, +{"ping","Ping the server","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,PING_History,PING_tips,pingCommand,-1,CMD_FAST|CMD_SENTINEL,ACL_CATEGORY_CONNECTION,.args=PING_Args}, +{"quit","Close the connection","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,QUIT_History,QUIT_tips,quitCommand,-1,CMD_ALLOW_BUSY|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_NO_AUTH,ACL_CATEGORY_CONNECTION}, +{"reset","Reset the connection","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,RESET_History,RESET_tips,resetCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_NO_AUTH|CMD_ALLOW_BUSY,ACL_CATEGORY_CONNECTION}, +{"select","Change the selected database for the current connection","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_CONNECTION,SELECT_History,SELECT_tips,selectCommand,2,CMD_LOADING|CMD_STALE|CMD_FAST,ACL_CATEGORY_CONNECTION,.args=SELECT_Args}, /* generic */ -{"copy","Copy a key","O(N) worst case for collections, where N is the number of nested items. O(1) for string values.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,COPY_History,COPY_Hints,copyCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=COPY_Args}, -{"del","Delete a key","O(N) where N is the number of keys that will be removed. When a key to remove holds a value other than a string, the individual complexity for this key is O(M) where M is the number of elements in the list, set, sorted set or hash. Removing a single key that holds a string value is O(1).","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,DEL_History,DEL_Hints,delCommand,-2,CMD_WRITE,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RM|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=DEL_Args}, -{"dump","Return a serialized version of the value stored at the specified key.","O(1) to access the key and additional O(N*M) to serialize it, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1).","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,DUMP_History,DUMP_Hints,dumpCommand,2,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=DUMP_Args}, -{"exists","Determine if a key exists","O(N) where N is the number of keys to check.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,EXISTS_History,EXISTS_Hints,existsCommand,-2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=EXISTS_Args}, -{"expire","Set a key's time to live in seconds","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,EXPIRE_History,EXPIRE_Hints,expireCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=EXPIRE_Args}, -{"expireat","Set the expiration for a key as a UNIX timestamp","O(1)","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,EXPIREAT_History,EXPIREAT_Hints,expireatCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=EXPIREAT_Args}, -{"expiretime","Get the expiration Unix timestamp for a key","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,EXPIRETIME_History,EXPIRETIME_Hints,expiretimeCommand,2,CMD_READONLY|CMD_RANDOM|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=EXPIRETIME_Args}, -{"keys","Find all keys matching the given pattern","O(N) with N being the number of keys in the database, under the assumption that the key names in the database and the given pattern have limited length.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,KEYS_History,KEYS_Hints,keysCommand,2,CMD_READONLY|CMD_SORT_FOR_SCRIPT,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,.args=KEYS_Args}, -{"migrate","Atomically transfer a key from a Redis instance to another one.","This command actually executes a DUMP+DEL in the source instance, and a RESTORE in the target instance. See the pages of these commands for time complexity. Also an O(N) data transfer between the two instances is performed.","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,MIGRATE_History,MIGRATE_Hints,migrateCommand,-6,CMD_WRITE|CMD_RANDOM,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={3},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE|CMD_KEY_INCOMPLETE,KSPEC_BS_KEYWORD,.bs.keyword={"KEYS",-2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},migrateGetKeys,.args=MIGRATE_Args}, -{"move","Move a key to another database","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,MOVE_History,MOVE_Hints,moveCommand,3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=MOVE_Args}, -{"object","A container for object introspection commands","Depends on subcommand.","2.2.3",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_History,OBJECT_Hints,NULL,-2,0,0,.subcommands=OBJECT_Subcommands}, -{"persist","Remove the expiration from a key","O(1)","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,PERSIST_History,PERSIST_Hints,persistCommand,2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PERSIST_Args}, -{"pexpire","Set a key's time to live in milliseconds","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,PEXPIRE_History,PEXPIRE_Hints,pexpireCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PEXPIRE_Args}, -{"pexpireat","Set the expiration for a key as a UNIX timestamp specified in milliseconds","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,PEXPIREAT_History,PEXPIREAT_Hints,pexpireatCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PEXPIREAT_Args}, -{"pexpiretime","Get the expiration Unix timestamp for a key in milliseconds","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,PEXPIRETIME_History,PEXPIRETIME_Hints,pexpiretimeCommand,2,CMD_READONLY|CMD_RANDOM|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PEXPIRETIME_Args}, -{"pttl","Get the time to live for a key in milliseconds","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,PTTL_History,PTTL_Hints,pttlCommand,2,CMD_READONLY|CMD_RANDOM|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PTTL_Args}, -{"randomkey","Return a random key from the keyspace","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,RANDOMKEY_History,RANDOMKEY_Hints,randomkeyCommand,1,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_KEYSPACE}, -{"rename","Rename a key","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,RENAME_History,RENAME_Hints,renameCommand,3,CMD_WRITE,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RENAME_Args}, -{"renamenx","Rename a key, only if the new key does not exist","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,RENAMENX_History,RENAMENX_Hints,renamenxCommand,3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RENAMENX_Args}, -{"restore","Create a key using the provided serialized value, previously obtained using DUMP.","O(1) to create the new key and additional O(N*M) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). However for sorted set values the complexity is O(N*M*log(N)) because inserting values into sorted sets is O(log(N)).","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,RESTORE_History,RESTORE_Hints,restoreCommand,-4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RESTORE_Args}, -{"scan","Incrementally iterate the keys space","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,SCAN_History,SCAN_Hints,scanCommand,-2,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_KEYSPACE,.args=SCAN_Args}, -{"sort","Sort the elements in a list, set or sorted set","O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of returned elements. When the elements are not sorted, complexity is O(N).","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,SORT_History,SORT_Hints,sortCommand,-2,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SET|ACL_CATEGORY_SORTEDSET|ACL_CATEGORY_LIST|ACL_CATEGORY_DANGEROUS,{{CMD_KEY_RO|CMD_KEY_ACCESS|CMD_KEY_INCOMPLETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE|CMD_KEY_INCOMPLETE,KSPEC_BS_UNKNOWN,{{0}},KSPEC_FK_UNKNOWN,{{0}}}},sortGetKeys,.args=SORT_Args}, -{"sort_ro","Sort the elements in a list, set or sorted set. Read-only variant of SORT.","O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of returned elements. When the elements are not sorted, complexity is O(N).","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,SORT_RO_History,SORT_RO_Hints,sortroCommand,-2,CMD_READONLY,ACL_CATEGORY_SET|ACL_CATEGORY_SORTEDSET|ACL_CATEGORY_LIST|ACL_CATEGORY_DANGEROUS,{{CMD_KEY_RO|CMD_KEY_ACCESS|CMD_KEY_INCOMPLETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SORT_RO_Args}, -{"touch","Alters the last access time of a key(s). Returns the number of existing keys specified.","O(N) where N is the number of keys that will be touched.","3.2.1",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,TOUCH_History,TOUCH_Hints,touchCommand,-2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=TOUCH_Args}, -{"ttl","Get the time to live for a key in seconds","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,TTL_History,TTL_Hints,ttlCommand,2,CMD_READONLY|CMD_RANDOM|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=TTL_Args}, -{"type","Determine the type stored at key","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,TYPE_History,TYPE_Hints,typeCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=TYPE_Args}, -{"unlink","Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.","O(1) for each key removed regardless of its size. Then the command does O(N) work in a different thread in order to reclaim memory, where N is the number of allocations the deleted objects where composed of.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,UNLINK_History,UNLINK_Hints,unlinkCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RM|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=UNLINK_Args}, -{"wait","Wait for the synchronous replication of all the write commands sent in the context of the current connection","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,WAIT_History,WAIT_Hints,waitCommand,3,CMD_NOSCRIPT,ACL_CATEGORY_CONNECTION,.args=WAIT_Args}, +{"copy","Copy a key","O(N) worst case for collections, where N is the number of nested items. O(1) for string values.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,COPY_History,COPY_tips,copyCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=COPY_Args}, +{"del","Delete a key","O(N) where N is the number of keys that will be removed. When a key to remove holds a value other than a string, the individual complexity for this key is O(M) where M is the number of elements in the list, set, sorted set or hash. Removing a single key that holds a string value is O(1).","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,DEL_History,DEL_tips,delCommand,-2,CMD_WRITE,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RM|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=DEL_Args}, +{"dump","Return a serialized version of the value stored at the specified key.","O(1) to access the key and additional O(N*M) to serialize it, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1).","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,DUMP_History,DUMP_tips,dumpCommand,2,CMD_READONLY,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=DUMP_Args}, +{"exists","Determine if a key exists","O(N) where N is the number of keys to check.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,EXISTS_History,EXISTS_tips,existsCommand,-2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=EXISTS_Args}, +{"expire","Set a key's time to live in seconds","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,EXPIRE_History,EXPIRE_tips,expireCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=EXPIRE_Args}, +{"expireat","Set the expiration for a key as a UNIX timestamp","O(1)","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,EXPIREAT_History,EXPIREAT_tips,expireatCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=EXPIREAT_Args}, +{"expiretime","Get the expiration Unix timestamp for a key","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,EXPIRETIME_History,EXPIRETIME_tips,expiretimeCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=EXPIRETIME_Args}, +{"keys","Find all keys matching the given pattern","O(N) with N being the number of keys in the database, under the assumption that the key names in the database and the given pattern have limited length.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,KEYS_History,KEYS_tips,keysCommand,2,CMD_READONLY,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,.args=KEYS_Args}, +{"migrate","Atomically transfer a key from a Redis instance to another one.","This command actually executes a DUMP+DEL in the source instance, and a RESTORE in the target instance. See the pages of these commands for time complexity. Also an O(N) data transfer between the two instances is performed.","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,MIGRATE_History,MIGRATE_tips,migrateCommand,-6,CMD_WRITE,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={3},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE|CMD_KEY_INCOMPLETE,KSPEC_BS_KEYWORD,.bs.keyword={"KEYS",-2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},migrateGetKeys,.args=MIGRATE_Args}, +{"move","Move a key to another database","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,MOVE_History,MOVE_tips,moveCommand,3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=MOVE_Args}, +{"object","A container for object introspection commands","Depends on subcommand.","2.2.3",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,OBJECT_History,OBJECT_tips,NULL,-2,0,0,.subcommands=OBJECT_Subcommands}, +{"persist","Remove the expiration from a key","O(1)","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,PERSIST_History,PERSIST_tips,persistCommand,2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PERSIST_Args}, +{"pexpire","Set a key's time to live in milliseconds","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,PEXPIRE_History,PEXPIRE_tips,pexpireCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PEXPIRE_Args}, +{"pexpireat","Set the expiration for a key as a UNIX timestamp specified in milliseconds","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,PEXPIREAT_History,PEXPIREAT_tips,pexpireatCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PEXPIREAT_Args}, +{"pexpiretime","Get the expiration Unix timestamp for a key in milliseconds","O(1)","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,PEXPIRETIME_History,PEXPIRETIME_tips,pexpiretimeCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PEXPIRETIME_Args}, +{"pttl","Get the time to live for a key in milliseconds","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,PTTL_History,PTTL_tips,pttlCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PTTL_Args}, +{"randomkey","Return a random key from the keyspace","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,RANDOMKEY_History,RANDOMKEY_tips,randomkeyCommand,1,CMD_READONLY,ACL_CATEGORY_KEYSPACE}, +{"rename","Rename a key","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,RENAME_History,RENAME_tips,renameCommand,3,CMD_WRITE,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RENAME_Args}, +{"renamenx","Rename a key, only if the new key does not exist","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,RENAMENX_History,RENAMENX_tips,renamenxCommand,3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RENAMENX_Args}, +{"restore","Create a key using the provided serialized value, previously obtained using DUMP.","O(1) to create the new key and additional O(N*M) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). However for sorted set values the complexity is O(N*M*log(N)) because inserting values into sorted sets is O(log(N)).","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,RESTORE_History,RESTORE_tips,restoreCommand,-4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RESTORE_Args}, +{"scan","Incrementally iterate the keys space","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,SCAN_History,SCAN_tips,scanCommand,-2,CMD_READONLY,ACL_CATEGORY_KEYSPACE,.args=SCAN_Args}, +{"sort","Sort the elements in a list, set or sorted set","O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of returned elements. When the elements are not sorted, complexity is O(N).","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,SORT_History,SORT_tips,sortCommand,-2,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SET|ACL_CATEGORY_SORTEDSET|ACL_CATEGORY_LIST|ACL_CATEGORY_DANGEROUS,{{CMD_KEY_RO|CMD_KEY_ACCESS|CMD_KEY_INCOMPLETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE|CMD_KEY_INCOMPLETE,KSPEC_BS_UNKNOWN,{{0}},KSPEC_FK_UNKNOWN,{{0}}}},sortGetKeys,.args=SORT_Args}, +{"sort_ro","Sort the elements in a list, set or sorted set. Read-only variant of SORT.","O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of returned elements. When the elements are not sorted, complexity is O(N).","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,SORT_RO_History,SORT_RO_tips,sortroCommand,-2,CMD_READONLY,ACL_CATEGORY_SET|ACL_CATEGORY_SORTEDSET|ACL_CATEGORY_LIST|ACL_CATEGORY_DANGEROUS,{{CMD_KEY_RO|CMD_KEY_ACCESS|CMD_KEY_INCOMPLETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SORT_RO_Args}, +{"touch","Alters the last access time of a key(s). Returns the number of existing keys specified.","O(N) where N is the number of keys that will be touched.","3.2.1",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,TOUCH_History,TOUCH_tips,touchCommand,-2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=TOUCH_Args}, +{"ttl","Get the time to live for a key in seconds","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,TTL_History,TTL_tips,ttlCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=TTL_Args}, +{"type","Determine the type stored at key","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,TYPE_History,TYPE_tips,typeCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=TYPE_Args}, +{"unlink","Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.","O(1) for each key removed regardless of its size. Then the command does O(N) work in a different thread in order to reclaim memory, where N is the number of allocations the deleted objects where composed of.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,UNLINK_History,UNLINK_tips,unlinkCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE,{{CMD_KEY_RM|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=UNLINK_Args}, +{"wait","Wait for the synchronous replication of all the write commands sent in the context of the current connection","O(1)","3.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GENERIC,WAIT_History,WAIT_tips,waitCommand,3,CMD_NOSCRIPT,ACL_CATEGORY_CONNECTION,.args=WAIT_Args}, /* geo */ -{"geoadd","Add one or more geospatial items in the geospatial index represented using a sorted set","O(log(N)) for each item added, where N is the number of elements in the sorted set.","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEOADD_History,GEOADD_Hints,geoaddCommand,-5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_GEO,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEOADD_Args}, -{"geodist","Returns the distance between two members of a geospatial index","O(log(N))","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEODIST_History,GEODIST_Hints,geodistCommand,-4,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEODIST_Args}, -{"geohash","Returns members of a geospatial index as standard geohash strings","O(log(N)) for each member requested, where N is the number of elements in the sorted set.","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEOHASH_History,GEOHASH_Hints,geohashCommand,-2,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEOHASH_Args}, -{"geopos","Returns longitude and latitude of members of a geospatial index","O(N) where N is the number of members requested.","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEOPOS_History,GEOPOS_Hints,geoposCommand,-2,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEOPOS_Args}, -{"georadius","Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","3.2.0",CMD_DOC_DEPRECATED,"`GEOSEARCH` and `GEOSEARCHSTORE` with the `BYRADIUS` argument","6.2.0",COMMAND_GROUP_GEO,GEORADIUS_History,GEORADIUS_Hints,georadiusCommand,-6,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_KEYWORD,.bs.keyword={"STORE",6},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_KEYWORD,.bs.keyword={"STOREDIST",6},KSPEC_FK_RANGE,.fk.range={0,1,0}}},georadiusGetKeys,.args=GEORADIUS_Args}, -{"georadiusbymember","Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","3.2.0",CMD_DOC_DEPRECATED,"`GEOSEARCH` and `GEOSEARCHSTORE` with the `BYRADIUS` and `FROMMEMBER` arguments","6.2.0",COMMAND_GROUP_GEO,GEORADIUSBYMEMBER_History,GEORADIUSBYMEMBER_Hints,georadiusbymemberCommand,-5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_KEYWORD,.bs.keyword={"STORE",5},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_KEYWORD,.bs.keyword={"STOREDIST",5},KSPEC_FK_RANGE,.fk.range={0,1,0}}},georadiusGetKeys,.args=GEORADIUSBYMEMBER_Args}, -{"georadiusbymember_ro","A read-only variant for GEORADIUSBYMEMBER","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","3.2.10",CMD_DOC_DEPRECATED,"`GEOSEARCH` with the `BYRADIUS` and `FROMMEMBER` arguments","6.2.0",COMMAND_GROUP_GEO,GEORADIUSBYMEMBER_RO_History,GEORADIUSBYMEMBER_RO_Hints,georadiusbymemberroCommand,-5,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEORADIUSBYMEMBER_RO_Args}, -{"georadius_ro","A read-only variant for GEORADIUS","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","3.2.10",CMD_DOC_DEPRECATED,"`GEOSEARCH` with the `BYRADIUS` argument","6.2.0",COMMAND_GROUP_GEO,GEORADIUS_RO_History,GEORADIUS_RO_Hints,georadiusroCommand,-6,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEORADIUS_RO_Args}, -{"geosearch","Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle.","O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEOSEARCH_History,GEOSEARCH_Hints,geosearchCommand,-7,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEOSEARCH_Args}, -{"geosearchstore","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.","O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEOSEARCHSTORE_History,GEOSEARCHSTORE_Hints,geosearchstoreCommand,-8,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_GEO,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEOSEARCHSTORE_Args}, +{"geoadd","Add one or more geospatial items in the geospatial index represented using a sorted set","O(log(N)) for each item added, where N is the number of elements in the sorted set.","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEOADD_History,GEOADD_tips,geoaddCommand,-5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_GEO,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEOADD_Args}, +{"geodist","Returns the distance between two members of a geospatial index","O(log(N))","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEODIST_History,GEODIST_tips,geodistCommand,-4,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEODIST_Args}, +{"geohash","Returns members of a geospatial index as standard geohash strings","O(log(N)) for each member requested, where N is the number of elements in the sorted set.","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEOHASH_History,GEOHASH_tips,geohashCommand,-2,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEOHASH_Args}, +{"geopos","Returns longitude and latitude of members of a geospatial index","O(N) where N is the number of members requested.","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEOPOS_History,GEOPOS_tips,geoposCommand,-2,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEOPOS_Args}, +{"georadius","Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","3.2.0",CMD_DOC_DEPRECATED,"`GEOSEARCH` and `GEOSEARCHSTORE` with the `BYRADIUS` argument","6.2.0",COMMAND_GROUP_GEO,GEORADIUS_History,GEORADIUS_tips,georadiusCommand,-6,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_KEYWORD,.bs.keyword={"STORE",6},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_KEYWORD,.bs.keyword={"STOREDIST",6},KSPEC_FK_RANGE,.fk.range={0,1,0}}},georadiusGetKeys,.args=GEORADIUS_Args}, +{"georadiusbymember","Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","3.2.0",CMD_DOC_DEPRECATED,"`GEOSEARCH` and `GEOSEARCHSTORE` with the `BYRADIUS` and `FROMMEMBER` arguments","6.2.0",COMMAND_GROUP_GEO,GEORADIUSBYMEMBER_History,GEORADIUSBYMEMBER_tips,georadiusbymemberCommand,-5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_KEYWORD,.bs.keyword={"STORE",5},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_KEYWORD,.bs.keyword={"STOREDIST",5},KSPEC_FK_RANGE,.fk.range={0,1,0}}},georadiusGetKeys,.args=GEORADIUSBYMEMBER_Args}, +{"georadiusbymember_ro","A read-only variant for GEORADIUSBYMEMBER","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","3.2.10",CMD_DOC_DEPRECATED,"`GEOSEARCH` with the `BYRADIUS` and `FROMMEMBER` arguments","6.2.0",COMMAND_GROUP_GEO,GEORADIUSBYMEMBER_RO_History,GEORADIUSBYMEMBER_RO_tips,georadiusbymemberroCommand,-5,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEORADIUSBYMEMBER_RO_Args}, +{"georadius_ro","A read-only variant for GEORADIUS","O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.","3.2.10",CMD_DOC_DEPRECATED,"`GEOSEARCH` with the `BYRADIUS` argument","6.2.0",COMMAND_GROUP_GEO,GEORADIUS_RO_History,GEORADIUS_RO_tips,georadiusroCommand,-6,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEORADIUS_RO_Args}, +{"geosearch","Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle.","O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEOSEARCH_History,GEOSEARCH_tips,geosearchCommand,-7,CMD_READONLY,ACL_CATEGORY_GEO,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEOSEARCH_Args}, +{"geosearchstore","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.","O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_GEO,GEOSEARCHSTORE_History,GEOSEARCHSTORE_tips,geosearchstoreCommand,-8,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_GEO,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GEOSEARCHSTORE_Args}, /* hash */ -{"hdel","Delete one or more hash fields","O(N) where N is the number of fields to be removed.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HDEL_History,HDEL_Hints,hdelCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HDEL_Args}, -{"hexists","Determine if a hash field exists","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HEXISTS_History,HEXISTS_Hints,hexistsCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HEXISTS_Args}, -{"hget","Get the value of a hash field","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HGET_History,HGET_Hints,hgetCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HGET_Args}, -{"hgetall","Get all the fields and values in a hash","O(N) where N is the size of the hash.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HGETALL_History,HGETALL_Hints,hgetallCommand,2,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HGETALL_Args}, -{"hincrby","Increment the integer value of a hash field by the given number","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HINCRBY_History,HINCRBY_Hints,hincrbyCommand,4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HINCRBY_Args}, -{"hincrbyfloat","Increment the float value of a hash field by the given amount","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HINCRBYFLOAT_History,HINCRBYFLOAT_Hints,hincrbyfloatCommand,4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HINCRBYFLOAT_Args}, -{"hkeys","Get all the fields in a hash","O(N) where N is the size of the hash.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HKEYS_History,HKEYS_Hints,hkeysCommand,2,CMD_READONLY|CMD_SORT_FOR_SCRIPT,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HKEYS_Args}, -{"hlen","Get the number of fields in a hash","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HLEN_History,HLEN_Hints,hlenCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HLEN_Args}, -{"hmget","Get the values of all the given hash fields","O(N) where N is the number of fields being requested.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HMGET_History,HMGET_Hints,hmgetCommand,-3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HMGET_Args}, -{"hmset","Set multiple hash fields to multiple values","O(N) where N is the number of fields being set.","2.0.0",CMD_DOC_DEPRECATED,"`HSET` with multiple field-value pairs","4.0.0",COMMAND_GROUP_HASH,HMSET_History,HMSET_Hints,hsetCommand,-4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HMSET_Args}, -{"hrandfield","Get one or multiple random fields from a hash","O(N) where N is the number of fields returned","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HRANDFIELD_History,HRANDFIELD_Hints,hrandfieldCommand,-2,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HRANDFIELD_Args}, -{"hscan","Incrementally iterate hash fields and associated values","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection..","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HSCAN_History,HSCAN_Hints,hscanCommand,-3,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HSCAN_Args}, -{"hset","Set the string value of a hash field","O(1) for each field/value pair added, so O(N) to add N field/value pairs when the command is called with multiple field/value pairs.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HSET_History,HSET_Hints,hsetCommand,-4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HSET_Args}, -{"hsetnx","Set the value of a hash field, only if the field does not exist","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HSETNX_History,HSETNX_Hints,hsetnxCommand,4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HSETNX_Args}, -{"hstrlen","Get the length of the value of a hash field","O(1)","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HSTRLEN_History,HSTRLEN_Hints,hstrlenCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HSTRLEN_Args}, -{"hvals","Get all the values in a hash","O(N) where N is the size of the hash.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HVALS_History,HVALS_Hints,hvalsCommand,2,CMD_READONLY|CMD_SORT_FOR_SCRIPT,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HVALS_Args}, +{"hdel","Delete one or more hash fields","O(N) where N is the number of fields to be removed.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HDEL_History,HDEL_tips,hdelCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HDEL_Args}, +{"hexists","Determine if a hash field exists","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HEXISTS_History,HEXISTS_tips,hexistsCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HEXISTS_Args}, +{"hget","Get the value of a hash field","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HGET_History,HGET_tips,hgetCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HGET_Args}, +{"hgetall","Get all the fields and values in a hash","O(N) where N is the size of the hash.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HGETALL_History,HGETALL_tips,hgetallCommand,2,CMD_READONLY,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HGETALL_Args}, +{"hincrby","Increment the integer value of a hash field by the given number","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HINCRBY_History,HINCRBY_tips,hincrbyCommand,4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HINCRBY_Args}, +{"hincrbyfloat","Increment the float value of a hash field by the given amount","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HINCRBYFLOAT_History,HINCRBYFLOAT_tips,hincrbyfloatCommand,4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HINCRBYFLOAT_Args}, +{"hkeys","Get all the fields in a hash","O(N) where N is the size of the hash.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HKEYS_History,HKEYS_tips,hkeysCommand,2,CMD_READONLY,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HKEYS_Args}, +{"hlen","Get the number of fields in a hash","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HLEN_History,HLEN_tips,hlenCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HLEN_Args}, +{"hmget","Get the values of all the given hash fields","O(N) where N is the number of fields being requested.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HMGET_History,HMGET_tips,hmgetCommand,-3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HMGET_Args}, +{"hmset","Set multiple hash fields to multiple values","O(N) where N is the number of fields being set.","2.0.0",CMD_DOC_DEPRECATED,"`HSET` with multiple field-value pairs","4.0.0",COMMAND_GROUP_HASH,HMSET_History,HMSET_tips,hsetCommand,-4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HMSET_Args}, +{"hrandfield","Get one or multiple random fields from a hash","O(N) where N is the number of fields returned","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HRANDFIELD_History,HRANDFIELD_tips,hrandfieldCommand,-2,CMD_READONLY,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HRANDFIELD_Args}, +{"hscan","Incrementally iterate hash fields and associated values","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection..","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HSCAN_History,HSCAN_tips,hscanCommand,-3,CMD_READONLY,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HSCAN_Args}, +{"hset","Set the string value of a hash field","O(1) for each field/value pair added, so O(N) to add N field/value pairs when the command is called with multiple field/value pairs.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HSET_History,HSET_tips,hsetCommand,-4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HSET_Args}, +{"hsetnx","Set the value of a hash field, only if the field does not exist","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HSETNX_History,HSETNX_tips,hsetnxCommand,4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HSETNX_Args}, +{"hstrlen","Get the length of the value of a hash field","O(1)","3.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HSTRLEN_History,HSTRLEN_tips,hstrlenCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_HASH,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HSTRLEN_Args}, +{"hvals","Get all the values in a hash","O(N) where N is the size of the hash.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HASH,HVALS_History,HVALS_tips,hvalsCommand,2,CMD_READONLY,ACL_CATEGORY_HASH,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=HVALS_Args}, /* hyperloglog */ -{"pfadd","Adds the specified elements to the specified HyperLogLog.","O(1) to add every element.","2.8.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HYPERLOGLOG,PFADD_History,PFADD_Hints,pfaddCommand,-2,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HYPERLOGLOG,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PFADD_Args}, -{"pfcount","Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).","O(1) with a very small average constant time when called with a single key. O(N) with N being the number of keys, and much bigger constant times, when called with multiple keys.","2.8.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HYPERLOGLOG,PFCOUNT_History,PFCOUNT_Hints,pfcountCommand,-2,CMD_READONLY|CMD_MAY_REPLICATE,ACL_CATEGORY_HYPERLOGLOG,{{CMD_KEY_RW,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=PFCOUNT_Args}, -{"pfdebug","Internal commands for debugging HyperLogLog values","N/A","2.8.9",CMD_DOC_SYSCMD,NULL,NULL,COMMAND_GROUP_HYPERLOGLOG,PFDEBUG_History,PFDEBUG_Hints,pfdebugCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_ADMIN,ACL_CATEGORY_HYPERLOGLOG,{{CMD_KEY_RW|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}}}, -{"pfmerge","Merge N different HyperLogLogs into a single one.","O(N) to merge N HyperLogLogs, but with high constant times.","2.8.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HYPERLOGLOG,PFMERGE_History,PFMERGE_Hints,pfmergeCommand,-2,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_HYPERLOGLOG,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=PFMERGE_Args}, -{"pfselftest","An internal command for testing HyperLogLog values","N/A","2.8.9",CMD_DOC_SYSCMD,NULL,NULL,COMMAND_GROUP_HYPERLOGLOG,PFSELFTEST_History,PFSELFTEST_Hints,pfselftestCommand,1,CMD_ADMIN,ACL_CATEGORY_HYPERLOGLOG}, +{"pfadd","Adds the specified elements to the specified HyperLogLog.","O(1) to add every element.","2.8.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HYPERLOGLOG,PFADD_History,PFADD_tips,pfaddCommand,-2,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_HYPERLOGLOG,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PFADD_Args}, +{"pfcount","Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).","O(1) with a very small average constant time when called with a single key. O(N) with N being the number of keys, and much bigger constant times, when called with multiple keys.","2.8.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HYPERLOGLOG,PFCOUNT_History,PFCOUNT_tips,pfcountCommand,-2,CMD_READONLY|CMD_MAY_REPLICATE,ACL_CATEGORY_HYPERLOGLOG,{{CMD_KEY_RW,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=PFCOUNT_Args}, +{"pfdebug","Internal commands for debugging HyperLogLog values","N/A","2.8.9",CMD_DOC_SYSCMD,NULL,NULL,COMMAND_GROUP_HYPERLOGLOG,PFDEBUG_History,PFDEBUG_tips,pfdebugCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_ADMIN,ACL_CATEGORY_HYPERLOGLOG,{{CMD_KEY_RW|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}}}, +{"pfmerge","Merge N different HyperLogLogs into a single one.","O(N) to merge N HyperLogLogs, but with high constant times.","2.8.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_HYPERLOGLOG,PFMERGE_History,PFMERGE_tips,pfmergeCommand,-2,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_HYPERLOGLOG,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=PFMERGE_Args}, +{"pfselftest","An internal command for testing HyperLogLog values","N/A","2.8.9",CMD_DOC_SYSCMD,NULL,NULL,COMMAND_GROUP_HYPERLOGLOG,PFSELFTEST_History,PFSELFTEST_tips,pfselftestCommand,1,CMD_ADMIN,ACL_CATEGORY_HYPERLOGLOG}, /* list */ -{"blmove","Pop an element from a list, push it to another list and return it; or block until one is available","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,BLMOVE_History,BLMOVE_Hints,blmoveCommand,6,CMD_WRITE|CMD_DENYOOM|CMD_NOSCRIPT,ACL_CATEGORY_LIST|ACL_CATEGORY_BLOCKING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BLMOVE_Args}, -{"blmpop","Pop elements from a list, or block until one is available","O(N+M) where N is the number of provided keys and M is the number of elements returned.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,BLMPOP_History,BLMPOP_Hints,blmpopCommand,-5,CMD_WRITE,ACL_CATEGORY_LIST|ACL_CATEGORY_BLOCKING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},blmpopGetKeys,.args=BLMPOP_Args}, -{"blpop","Remove and get the first element in a list, or block until one is available","O(N) where N is the number of provided keys.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,BLPOP_History,BLPOP_Hints,blpopCommand,-3,CMD_WRITE|CMD_NOSCRIPT,ACL_CATEGORY_LIST|ACL_CATEGORY_BLOCKING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-2,1,0}}},.args=BLPOP_Args}, -{"brpop","Remove and get the last element in a list, or block until one is available","O(N) where N is the number of provided keys.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,BRPOP_History,BRPOP_Hints,brpopCommand,-3,CMD_WRITE|CMD_NOSCRIPT,ACL_CATEGORY_LIST|ACL_CATEGORY_BLOCKING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-2,1,0}}},.args=BRPOP_Args}, -{"brpoplpush","Pop an element from a list, push it to another list and return it; or block until one is available","O(1)","2.2.0",CMD_DOC_DEPRECATED,"`BLMOVE` with the `RIGHT` and `LEFT` arguments","6.2.0",COMMAND_GROUP_LIST,BRPOPLPUSH_History,BRPOPLPUSH_Hints,brpoplpushCommand,4,CMD_WRITE|CMD_DENYOOM|CMD_NOSCRIPT,ACL_CATEGORY_LIST|ACL_CATEGORY_BLOCKING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BRPOPLPUSH_Args}, -{"lindex","Get an element from a list by its index","O(N) where N is the number of elements to traverse to get to the element at index. This makes asking for the first or the last element of the list O(1).","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LINDEX_History,LINDEX_Hints,lindexCommand,3,CMD_READONLY,ACL_CATEGORY_LIST,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LINDEX_Args}, -{"linsert","Insert an element before or after another element in a list","O(N) where N is the number of elements to traverse before seeing the value pivot. This means that inserting somewhere on the left end on the list (head) can be considered O(1) and inserting somewhere on the right end (tail) is O(N).","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LINSERT_History,LINSERT_Hints,linsertCommand,5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LINSERT_Args}, -{"llen","Get the length of a list","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LLEN_History,LLEN_Hints,llenCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LLEN_Args}, -{"lmove","Pop an element from a list, push it to another list and return it","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LMOVE_History,LMOVE_Hints,lmoveCommand,5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LMOVE_Args}, -{"lmpop","Pop elements from a list","O(N+M) where N is the number of provided keys and M is the number of elements returned.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LMPOP_History,LMPOP_Hints,lmpopCommand,-4,CMD_WRITE,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},lmpopGetKeys,.args=LMPOP_Args}, -{"lpop","Remove and get the first elements in a list","O(N) where N is the number of elements returned","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LPOP_History,LPOP_Hints,lpopCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LPOP_Args}, -{"lpos","Return the index of matching elements on a list","O(N) where N is the number of elements in the list, for the average case. When searching for elements near the head or the tail of the list, or when the MAXLEN option is provided, the command may run in constant time.","6.0.6",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LPOS_History,LPOS_Hints,lposCommand,-3,CMD_READONLY,ACL_CATEGORY_LIST,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LPOS_Args}, -{"lpush","Prepend one or multiple elements to a list","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LPUSH_History,LPUSH_Hints,lpushCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LPUSH_Args}, -{"lpushx","Prepend an element to a list, only if the list exists","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LPUSHX_History,LPUSHX_Hints,lpushxCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LPUSHX_Args}, -{"lrange","Get a range of elements from a list","O(S+N) where S is the distance of start offset from HEAD for small lists, from nearest end (HEAD or TAIL) for large lists; and N is the number of elements in the specified range.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LRANGE_History,LRANGE_Hints,lrangeCommand,4,CMD_READONLY,ACL_CATEGORY_LIST,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LRANGE_Args}, -{"lrem","Remove elements from a list","O(N+M) where N is the length of the list and M is the number of elements removed.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LREM_History,LREM_Hints,lremCommand,4,CMD_WRITE,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LREM_Args}, -{"lset","Set the value of an element in a list by its index","O(N) where N is the length of the list. Setting either the first or the last element of the list is O(1).","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LSET_History,LSET_Hints,lsetCommand,4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LSET_Args}, -{"ltrim","Trim a list to the specified range","O(N) where N is the number of elements to be removed by the operation.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LTRIM_History,LTRIM_Hints,ltrimCommand,4,CMD_WRITE,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LTRIM_Args}, -{"rpop","Remove and get the last elements in a list","O(N) where N is the number of elements returned","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,RPOP_History,RPOP_Hints,rpopCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RPOP_Args}, -{"rpoplpush","Remove the last element in a list, prepend it to another list and return it","O(1)","1.2.0",CMD_DOC_DEPRECATED,"`LMOVE` with the `RIGHT` and `LEFT` arguments","6.2.0",COMMAND_GROUP_LIST,RPOPLPUSH_History,RPOPLPUSH_Hints,rpoplpushCommand,3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RPOPLPUSH_Args}, -{"rpush","Append one or multiple elements to a list","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,RPUSH_History,RPUSH_Hints,rpushCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RPUSH_Args}, -{"rpushx","Append an element to a list, only if the list exists","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,RPUSHX_History,RPUSHX_Hints,rpushxCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RPUSHX_Args}, +{"blmove","Pop an element from a list, push it to another list and return it; or block until one is available","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,BLMOVE_History,BLMOVE_tips,blmoveCommand,6,CMD_WRITE|CMD_DENYOOM|CMD_NOSCRIPT|CMD_BLOCKING,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BLMOVE_Args}, +{"blmpop","Pop elements from a list, or block until one is available","O(N+M) where N is the number of provided keys and M is the number of elements returned.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,BLMPOP_History,BLMPOP_tips,blmpopCommand,-5,CMD_WRITE|CMD_BLOCKING,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},blmpopGetKeys,.args=BLMPOP_Args}, +{"blpop","Remove and get the first element in a list, or block until one is available","O(N) where N is the number of provided keys.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,BLPOP_History,BLPOP_tips,blpopCommand,-3,CMD_WRITE|CMD_NOSCRIPT|CMD_BLOCKING,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-2,1,0}}},.args=BLPOP_Args}, +{"brpop","Remove and get the last element in a list, or block until one is available","O(N) where N is the number of provided keys.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,BRPOP_History,BRPOP_tips,brpopCommand,-3,CMD_WRITE|CMD_NOSCRIPT|CMD_BLOCKING,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-2,1,0}}},.args=BRPOP_Args}, +{"brpoplpush","Pop an element from a list, push it to another list and return it; or block until one is available","O(1)","2.2.0",CMD_DOC_DEPRECATED,"`BLMOVE` with the `RIGHT` and `LEFT` arguments","6.2.0",COMMAND_GROUP_LIST,BRPOPLPUSH_History,BRPOPLPUSH_tips,brpoplpushCommand,4,CMD_WRITE|CMD_DENYOOM|CMD_NOSCRIPT|CMD_BLOCKING,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=BRPOPLPUSH_Args}, +{"lindex","Get an element from a list by its index","O(N) where N is the number of elements to traverse to get to the element at index. This makes asking for the first or the last element of the list O(1).","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LINDEX_History,LINDEX_tips,lindexCommand,3,CMD_READONLY,ACL_CATEGORY_LIST,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LINDEX_Args}, +{"linsert","Insert an element before or after another element in a list","O(N) where N is the number of elements to traverse before seeing the value pivot. This means that inserting somewhere on the left end on the list (head) can be considered O(1) and inserting somewhere on the right end (tail) is O(N).","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LINSERT_History,LINSERT_tips,linsertCommand,5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LINSERT_Args}, +{"llen","Get the length of a list","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LLEN_History,LLEN_tips,llenCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LLEN_Args}, +{"lmove","Pop an element from a list, push it to another list and return it","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LMOVE_History,LMOVE_tips,lmoveCommand,5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LMOVE_Args}, +{"lmpop","Pop elements from a list","O(N+M) where N is the number of provided keys and M is the number of elements returned.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LMPOP_History,LMPOP_tips,lmpopCommand,-4,CMD_WRITE,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},lmpopGetKeys,.args=LMPOP_Args}, +{"lpop","Remove and get the first elements in a list","O(N) where N is the number of elements returned","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LPOP_History,LPOP_tips,lpopCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LPOP_Args}, +{"lpos","Return the index of matching elements on a list","O(N) where N is the number of elements in the list, for the average case. When searching for elements near the head or the tail of the list, or when the MAXLEN option is provided, the command may run in constant time.","6.0.6",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LPOS_History,LPOS_tips,lposCommand,-3,CMD_READONLY,ACL_CATEGORY_LIST,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LPOS_Args}, +{"lpush","Prepend one or multiple elements to a list","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LPUSH_History,LPUSH_tips,lpushCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LPUSH_Args}, +{"lpushx","Prepend an element to a list, only if the list exists","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LPUSHX_History,LPUSHX_tips,lpushxCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LPUSHX_Args}, +{"lrange","Get a range of elements from a list","O(S+N) where S is the distance of start offset from HEAD for small lists, from nearest end (HEAD or TAIL) for large lists; and N is the number of elements in the specified range.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LRANGE_History,LRANGE_tips,lrangeCommand,4,CMD_READONLY,ACL_CATEGORY_LIST,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LRANGE_Args}, +{"lrem","Remove elements from a list","O(N+M) where N is the length of the list and M is the number of elements removed.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LREM_History,LREM_tips,lremCommand,4,CMD_WRITE,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LREM_Args}, +{"lset","Set the value of an element in a list by its index","O(N) where N is the length of the list. Setting either the first or the last element of the list is O(1).","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LSET_History,LSET_tips,lsetCommand,4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LSET_Args}, +{"ltrim","Trim a list to the specified range","O(N) where N is the number of elements to be removed by the operation.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,LTRIM_History,LTRIM_tips,ltrimCommand,4,CMD_WRITE,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=LTRIM_Args}, +{"rpop","Remove and get the last elements in a list","O(N) where N is the number of elements returned","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,RPOP_History,RPOP_tips,rpopCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RPOP_Args}, +{"rpoplpush","Remove the last element in a list, prepend it to another list and return it","O(1)","1.2.0",CMD_DOC_DEPRECATED,"`LMOVE` with the `RIGHT` and `LEFT` arguments","6.2.0",COMMAND_GROUP_LIST,RPOPLPUSH_History,RPOPLPUSH_tips,rpoplpushCommand,3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RPOPLPUSH_Args}, +{"rpush","Append one or multiple elements to a list","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,RPUSH_History,RPUSH_tips,rpushCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RPUSH_Args}, +{"rpushx","Append an element to a list, only if the list exists","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_LIST,RPUSHX_History,RPUSHX_tips,rpushxCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_LIST,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=RPUSHX_Args}, /* pubsub */ -{"psubscribe","Listen for messages published to channels matching the given patterns","O(N) where N is the number of patterns the client is already subscribed to.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PSUBSCRIBE_History,PSUBSCRIBE_Hints,psubscribeCommand,-2,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=PSUBSCRIBE_Args}, -{"publish","Post a message to a channel","O(N+M) where N is the number of clients subscribed to the receiving channel and M is the total number of subscribed patterns (by any client).","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBLISH_History,PUBLISH_Hints,publishCommand,3,CMD_PUBSUB|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_MAY_REPLICATE|CMD_SENTINEL,0,.args=PUBLISH_Args}, -{"pubsub","A container for Pub/Sub commands","Depends on subcommand.","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_History,PUBSUB_Hints,NULL,-2,0,0,.subcommands=PUBSUB_Subcommands}, -{"punsubscribe","Stop listening for messages posted to channels matching the given patterns","O(N+M) where N is the number of patterns the client is already subscribed and M is the number of total patterns subscribed in the system (by any client).","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUNSUBSCRIBE_History,PUNSUBSCRIBE_Hints,punsubscribeCommand,-1,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=PUNSUBSCRIBE_Args}, -{"spublish","Post a message to a shard channel","O(N) where N is the number of clients subscribed to the receiving shard channel.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,SPUBLISH_History,SPUBLISH_Hints,spublishCommand,3,CMD_PUBSUB|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_MAY_REPLICATE,0,{{CMD_KEY_CHANNEL,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SPUBLISH_Args}, -{"ssubscribe","Listen for messages published to the given shard channels","O(N) where N is the number of shard channels to subscribe to.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,SSUBSCRIBE_History,SSUBSCRIBE_Hints,ssubscribeCommand,-2,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,{{CMD_KEY_CHANNEL,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SSUBSCRIBE_Args}, -{"subscribe","Listen for messages published to the given channels","O(N) where N is the number of channels to subscribe to.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,SUBSCRIBE_History,SUBSCRIBE_Hints,subscribeCommand,-2,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=SUBSCRIBE_Args}, -{"sunsubscribe","Stop listening for messages posted to the given shard channels","O(N) where N is the number of clients already subscribed to a channel.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,SUNSUBSCRIBE_History,SUNSUBSCRIBE_Hints,sunsubscribeCommand,-1,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,{{CMD_KEY_CHANNEL,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SUNSUBSCRIBE_Args}, -{"unsubscribe","Stop listening for messages posted to the given channels","O(N) where N is the number of clients already subscribed to a channel.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,UNSUBSCRIBE_History,UNSUBSCRIBE_Hints,unsubscribeCommand,-1,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=UNSUBSCRIBE_Args}, +{"psubscribe","Listen for messages published to channels matching the given patterns","O(N) where N is the number of patterns the client is already subscribed to.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PSUBSCRIBE_History,PSUBSCRIBE_tips,psubscribeCommand,-2,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=PSUBSCRIBE_Args}, +{"publish","Post a message to a channel","O(N+M) where N is the number of clients subscribed to the receiving channel and M is the total number of subscribed patterns (by any client).","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBLISH_History,PUBLISH_tips,publishCommand,3,CMD_PUBSUB|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_MAY_REPLICATE|CMD_SENTINEL,0,.args=PUBLISH_Args}, +{"pubsub","A container for Pub/Sub commands","Depends on subcommand.","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUBSUB_History,PUBSUB_tips,NULL,-2,0,0,.subcommands=PUBSUB_Subcommands}, +{"punsubscribe","Stop listening for messages posted to channels matching the given patterns","O(N+M) where N is the number of patterns the client is already subscribed and M is the number of total patterns subscribed in the system (by any client).","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,PUNSUBSCRIBE_History,PUNSUBSCRIBE_tips,punsubscribeCommand,-1,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=PUNSUBSCRIBE_Args}, +{"spublish","Post a message to a shard channel","O(N) where N is the number of clients subscribed to the receiving shard channel.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,SPUBLISH_History,SPUBLISH_tips,spublishCommand,3,CMD_PUBSUB|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_MAY_REPLICATE,0,{{CMD_KEY_CHANNEL,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SPUBLISH_Args}, +{"ssubscribe","Listen for messages published to the given shard channels","O(N) where N is the number of shard channels to subscribe to.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,SSUBSCRIBE_History,SSUBSCRIBE_tips,ssubscribeCommand,-2,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,{{CMD_KEY_CHANNEL,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SSUBSCRIBE_Args}, +{"subscribe","Listen for messages published to the given channels","O(N) where N is the number of channels to subscribe to.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,SUBSCRIBE_History,SUBSCRIBE_tips,subscribeCommand,-2,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=SUBSCRIBE_Args}, +{"sunsubscribe","Stop listening for messages posted to the given shard channels","O(N) where N is the number of clients already subscribed to a channel.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,SUNSUBSCRIBE_History,SUNSUBSCRIBE_tips,sunsubscribeCommand,-1,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0,{{CMD_KEY_CHANNEL,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SUNSUBSCRIBE_Args}, +{"unsubscribe","Stop listening for messages posted to the given channels","O(N) where N is the number of clients already subscribed to a channel.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_PUBSUB,UNSUBSCRIBE_History,UNSUBSCRIBE_tips,unsubscribeCommand,-1,CMD_PUBSUB|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SENTINEL,0,.args=UNSUBSCRIBE_Args}, /* scripting */ -{"eval","Execute a Lua script server side","Depends on the script that is executed.","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,EVAL_History,EVAL_Hints,evalCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_MAY_REPLICATE|CMD_NO_MANDATORY_KEYS,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},evalGetKeys,.args=EVAL_Args}, -{"evalsha","Execute a Lua script server side","Depends on the script that is executed.","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,EVALSHA_History,EVALSHA_Hints,evalShaCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_MAY_REPLICATE|CMD_NO_MANDATORY_KEYS,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},evalGetKeys,.args=EVALSHA_Args}, -{"evalsha_ro","Execute a read-only Lua script server side","Depends on the script that is executed.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,EVALSHA_RO_History,EVALSHA_RO_Hints,evalShaRoCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_NO_MANDATORY_KEYS,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},evalGetKeys,.args=EVALSHA_RO_Args}, -{"eval_ro","Execute a read-only Lua script server side","Depends on the script that is executed.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,EVAL_RO_History,EVAL_RO_Hints,evalRoCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_NO_MANDATORY_KEYS,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},evalGetKeys,.args=EVAL_RO_Args}, -{"fcall","PATCH__TBD__38__","PATCH__TBD__37__","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FCALL_History,FCALL_Hints,fcallCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_MAY_REPLICATE|CMD_NO_MANDATORY_KEYS|CMD_STALE,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},functionGetKeys,.args=FCALL_Args}, -{"fcall_ro","PATCH__TBD__7__","PATCH__TBD__6__","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FCALL_RO_History,FCALL_RO_Hints,fcallroCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_NO_MANDATORY_KEYS|CMD_STALE,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},functionGetKeys,.args=FCALL_RO_Args}, -{"function","A container for function commands","Depends on subcommand.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_History,FUNCTION_Hints,NULL,-2,0,0,.subcommands=FUNCTION_Subcommands}, -{"script","A container for Lua scripts management commands","Depends on subcommand.","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_History,SCRIPT_Hints,NULL,-2,0,0,.subcommands=SCRIPT_Subcommands}, +{"eval","Execute a Lua script server side","Depends on the script that is executed.","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,EVAL_History,EVAL_tips,evalCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_MAY_REPLICATE|CMD_NO_MANDATORY_KEYS,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},evalGetKeys,.args=EVAL_Args}, +{"evalsha","Execute a Lua script server side","Depends on the script that is executed.","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,EVALSHA_History,EVALSHA_tips,evalShaCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_MAY_REPLICATE|CMD_NO_MANDATORY_KEYS,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},evalGetKeys,.args=EVALSHA_Args}, +{"evalsha_ro","Execute a read-only Lua script server side","Depends on the script that is executed.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,EVALSHA_RO_History,EVALSHA_RO_tips,evalShaRoCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_NO_MANDATORY_KEYS,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},evalGetKeys,.args=EVALSHA_RO_Args}, +{"eval_ro","Execute a read-only Lua script server side","Depends on the script that is executed.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,EVAL_RO_History,EVAL_RO_tips,evalRoCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_NO_MANDATORY_KEYS,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},evalGetKeys,.args=EVAL_RO_Args}, +{"fcall","PATCH__TBD__38__","PATCH__TBD__37__","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FCALL_History,FCALL_tips,fcallCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_MAY_REPLICATE|CMD_NO_MANDATORY_KEYS|CMD_STALE,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},functionGetKeys,.args=FCALL_Args}, +{"fcall_ro","PATCH__TBD__7__","PATCH__TBD__6__","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FCALL_RO_History,FCALL_RO_tips,fcallroCommand,-3,CMD_NOSCRIPT|CMD_SKIP_MONITOR|CMD_NO_MANDATORY_KEYS|CMD_STALE,ACL_CATEGORY_SCRIPTING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},functionGetKeys,.args=FCALL_RO_Args}, +{"function","A container for function commands","Depends on subcommand.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,FUNCTION_History,FUNCTION_tips,NULL,-2,0,0,.subcommands=FUNCTION_Subcommands}, +{"script","A container for Lua scripts management commands","Depends on subcommand.","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SCRIPTING,SCRIPT_History,SCRIPT_tips,NULL,-2,0,0,.subcommands=SCRIPT_Subcommands}, /* sentinel */ -{"sentinel","A container for Sentinel commands","Depends on subcommand.","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_History,SENTINEL_Hints,NULL,-2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0,.subcommands=SENTINEL_Subcommands}, +{"sentinel","A container for Sentinel commands","Depends on subcommand.","2.8.4",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SENTINEL,SENTINEL_History,SENTINEL_tips,NULL,-2,CMD_ADMIN|CMD_SENTINEL|CMD_ONLY_SENTINEL,0,.subcommands=SENTINEL_Subcommands}, /* server */ -{"acl","A container for Access List Control commands ","Depends on subcommand.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_History,ACL_Hints,NULL,-2,CMD_SENTINEL,0,.subcommands=ACL_Subcommands}, -{"bgrewriteaof","Asynchronously rewrite the append-only file","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,BGREWRITEAOF_History,BGREWRITEAOF_Hints,bgrewriteaofCommand,1,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT,0}, -{"bgsave","Asynchronously save the dataset to disk","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,BGSAVE_History,BGSAVE_Hints,bgsaveCommand,-1,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT,0,.args=BGSAVE_Args}, -{"command","Get array of Redis command details","O(N) where N is the total number of Redis commands","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_History,COMMAND_Hints,commandCommand,-1,CMD_RANDOM|CMD_LOADING|CMD_STALE|CMD_SENTINEL,ACL_CATEGORY_CONNECTION,.subcommands=COMMAND_Subcommands}, -{"config","A container for server configuration commands","Depends on subcommand.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_History,CONFIG_Hints,NULL,-2,0,0,.subcommands=CONFIG_Subcommands}, -{"dbsize","Return the number of keys in the selected database","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,DBSIZE_History,DBSIZE_Hints,dbsizeCommand,1,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE}, -{"debug","A container for debugging commands","Depends on subcommand.","1.0.0",CMD_DOC_SYSCMD,NULL,NULL,COMMAND_GROUP_SERVER,DEBUG_History,DEBUG_Hints,debugCommand,-2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_PROTECTED,0}, -{"failover","Start a coordinated failover between this server and one of its replicas.","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,FAILOVER_History,FAILOVER_Hints,failoverCommand,-1,CMD_ADMIN|CMD_NOSCRIPT|CMD_STALE,0,.args=FAILOVER_Args}, -{"flushall","Remove all keys from all databases","O(N) where N is the total number of keys in all databases","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,FLUSHALL_History,FLUSHALL_Hints,flushallCommand,-1,CMD_WRITE,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,.args=FLUSHALL_Args}, -{"flushdb","Remove all keys from the current database","O(N) where N is the number of keys in the selected database","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,FLUSHDB_History,FLUSHDB_Hints,flushdbCommand,-1,CMD_WRITE,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,.args=FLUSHDB_Args}, -{"info","Get information and statistics about the server","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,INFO_History,INFO_Hints,infoCommand,-1,CMD_RANDOM|CMD_LOADING|CMD_STALE|CMD_SENTINEL,ACL_CATEGORY_DANGEROUS,.args=INFO_Args}, -{"lastsave","Get the UNIX time stamp of the last successful save to disk","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LASTSAVE_History,LASTSAVE_Hints,lastsaveCommand,1,CMD_RANDOM|CMD_LOADING|CMD_STALE|CMD_FAST,ACL_CATEGORY_ADMIN|ACL_CATEGORY_DANGEROUS}, -{"latency","A container for latency diagnostics commands","Depends on subcommand.","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_History,LATENCY_Hints,NULL,-2,0,0,.subcommands=LATENCY_Subcommands}, -{"lolwut","Display some computer art and the Redis version",NULL,"5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LOLWUT_History,LOLWUT_Hints,lolwutCommand,-1,CMD_READONLY|CMD_FAST,0,.args=LOLWUT_Args}, -{"memory","A container for memory diagnostics commands","Depends on subcommand.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_History,MEMORY_Hints,NULL,-2,0,0,.subcommands=MEMORY_Subcommands}, -{"module","A container for module commands","Depends on subcommand.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MODULE_History,MODULE_Hints,NULL,-2,0,0,.subcommands=MODULE_Subcommands}, -{"monitor","Listen for all requests received by the server in real time",NULL,"1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MONITOR_History,MONITOR_Hints,monitorCommand,1,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, -{"psync","Internal command used for replication",NULL,"2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,PSYNC_History,PSYNC_Hints,syncCommand,-3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NO_MULTI|CMD_NOSCRIPT,0,.args=PSYNC_Args}, -{"replconf","An internal command for configuring the replication stream","O(1)","3.0.0",CMD_DOC_SYSCMD,NULL,NULL,COMMAND_GROUP_SERVER,REPLCONF_History,REPLCONF_Hints,replconfCommand,-1,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, -{"replicaof","Make the server a replica of another instance, or promote it as master.","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,REPLICAOF_History,REPLICAOF_Hints,replicaofCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_ALLOW_BUSY|CMD_NOSCRIPT|CMD_STALE,0,.args=REPLICAOF_Args}, -{"restore-asking","An internal command for migrating keys in a cluster","O(1) to create the new key and additional O(N*M) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). However for sorted set values the complexity is O(N*M*log(N)) because inserting values into sorted sets is O(log(N)).","3.0.0",CMD_DOC_SYSCMD,NULL,NULL,COMMAND_GROUP_SERVER,RESTORE_ASKING_History,RESTORE_ASKING_Hints,restoreCommand,-4,CMD_WRITE|CMD_DENYOOM|CMD_ASKING,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}}}, -{"role","Return the role of the instance in the context of replication","O(1)","2.8.12",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ROLE_History,ROLE_Hints,roleCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_SENTINEL,ACL_CATEGORY_ADMIN|ACL_CATEGORY_DANGEROUS}, -{"save","Synchronously save the dataset to disk","O(N) where N is the total number of keys in all databases","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SAVE_History,SAVE_Hints,saveCommand,1,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT|CMD_NO_MULTI,0}, -{"shutdown","Synchronously save the dataset to disk and then shut down the server","O(N) when saving, where N is the total number of keys in all databases when saving data, otherwise O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SHUTDOWN_History,SHUTDOWN_Hints,shutdownCommand,-1,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_NO_MULTI|CMD_SENTINEL|CMD_ALLOW_BUSY,0,.args=SHUTDOWN_Args}, -{"slaveof","Make the server a replica of another instance, or promote it as master. Deprecated starting with Redis 5. Use REPLICAOF instead.","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLAVEOF_History,SLAVEOF_Hints,replicaofCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT|CMD_STALE,0,.args=SLAVEOF_Args}, -{"slowlog","A container for slow log commands","Depends on subcommand.","2.2.12",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLOWLOG_History,SLOWLOG_Hints,NULL,-2,0,0,.subcommands=SLOWLOG_Subcommands}, -{"swapdb","Swaps two Redis databases","O(N) where N is the count of clients watching or blocking on keys from both databases.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SWAPDB_History,SWAPDB_Hints,swapdbCommand,3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,.args=SWAPDB_Args}, -{"sync","Internal command used for replication",NULL,"1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SYNC_History,SYNC_Hints,syncCommand,1,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NO_MULTI|CMD_NOSCRIPT,0}, -{"time","Return the current server time","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,TIME_History,TIME_Hints,timeCommand,1,CMD_RANDOM|CMD_LOADING|CMD_STALE|CMD_FAST,0}, +{"acl","A container for Access List Control commands ","Depends on subcommand.","6.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ACL_History,ACL_tips,NULL,-2,CMD_SENTINEL,0,.subcommands=ACL_Subcommands}, +{"bgrewriteaof","Asynchronously rewrite the append-only file","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,BGREWRITEAOF_History,BGREWRITEAOF_tips,bgrewriteaofCommand,1,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT,0}, +{"bgsave","Asynchronously save the dataset to disk","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,BGSAVE_History,BGSAVE_tips,bgsaveCommand,-1,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT,0,.args=BGSAVE_Args}, +{"command","Get array of Redis command details","O(N) where N is the total number of Redis commands","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,COMMAND_History,COMMAND_tips,commandCommand,-1,CMD_LOADING|CMD_STALE|CMD_SENTINEL,ACL_CATEGORY_CONNECTION,.subcommands=COMMAND_Subcommands}, +{"config","A container for server configuration commands","Depends on subcommand.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,CONFIG_History,CONFIG_tips,NULL,-2,0,0,.subcommands=CONFIG_Subcommands}, +{"dbsize","Return the number of keys in the selected database","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,DBSIZE_History,DBSIZE_tips,dbsizeCommand,1,CMD_READONLY|CMD_FAST,ACL_CATEGORY_KEYSPACE}, +{"debug","A container for debugging commands","Depends on subcommand.","1.0.0",CMD_DOC_SYSCMD,NULL,NULL,COMMAND_GROUP_SERVER,DEBUG_History,DEBUG_tips,debugCommand,-2,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_PROTECTED,0}, +{"failover","Start a coordinated failover between this server and one of its replicas.","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,FAILOVER_History,FAILOVER_tips,failoverCommand,-1,CMD_ADMIN|CMD_NOSCRIPT|CMD_STALE,0,.args=FAILOVER_Args}, +{"flushall","Remove all keys from all databases","O(N) where N is the total number of keys in all databases","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,FLUSHALL_History,FLUSHALL_tips,flushallCommand,-1,CMD_WRITE,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,.args=FLUSHALL_Args}, +{"flushdb","Remove all keys from the current database","O(N) where N is the number of keys in the selected database","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,FLUSHDB_History,FLUSHDB_tips,flushdbCommand,-1,CMD_WRITE,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,.args=FLUSHDB_Args}, +{"info","Get information and statistics about the server","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,INFO_History,INFO_tips,infoCommand,-1,CMD_LOADING|CMD_STALE|CMD_SENTINEL,ACL_CATEGORY_DANGEROUS,.args=INFO_Args}, +{"lastsave","Get the UNIX time stamp of the last successful save to disk","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LASTSAVE_History,LASTSAVE_tips,lastsaveCommand,1,CMD_LOADING|CMD_STALE|CMD_FAST,ACL_CATEGORY_ADMIN|ACL_CATEGORY_DANGEROUS}, +{"latency","A container for latency diagnostics commands","Depends on subcommand.","2.8.13",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LATENCY_History,LATENCY_tips,NULL,-2,0,0,.subcommands=LATENCY_Subcommands}, +{"lolwut","Display some computer art and the Redis version",NULL,"5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,LOLWUT_History,LOLWUT_tips,lolwutCommand,-1,CMD_READONLY|CMD_FAST,0,.args=LOLWUT_Args}, +{"memory","A container for memory diagnostics commands","Depends on subcommand.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MEMORY_History,MEMORY_tips,NULL,-2,0,0,.subcommands=MEMORY_Subcommands}, +{"module","A container for module commands","Depends on subcommand.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MODULE_History,MODULE_tips,NULL,-2,0,0,.subcommands=MODULE_Subcommands}, +{"monitor","Listen for all requests received by the server in real time",NULL,"1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,MONITOR_History,MONITOR_tips,monitorCommand,1,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, +{"psync","Internal command used for replication",NULL,"2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,PSYNC_History,PSYNC_tips,syncCommand,-3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NO_MULTI|CMD_NOSCRIPT,0,.args=PSYNC_Args}, +{"replconf","An internal command for configuring the replication stream","O(1)","3.0.0",CMD_DOC_SYSCMD,NULL,NULL,COMMAND_GROUP_SERVER,REPLCONF_History,REPLCONF_tips,replconfCommand,-1,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE,0}, +{"replicaof","Make the server a replica of another instance, or promote it as master.","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,REPLICAOF_History,REPLICAOF_tips,replicaofCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_ALLOW_BUSY|CMD_NOSCRIPT|CMD_STALE,0,.args=REPLICAOF_Args}, +{"restore-asking","An internal command for migrating keys in a cluster","O(1) to create the new key and additional O(N*M) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). However for sorted set values the complexity is O(N*M*log(N)) because inserting values into sorted sets is O(log(N)).","3.0.0",CMD_DOC_SYSCMD,NULL,NULL,COMMAND_GROUP_SERVER,RESTORE_ASKING_History,RESTORE_ASKING_tips,restoreCommand,-4,CMD_WRITE|CMD_DENYOOM|CMD_ASKING,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}}}, +{"role","Return the role of the instance in the context of replication","O(1)","2.8.12",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,ROLE_History,ROLE_tips,roleCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_SENTINEL,ACL_CATEGORY_ADMIN|ACL_CATEGORY_DANGEROUS}, +{"save","Synchronously save the dataset to disk","O(N) where N is the total number of keys in all databases","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SAVE_History,SAVE_tips,saveCommand,1,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT|CMD_NO_MULTI,0}, +{"shutdown","Synchronously save the dataset to disk and then shut down the server","O(N) when saving, where N is the total number of keys in all databases when saving data, otherwise O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SHUTDOWN_History,SHUTDOWN_tips,shutdownCommand,-1,CMD_ADMIN|CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_NO_MULTI|CMD_SENTINEL|CMD_ALLOW_BUSY,0,.args=SHUTDOWN_Args}, +{"slaveof","Make the server a replica of another instance, or promote it as master. Deprecated starting with Redis 5. Use REPLICAOF instead.","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLAVEOF_History,SLAVEOF_tips,replicaofCommand,3,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NOSCRIPT|CMD_STALE,0,.args=SLAVEOF_Args}, +{"slowlog","A container for slow log commands","Depends on subcommand.","2.2.12",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SLOWLOG_History,SLOWLOG_tips,NULL,-2,0,0,.subcommands=SLOWLOG_Subcommands}, +{"swapdb","Swaps two Redis databases","O(N) where N is the count of clients watching or blocking on keys from both databases.","4.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SWAPDB_History,SWAPDB_tips,swapdbCommand,3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_KEYSPACE|ACL_CATEGORY_DANGEROUS,.args=SWAPDB_Args}, +{"sync","Internal command used for replication",NULL,"1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,SYNC_History,SYNC_tips,syncCommand,1,CMD_NO_ASYNC_LOADING|CMD_ADMIN|CMD_NO_MULTI|CMD_NOSCRIPT,0}, +{"time","Return the current server time","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SERVER,TIME_History,TIME_tips,timeCommand,1,CMD_LOADING|CMD_STALE|CMD_FAST,0}, /* set */ -{"sadd","Add one or more members to a set","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SADD_History,SADD_Hints,saddCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SADD_Args}, -{"scard","Get the number of members in a set","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SCARD_History,SCARD_Hints,scardCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SCARD_Args}, -{"sdiff","Subtract multiple sets","O(N) where N is the total number of elements in all given sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SDIFF_History,SDIFF_Hints,sdiffCommand,-2,CMD_READONLY|CMD_SORT_FOR_SCRIPT,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SDIFF_Args}, -{"sdiffstore","Subtract multiple sets and store the resulting set in a key","O(N) where N is the total number of elements in all given sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SDIFFSTORE_History,SDIFFSTORE_Hints,sdiffstoreCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SDIFFSTORE_Args}, -{"sinter","Intersect multiple sets","O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SINTER_History,SINTER_Hints,sinterCommand,-2,CMD_READONLY|CMD_SORT_FOR_SCRIPT,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SINTER_Args}, -{"sintercard","Intersect multiple sets and return the cardinality of the result","O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SINTERCARD_History,SINTERCARD_Hints,sinterCardCommand,-3,CMD_READONLY,ACL_CATEGORY_SET,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},sintercardGetKeys,.args=SINTERCARD_Args}, -{"sinterstore","Intersect multiple sets and store the resulting set in a key","O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SINTERSTORE_History,SINTERSTORE_Hints,sinterstoreCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SET,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SINTERSTORE_Args}, -{"sismember","Determine if a given value is a member of a set","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SISMEMBER_History,SISMEMBER_Hints,sismemberCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SISMEMBER_Args}, -{"smembers","Get all the members in a set","O(N) where N is the set cardinality.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SMEMBERS_History,SMEMBERS_Hints,sinterCommand,2,CMD_READONLY|CMD_SORT_FOR_SCRIPT,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SMEMBERS_Args}, -{"smismember","Returns the membership associated with the given elements for a set","O(N) where N is the number of elements being checked for membership","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SMISMEMBER_History,SMISMEMBER_Hints,smismemberCommand,-3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SMISMEMBER_Args}, -{"smove","Move a member from one set to another","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SMOVE_History,SMOVE_Hints,smoveCommand,4,CMD_WRITE|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SMOVE_Args}, -{"spop","Remove and return one or multiple random members from a set","Without the count argument O(1), otherwise O(N) where N is the value of the passed count.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SPOP_History,SPOP_Hints,spopCommand,-2,CMD_WRITE|CMD_RANDOM|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SPOP_Args}, -{"srandmember","Get one or multiple random members from a set","Without the count argument O(1), otherwise O(N) where N is the absolute value of the passed count.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SRANDMEMBER_History,SRANDMEMBER_Hints,srandmemberCommand,-2,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SRANDMEMBER_Args}, -{"srem","Remove one or more members from a set","O(N) where N is the number of members to be removed.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SREM_History,SREM_Hints,sremCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SREM_Args}, -{"sscan","Incrementally iterate Set elements","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection..","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SSCAN_History,SSCAN_Hints,sscanCommand,-3,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SSCAN_Args}, -{"sunion","Add multiple sets","O(N) where N is the total number of elements in all given sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SUNION_History,SUNION_Hints,sunionCommand,-2,CMD_READONLY|CMD_SORT_FOR_SCRIPT,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SUNION_Args}, -{"sunionstore","Add multiple sets and store the resulting set in a key","O(N) where N is the total number of elements in all given sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SUNIONSTORE_History,SUNIONSTORE_Hints,sunionstoreCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SUNIONSTORE_Args}, +{"sadd","Add one or more members to a set","O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SADD_History,SADD_tips,saddCommand,-3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SADD_Args}, +{"scard","Get the number of members in a set","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SCARD_History,SCARD_tips,scardCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SCARD_Args}, +{"sdiff","Subtract multiple sets","O(N) where N is the total number of elements in all given sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SDIFF_History,SDIFF_tips,sdiffCommand,-2,CMD_READONLY,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SDIFF_Args}, +{"sdiffstore","Subtract multiple sets and store the resulting set in a key","O(N) where N is the total number of elements in all given sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SDIFFSTORE_History,SDIFFSTORE_tips,sdiffstoreCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SDIFFSTORE_Args}, +{"sinter","Intersect multiple sets","O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SINTER_History,SINTER_tips,sinterCommand,-2,CMD_READONLY,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SINTER_Args}, +{"sintercard","Intersect multiple sets and return the cardinality of the result","O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SINTERCARD_History,SINTERCARD_tips,sinterCardCommand,-3,CMD_READONLY,ACL_CATEGORY_SET,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},sintercardGetKeys,.args=SINTERCARD_Args}, +{"sinterstore","Intersect multiple sets and store the resulting set in a key","O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SINTERSTORE_History,SINTERSTORE_tips,sinterstoreCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SET,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SINTERSTORE_Args}, +{"sismember","Determine if a given value is a member of a set","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SISMEMBER_History,SISMEMBER_tips,sismemberCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SISMEMBER_Args}, +{"smembers","Get all the members in a set","O(N) where N is the set cardinality.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SMEMBERS_History,SMEMBERS_tips,sinterCommand,2,CMD_READONLY,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SMEMBERS_Args}, +{"smismember","Returns the membership associated with the given elements for a set","O(N) where N is the number of elements being checked for membership","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SMISMEMBER_History,SMISMEMBER_tips,smismemberCommand,-3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SMISMEMBER_Args}, +{"smove","Move a member from one set to another","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SMOVE_History,SMOVE_tips,smoveCommand,4,CMD_WRITE|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SMOVE_Args}, +{"spop","Remove and return one or multiple random members from a set","Without the count argument O(1), otherwise O(N) where N is the value of the passed count.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SPOP_History,SPOP_tips,spopCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SPOP_Args}, +{"srandmember","Get one or multiple random members from a set","Without the count argument O(1), otherwise O(N) where N is the absolute value of the passed count.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SRANDMEMBER_History,SRANDMEMBER_tips,srandmemberCommand,-2,CMD_READONLY,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SRANDMEMBER_Args}, +{"srem","Remove one or more members from a set","O(N) where N is the number of members to be removed.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SREM_History,SREM_tips,sremCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_SET,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SREM_Args}, +{"sscan","Incrementally iterate Set elements","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection..","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SSCAN_History,SSCAN_tips,sscanCommand,-3,CMD_READONLY,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SSCAN_Args}, +{"sunion","Add multiple sets","O(N) where N is the total number of elements in all given sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SUNION_History,SUNION_tips,sunionCommand,-2,CMD_READONLY,ACL_CATEGORY_SET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SUNION_Args}, +{"sunionstore","Add multiple sets and store the resulting set in a key","O(N) where N is the total number of elements in all given sets.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SET,SUNIONSTORE_History,SUNIONSTORE_tips,sunionstoreCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=SUNIONSTORE_Args}, /* sorted_set */ -{"bzmpop","Remove and return members with scores in a sorted set or block until one is available","O(K) + O(N*log(M)) where K is the number of provided keys, N being the number of elements in the sorted set, and M being the number of elements popped.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,BZMPOP_History,BZMPOP_Hints,bzmpopCommand,-5,CMD_WRITE,ACL_CATEGORY_SORTEDSET|ACL_CATEGORY_BLOCKING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},blmpopGetKeys,.args=BZMPOP_Args}, -{"bzpopmax","Remove and return the member with the highest score from one or more sorted sets, or block until one is available","O(log(N)) with N being the number of elements in the sorted set.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,BZPOPMAX_History,BZPOPMAX_Hints,bzpopmaxCommand,-3,CMD_WRITE|CMD_NOSCRIPT|CMD_FAST,ACL_CATEGORY_SORTEDSET|ACL_CATEGORY_BLOCKING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-2,1,0}}},.args=BZPOPMAX_Args}, -{"bzpopmin","Remove and return the member with the lowest score from one or more sorted sets, or block until one is available","O(log(N)) with N being the number of elements in the sorted set.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,BZPOPMIN_History,BZPOPMIN_Hints,bzpopminCommand,-3,CMD_WRITE|CMD_NOSCRIPT|CMD_FAST,ACL_CATEGORY_SORTEDSET|ACL_CATEGORY_BLOCKING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-2,1,0}}},.args=BZPOPMIN_Args}, -{"zadd","Add one or more members to a sorted set, or update its score if it already exists","O(log(N)) for each item added, where N is the number of elements in the sorted set.","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZADD_History,ZADD_Hints,zaddCommand,-4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZADD_Args}, -{"zcard","Get the number of members in a sorted set","O(1)","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZCARD_History,ZCARD_Hints,zcardCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZCARD_Args}, -{"zcount","Count the members in a sorted set with scores within the given values","O(log(N)) with N being the number of elements in the sorted set.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZCOUNT_History,ZCOUNT_Hints,zcountCommand,4,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZCOUNT_Args}, -{"zdiff","Subtract multiple sorted sets","O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZDIFF_History,ZDIFF_Hints,zdiffCommand,-3,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffGetKeys,.args=ZDIFF_Args}, -{"zdiffstore","Subtract multiple sorted sets and store the resulting sorted set in a new key","O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZDIFFSTORE_History,ZDIFFSTORE_Hints,zdiffstoreCommand,-4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffStoreGetKeys,.args=ZDIFFSTORE_Args}, -{"zincrby","Increment the score of a member in a sorted set","O(log(N)) where N is the number of elements in the sorted set.","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZINCRBY_History,ZINCRBY_Hints,zincrbyCommand,4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZINCRBY_Args}, -{"zinter","Intersect multiple sorted sets","O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZINTER_History,ZINTER_Hints,zinterCommand,-3,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffGetKeys,.args=ZINTER_Args}, -{"zintercard","Intersect multiple sorted sets and return the cardinality of the result","O(N*K) worst case with N being the smallest input sorted set, K being the number of input sorted sets.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZINTERCARD_History,ZINTERCARD_Hints,zinterCardCommand,-3,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffGetKeys,.args=ZINTERCARD_Args}, -{"zinterstore","Intersect multiple sorted sets and store the resulting sorted set in a new key","O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZINTERSTORE_History,ZINTERSTORE_Hints,zinterstoreCommand,-4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffStoreGetKeys,.args=ZINTERSTORE_Args}, -{"zlexcount","Count the number of members in a sorted set between a given lexicographical range","O(log(N)) with N being the number of elements in the sorted set.","2.8.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZLEXCOUNT_History,ZLEXCOUNT_Hints,zlexcountCommand,4,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZLEXCOUNT_Args}, -{"zmpop","Remove and return members with scores in a sorted set","O(K) + O(N*log(M)) where K is the number of provided keys, N being the number of elements in the sorted set, and M being the number of elements popped.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZMPOP_History,ZMPOP_Hints,zmpopCommand,-4,CMD_WRITE,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zmpopGetKeys,.args=ZMPOP_Args}, -{"zmscore","Get the score associated with the given members in a sorted set","O(N) where N is the number of members being requested.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZMSCORE_History,ZMSCORE_Hints,zmscoreCommand,-3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZMSCORE_Args}, -{"zpopmax","Remove and return members with the highest scores in a sorted set","O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZPOPMAX_History,ZPOPMAX_Hints,zpopmaxCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZPOPMAX_Args}, -{"zpopmin","Remove and return members with the lowest scores in a sorted set","O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZPOPMIN_History,ZPOPMIN_Hints,zpopminCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZPOPMIN_Args}, -{"zrandmember","Get one or multiple random elements from a sorted set","O(N) where N is the number of elements returned","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZRANDMEMBER_History,ZRANDMEMBER_Hints,zrandmemberCommand,-2,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANDMEMBER_Args}, -{"zrange","Return a range of members in a sorted set","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZRANGE_History,ZRANGE_Hints,zrangeCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANGE_Args}, -{"zrangebylex","Return a range of members in a sorted set, by lexicographical range","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","2.8.9",CMD_DOC_DEPRECATED,"`ZRANGE` with the `BYSCORE` argument","6.2.0",COMMAND_GROUP_SORTED_SET,ZRANGEBYLEX_History,ZRANGEBYLEX_Hints,zrangebylexCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANGEBYLEX_Args}, -{"zrangebyscore","Return a range of members in a sorted set, by score","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","1.0.5",CMD_DOC_DEPRECATED,"`ZRANGE` with the `BYSCORE` argument","6.2.0",COMMAND_GROUP_SORTED_SET,ZRANGEBYSCORE_History,ZRANGEBYSCORE_Hints,zrangebyscoreCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANGEBYSCORE_Args}, -{"zrangestore","Store a range of members from sorted set into another key","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements stored into the destination key.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZRANGESTORE_History,ZRANGESTORE_Hints,zrangestoreCommand,-5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANGESTORE_Args}, -{"zrank","Determine the index of a member in a sorted set","O(log(N))","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZRANK_History,ZRANK_Hints,zrankCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANK_Args}, -{"zrem","Remove one or more members from a sorted set","O(M*log(N)) with N being the number of elements in the sorted set and M the number of elements to be removed.","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZREM_History,ZREM_Hints,zremCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREM_Args}, -{"zremrangebylex","Remove all members in a sorted set between the given lexicographical range","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.","2.8.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZREMRANGEBYLEX_History,ZREMRANGEBYLEX_Hints,zremrangebylexCommand,4,CMD_WRITE,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREMRANGEBYLEX_Args}, -{"zremrangebyrank","Remove all members in a sorted set within the given indexes","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZREMRANGEBYRANK_History,ZREMRANGEBYRANK_Hints,zremrangebyrankCommand,4,CMD_WRITE,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREMRANGEBYRANK_Args}, -{"zremrangebyscore","Remove all members in a sorted set within the given scores","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZREMRANGEBYSCORE_History,ZREMRANGEBYSCORE_Hints,zremrangebyscoreCommand,4,CMD_WRITE,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREMRANGEBYSCORE_Args}, -{"zrevrange","Return a range of members in a sorted set, by index, with scores ordered from high to low","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.","1.2.0",CMD_DOC_DEPRECATED,"`ZRANGE` with the `REV` argument","6.2.0",COMMAND_GROUP_SORTED_SET,ZREVRANGE_History,ZREVRANGE_Hints,zrevrangeCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREVRANGE_Args}, -{"zrevrangebylex","Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","2.8.9",CMD_DOC_DEPRECATED,"`ZRANGE` with the `REV` and `BYLEX` arguments","6.2.0",COMMAND_GROUP_SORTED_SET,ZREVRANGEBYLEX_History,ZREVRANGEBYLEX_Hints,zrevrangebylexCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREVRANGEBYLEX_Args}, -{"zrevrangebyscore","Return a range of members in a sorted set, by score, with scores ordered from high to low","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","2.2.0",CMD_DOC_DEPRECATED,"`ZRANGE` with the `REV` and `BYSCORE` arguments","6.2.0",COMMAND_GROUP_SORTED_SET,ZREVRANGEBYSCORE_History,ZREVRANGEBYSCORE_Hints,zrevrangebyscoreCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREVRANGEBYSCORE_Args}, -{"zrevrank","Determine the index of a member in a sorted set, with scores ordered from high to low","O(log(N))","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZREVRANK_History,ZREVRANK_Hints,zrevrankCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREVRANK_Args}, -{"zscan","Incrementally iterate sorted sets elements and associated scores","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection..","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZSCAN_History,ZSCAN_Hints,zscanCommand,-3,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZSCAN_Args}, -{"zscore","Get the score associated with the given member in a sorted set","O(1)","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZSCORE_History,ZSCORE_Hints,zscoreCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZSCORE_Args}, -{"zunion","Add multiple sorted sets","O(N)+O(M*log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZUNION_History,ZUNION_Hints,zunionCommand,-3,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffGetKeys,.args=ZUNION_Args}, -{"zunionstore","Add multiple sorted sets and store the resulting sorted set in a new key","O(N)+O(M log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZUNIONSTORE_History,ZUNIONSTORE_Hints,zunionstoreCommand,-4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffStoreGetKeys,.args=ZUNIONSTORE_Args}, +{"bzmpop","Remove and return members with scores in a sorted set or block until one is available","O(K) + O(N*log(M)) where K is the number of provided keys, N being the number of elements in the sorted set, and M being the number of elements popped.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,BZMPOP_History,BZMPOP_tips,bzmpopCommand,-5,CMD_WRITE|CMD_BLOCKING,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},blmpopGetKeys,.args=BZMPOP_Args}, +{"bzpopmax","Remove and return the member with the highest score from one or more sorted sets, or block until one is available","O(log(N)) with N being the number of elements in the sorted set.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,BZPOPMAX_History,BZPOPMAX_tips,bzpopmaxCommand,-3,CMD_WRITE|CMD_NOSCRIPT|CMD_FAST|CMD_BLOCKING,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-2,1,0}}},.args=BZPOPMAX_Args}, +{"bzpopmin","Remove and return the member with the lowest score from one or more sorted sets, or block until one is available","O(log(N)) with N being the number of elements in the sorted set.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,BZPOPMIN_History,BZPOPMIN_tips,bzpopminCommand,-3,CMD_WRITE|CMD_NOSCRIPT|CMD_FAST|CMD_BLOCKING,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-2,1,0}}},.args=BZPOPMIN_Args}, +{"zadd","Add one or more members to a sorted set, or update its score if it already exists","O(log(N)) for each item added, where N is the number of elements in the sorted set.","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZADD_History,ZADD_tips,zaddCommand,-4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZADD_Args}, +{"zcard","Get the number of members in a sorted set","O(1)","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZCARD_History,ZCARD_tips,zcardCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZCARD_Args}, +{"zcount","Count the members in a sorted set with scores within the given values","O(log(N)) with N being the number of elements in the sorted set.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZCOUNT_History,ZCOUNT_tips,zcountCommand,4,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZCOUNT_Args}, +{"zdiff","Subtract multiple sorted sets","O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZDIFF_History,ZDIFF_tips,zdiffCommand,-3,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffGetKeys,.args=ZDIFF_Args}, +{"zdiffstore","Subtract multiple sorted sets and store the resulting sorted set in a new key","O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZDIFFSTORE_History,ZDIFFSTORE_tips,zdiffstoreCommand,-4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffStoreGetKeys,.args=ZDIFFSTORE_Args}, +{"zincrby","Increment the score of a member in a sorted set","O(log(N)) where N is the number of elements in the sorted set.","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZINCRBY_History,ZINCRBY_tips,zincrbyCommand,4,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZINCRBY_Args}, +{"zinter","Intersect multiple sorted sets","O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZINTER_History,ZINTER_tips,zinterCommand,-3,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffGetKeys,.args=ZINTER_Args}, +{"zintercard","Intersect multiple sorted sets and return the cardinality of the result","O(N*K) worst case with N being the smallest input sorted set, K being the number of input sorted sets.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZINTERCARD_History,ZINTERCARD_tips,zinterCardCommand,-3,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffGetKeys,.args=ZINTERCARD_Args}, +{"zinterstore","Intersect multiple sorted sets and store the resulting sorted set in a new key","O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZINTERSTORE_History,ZINTERSTORE_tips,zinterstoreCommand,-4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffStoreGetKeys,.args=ZINTERSTORE_Args}, +{"zlexcount","Count the number of members in a sorted set between a given lexicographical range","O(log(N)) with N being the number of elements in the sorted set.","2.8.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZLEXCOUNT_History,ZLEXCOUNT_tips,zlexcountCommand,4,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZLEXCOUNT_Args}, +{"zmpop","Remove and return members with scores in a sorted set","O(K) + O(N*log(M)) where K is the number of provided keys, N being the number of elements in the sorted set, and M being the number of elements popped.","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZMPOP_History,ZMPOP_tips,zmpopCommand,-4,CMD_WRITE,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zmpopGetKeys,.args=ZMPOP_Args}, +{"zmscore","Get the score associated with the given members in a sorted set","O(N) where N is the number of members being requested.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZMSCORE_History,ZMSCORE_tips,zmscoreCommand,-3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZMSCORE_Args}, +{"zpopmax","Remove and return members with the highest scores in a sorted set","O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZPOPMAX_History,ZPOPMAX_tips,zpopmaxCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZPOPMAX_Args}, +{"zpopmin","Remove and return members with the lowest scores in a sorted set","O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZPOPMIN_History,ZPOPMIN_tips,zpopminCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZPOPMIN_Args}, +{"zrandmember","Get one or multiple random elements from a sorted set","O(N) where N is the number of elements returned","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZRANDMEMBER_History,ZRANDMEMBER_tips,zrandmemberCommand,-2,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANDMEMBER_Args}, +{"zrange","Return a range of members in a sorted set","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZRANGE_History,ZRANGE_tips,zrangeCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANGE_Args}, +{"zrangebylex","Return a range of members in a sorted set, by lexicographical range","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","2.8.9",CMD_DOC_DEPRECATED,"`ZRANGE` with the `BYSCORE` argument","6.2.0",COMMAND_GROUP_SORTED_SET,ZRANGEBYLEX_History,ZRANGEBYLEX_tips,zrangebylexCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANGEBYLEX_Args}, +{"zrangebyscore","Return a range of members in a sorted set, by score","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","1.0.5",CMD_DOC_DEPRECATED,"`ZRANGE` with the `BYSCORE` argument","6.2.0",COMMAND_GROUP_SORTED_SET,ZRANGEBYSCORE_History,ZRANGEBYSCORE_tips,zrangebyscoreCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANGEBYSCORE_Args}, +{"zrangestore","Store a range of members from sorted set into another key","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements stored into the destination key.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZRANGESTORE_History,ZRANGESTORE_tips,zrangestoreCommand,-5,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANGESTORE_Args}, +{"zrank","Determine the index of a member in a sorted set","O(log(N))","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZRANK_History,ZRANK_tips,zrankCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZRANK_Args}, +{"zrem","Remove one or more members from a sorted set","O(M*log(N)) with N being the number of elements in the sorted set and M the number of elements to be removed.","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZREM_History,ZREM_tips,zremCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREM_Args}, +{"zremrangebylex","Remove all members in a sorted set between the given lexicographical range","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.","2.8.9",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZREMRANGEBYLEX_History,ZREMRANGEBYLEX_tips,zremrangebylexCommand,4,CMD_WRITE,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREMRANGEBYLEX_Args}, +{"zremrangebyrank","Remove all members in a sorted set within the given indexes","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZREMRANGEBYRANK_History,ZREMRANGEBYRANK_tips,zremrangebyrankCommand,4,CMD_WRITE,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREMRANGEBYRANK_Args}, +{"zremrangebyscore","Remove all members in a sorted set within the given scores","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZREMRANGEBYSCORE_History,ZREMRANGEBYSCORE_tips,zremrangebyscoreCommand,4,CMD_WRITE,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREMRANGEBYSCORE_Args}, +{"zrevrange","Return a range of members in a sorted set, by index, with scores ordered from high to low","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.","1.2.0",CMD_DOC_DEPRECATED,"`ZRANGE` with the `REV` argument","6.2.0",COMMAND_GROUP_SORTED_SET,ZREVRANGE_History,ZREVRANGE_tips,zrevrangeCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREVRANGE_Args}, +{"zrevrangebylex","Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","2.8.9",CMD_DOC_DEPRECATED,"`ZRANGE` with the `REV` and `BYLEX` arguments","6.2.0",COMMAND_GROUP_SORTED_SET,ZREVRANGEBYLEX_History,ZREVRANGEBYLEX_tips,zrevrangebylexCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREVRANGEBYLEX_Args}, +{"zrevrangebyscore","Return a range of members in a sorted set, by score, with scores ordered from high to low","O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).","2.2.0",CMD_DOC_DEPRECATED,"`ZRANGE` with the `REV` and `BYSCORE` arguments","6.2.0",COMMAND_GROUP_SORTED_SET,ZREVRANGEBYSCORE_History,ZREVRANGEBYSCORE_tips,zrevrangebyscoreCommand,-4,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREVRANGEBYSCORE_Args}, +{"zrevrank","Determine the index of a member in a sorted set, with scores ordered from high to low","O(log(N))","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZREVRANK_History,ZREVRANK_tips,zrevrankCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZREVRANK_Args}, +{"zscan","Incrementally iterate sorted sets elements and associated scores","O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection..","2.8.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZSCAN_History,ZSCAN_tips,zscanCommand,-3,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZSCAN_Args}, +{"zscore","Get the score associated with the given member in a sorted set","O(1)","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZSCORE_History,ZSCORE_tips,zscoreCommand,3,CMD_READONLY|CMD_FAST,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=ZSCORE_Args}, +{"zunion","Add multiple sorted sets","O(N)+O(M*log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZUNION_History,ZUNION_tips,zunionCommand,-3,CMD_READONLY,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffGetKeys,.args=ZUNION_Args}, +{"zunionstore","Add multiple sorted sets and store the resulting sorted set in a new key","O(N)+O(M log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_SORTED_SET,ZUNIONSTORE_History,ZUNIONSTORE_tips,zunionstoreCommand,-4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_SORTEDSET,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}},{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={2},KSPEC_FK_KEYNUM,.fk.keynum={0,1,1}}},zunionInterDiffStoreGetKeys,.args=ZUNIONSTORE_Args}, /* stream */ -{"xack","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.","O(1) for each message ID processed.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XACK_History,XACK_Hints,xackCommand,-4,CMD_WRITE|CMD_RANDOM|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XACK_Args}, -{"xadd","Appends a new entry to a stream","O(1) when adding a new entry, O(N) when trimming where N being the number of entries evicted.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XADD_History,XADD_Hints,xaddCommand,-5,CMD_WRITE|CMD_DENYOOM|CMD_RANDOM|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XADD_Args}, -{"xautoclaim","Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to the specified consumer.","O(1) if COUNT is small.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XAUTOCLAIM_History,XAUTOCLAIM_Hints,xautoclaimCommand,-6,CMD_WRITE|CMD_RANDOM|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XAUTOCLAIM_Args}, -{"xclaim","Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer.","O(log N) with N being the number of messages in the PEL of the consumer group.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XCLAIM_History,XCLAIM_Hints,xclaimCommand,-6,CMD_WRITE|CMD_RANDOM|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XCLAIM_Args}, -{"xdel","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.","O(1) for each single item to delete in the stream, regardless of the stream size.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XDEL_History,XDEL_Hints,xdelCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XDEL_Args}, -{"xgroup","A container for consumer groups commands","Depends on subcommand.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_History,XGROUP_Hints,NULL,-2,0,0,.subcommands=XGROUP_Subcommands}, -{"xinfo","A container for stream introspection commands","Depends on subcommand.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XINFO_History,XINFO_Hints,NULL,-2,0,0,.subcommands=XINFO_Subcommands}, -{"xlen","Return the number of entries in a stream","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XLEN_History,XLEN_Hints,xlenCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XLEN_Args}, -{"xpending","Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged.","O(N) with N being the number of elements returned, so asking for a small fixed number of entries per call is O(1). O(M), where M is the total number of entries scanned when used with the IDLE filter. When the command returns just the summary and the list of consumers is small, it runs in O(1) time; otherwise, an additional O(N) time for iterating every consumer.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XPENDING_History,XPENDING_Hints,xpendingCommand,-3,CMD_READONLY|CMD_RANDOM,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XPENDING_Args}, -{"xrange","Return a range of elements in a stream, with IDs matching the specified IDs interval","O(N) with N being the number of elements being returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1).","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XRANGE_History,XRANGE_Hints,xrangeCommand,-4,CMD_READONLY,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XRANGE_Args}, -{"xread","Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block.","For each stream mentioned: O(N) with N being the number of elements being returned, it means that XREAD-ing with a fixed COUNT is O(1). Note that when the BLOCK option is used, XADD will pay O(M) time in order to serve the M clients blocked on the stream getting new data.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XREAD_History,XREAD_Hints,xreadCommand,-4,CMD_READONLY,ACL_CATEGORY_STREAM|ACL_CATEGORY_BLOCKING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_KEYWORD,.bs.keyword={"STREAMS",1},KSPEC_FK_RANGE,.fk.range={-1,1,2}}},xreadGetKeys,.args=XREAD_Args}, -{"xreadgroup","Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block.","For each stream mentioned: O(M) with M being the number of elements returned. If M is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1). On the other side when XREADGROUP blocks, XADD will pay the O(N) time in order to serve the N clients blocked on the stream getting new data.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XREADGROUP_History,XREADGROUP_Hints,xreadCommand,-7,CMD_WRITE,ACL_CATEGORY_STREAM|ACL_CATEGORY_BLOCKING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_KEYWORD,.bs.keyword={"STREAMS",4},KSPEC_FK_RANGE,.fk.range={-1,1,2}}},xreadGetKeys,.args=XREADGROUP_Args}, -{"xrevrange","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","O(N) with N being the number of elements returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1).","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XREVRANGE_History,XREVRANGE_Hints,xrevrangeCommand,-4,CMD_READONLY,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XREVRANGE_Args}, -{"xsetid","An internal command for replicating stream values","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XSETID_History,XSETID_Hints,xsetidCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XSETID_Args}, -{"xtrim","Trims the stream to (approximately if '~' is passed) a certain size","O(N), with N being the number of evicted entries. Constant times are very small however, since entries are organized in macro nodes containing multiple entries that can be released with a single deallocation.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XTRIM_History,XTRIM_Hints,xtrimCommand,-4,CMD_WRITE|CMD_RANDOM,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XTRIM_Args}, +{"xack","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.","O(1) for each message ID processed.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XACK_History,XACK_tips,xackCommand,-4,CMD_WRITE|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XACK_Args}, +{"xadd","Appends a new entry to a stream","O(1) when adding a new entry, O(N) when trimming where N being the number of entries evicted.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XADD_History,XADD_tips,xaddCommand,-5,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XADD_Args}, +{"xautoclaim","Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to the specified consumer.","O(1) if COUNT is small.","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XAUTOCLAIM_History,XAUTOCLAIM_tips,xautoclaimCommand,-6,CMD_WRITE|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XAUTOCLAIM_Args}, +{"xclaim","Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer.","O(log N) with N being the number of messages in the PEL of the consumer group.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XCLAIM_History,XCLAIM_tips,xclaimCommand,-6,CMD_WRITE|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XCLAIM_Args}, +{"xdel","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.","O(1) for each single item to delete in the stream, regardless of the stream size.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XDEL_History,XDEL_tips,xdelCommand,-3,CMD_WRITE|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XDEL_Args}, +{"xgroup","A container for consumer groups commands","Depends on subcommand.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XGROUP_History,XGROUP_tips,NULL,-2,0,0,.subcommands=XGROUP_Subcommands}, +{"xinfo","A container for stream introspection commands","Depends on subcommand.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XINFO_History,XINFO_tips,NULL,-2,0,0,.subcommands=XINFO_Subcommands}, +{"xlen","Return the number of entries in a stream","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XLEN_History,XLEN_tips,xlenCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XLEN_Args}, +{"xpending","Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged.","O(N) with N being the number of elements returned, so asking for a small fixed number of entries per call is O(1). O(M), where M is the total number of entries scanned when used with the IDLE filter. When the command returns just the summary and the list of consumers is small, it runs in O(1) time; otherwise, an additional O(N) time for iterating every consumer.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XPENDING_History,XPENDING_tips,xpendingCommand,-3,CMD_READONLY,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XPENDING_Args}, +{"xrange","Return a range of elements in a stream, with IDs matching the specified IDs interval","O(N) with N being the number of elements being returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1).","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XRANGE_History,XRANGE_tips,xrangeCommand,-4,CMD_READONLY,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XRANGE_Args}, +{"xread","Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block.","For each stream mentioned: O(N) with N being the number of elements being returned, it means that XREAD-ing with a fixed COUNT is O(1). Note that when the BLOCK option is used, XADD will pay O(M) time in order to serve the M clients blocked on the stream getting new data.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XREAD_History,XREAD_tips,xreadCommand,-4,CMD_BLOCKING|CMD_READONLY|CMD_BLOCKING,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_KEYWORD,.bs.keyword={"STREAMS",1},KSPEC_FK_RANGE,.fk.range={-1,1,2}}},xreadGetKeys,.args=XREAD_Args}, +{"xreadgroup","Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block.","For each stream mentioned: O(M) with M being the number of elements returned. If M is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1). On the other side when XREADGROUP blocks, XADD will pay the O(N) time in order to serve the N clients blocked on the stream getting new data.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XREADGROUP_History,XREADGROUP_tips,xreadCommand,-7,CMD_BLOCKING|CMD_WRITE,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_KEYWORD,.bs.keyword={"STREAMS",4},KSPEC_FK_RANGE,.fk.range={-1,1,2}}},xreadGetKeys,.args=XREADGROUP_Args}, +{"xrevrange","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","O(N) with N being the number of elements returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1).","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XREVRANGE_History,XREVRANGE_tips,xrevrangeCommand,-4,CMD_READONLY,ACL_CATEGORY_STREAM,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XREVRANGE_Args}, +{"xsetid","An internal command for replicating stream values","O(1)","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XSETID_History,XSETID_tips,xsetidCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XSETID_Args}, +{"xtrim","Trims the stream to (approximately if '~' is passed) a certain size","O(N), with N being the number of evicted entries. Constant times are very small however, since entries are organized in macro nodes containing multiple entries that can be released with a single deallocation.","5.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STREAM,XTRIM_History,XTRIM_tips,xtrimCommand,-4,CMD_WRITE,ACL_CATEGORY_STREAM,{{CMD_KEY_RW|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=XTRIM_Args}, /* string */ -{"append","Append a value to a key","O(1). The amortized time complexity is O(1) assuming the appended value is small and the already present value is of any size, since the dynamic string library used by Redis will double the free space available on every reallocation.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,APPEND_History,APPEND_Hints,appendCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=APPEND_Args}, -{"decr","Decrement the integer value of a key by one","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,DECR_History,DECR_Hints,decrCommand,2,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=DECR_Args}, -{"decrby","Decrement the integer value of a key by the given number","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,DECRBY_History,DECRBY_Hints,decrbyCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=DECRBY_Args}, -{"get","Get the value of a key","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,GET_History,GET_Hints,getCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GET_Args}, -{"getdel","Get the value of a key and delete the key","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,GETDEL_History,GETDEL_Hints,getdelCommand,2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GETDEL_Args}, -{"getex","Get the value of a key and optionally set its expiration","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,GETEX_History,GETEX_Hints,getexCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GETEX_Args}, -{"getrange","Get a substring of the string stored at a key","O(N) where N is the length of the returned string. The complexity is ultimately determined by the returned length, but because creating a substring from an existing string is very cheap, it can be considered O(1) for small strings.","2.4.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,GETRANGE_History,GETRANGE_Hints,getrangeCommand,4,CMD_READONLY,ACL_CATEGORY_STRING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GETRANGE_Args}, -{"getset","Set the string value of a key and return its old value","O(1)","1.0.0",CMD_DOC_DEPRECATED,"`SET` with the `!GET` argument","6.2.0",COMMAND_GROUP_STRING,GETSET_History,GETSET_Hints,getsetCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GETSET_Args}, -{"incr","Increment the integer value of a key by one","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,INCR_History,INCR_Hints,incrCommand,2,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=INCR_Args}, -{"incrby","Increment the integer value of a key by the given amount","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,INCRBY_History,INCRBY_Hints,incrbyCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=INCRBY_Args}, -{"incrbyfloat","Increment the float value of a key by the given amount","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,INCRBYFLOAT_History,INCRBYFLOAT_Hints,incrbyfloatCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=INCRBYFLOAT_Args}, -{"lcs","Find longest common substring","O(N*M) where N and M are the lengths of s1 and s2, respectively","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,LCS_History,LCS_Hints,lcsCommand,-3,CMD_READONLY,ACL_CATEGORY_STRING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={1,1,0}}},.args=LCS_Args}, -{"mget","Get the values of all the given keys","O(N) where N is the number of keys to retrieve.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,MGET_History,MGET_Hints,mgetCommand,-2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=MGET_Args}, -{"mset","Set multiple keys to multiple values","O(N) where N is the number of keys to set.","1.0.1",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,MSET_History,MSET_Hints,msetCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,2,0}}},.args=MSET_Args}, -{"msetnx","Set multiple keys to multiple values, only if none of the keys exist","O(N) where N is the number of keys to set.","1.0.1",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,MSETNX_History,MSETNX_Hints,msetnxCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_OW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,2,0}}},.args=MSETNX_Args}, -{"psetex","Set the value and expiration in milliseconds of a key","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,PSETEX_History,PSETEX_Hints,psetexCommand,4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PSETEX_Args}, -{"set","Set the string value of a key","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,SET_History,SET_Hints,setCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SET_Args}, -{"setex","Set the value and expiration of a key","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,SETEX_History,SETEX_Hints,setexCommand,4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SETEX_Args}, -{"setnx","Set the value of a key, only if the key does not exist","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,SETNX_History,SETNX_Hints,setnxCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_OW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SETNX_Args}, -{"setrange","Overwrite part of a string at key starting at the specified offset","O(1), not counting the time taken to copy the new string in place. Usually, this string is very small so the amortized complexity is O(1). Otherwise, complexity is O(M) with M being the length of the value argument.","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,SETRANGE_History,SETRANGE_Hints,setrangeCommand,4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SETRANGE_Args}, -{"strlen","Get the length of the value stored in a key","O(1)","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,STRLEN_History,STRLEN_Hints,strlenCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=STRLEN_Args}, -{"substr","Get a substring of the string stored at a key","O(N) where N is the length of the returned string. The complexity is ultimately determined by the returned length, but because creating a substring from an existing string is very cheap, it can be considered O(1) for small strings.","1.0.0",CMD_DOC_DEPRECATED,"`GETRANGE`","2.0.0",COMMAND_GROUP_STRING,SUBSTR_History,SUBSTR_Hints,getrangeCommand,4,CMD_READONLY,ACL_CATEGORY_STRING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SUBSTR_Args}, +{"append","Append a value to a key","O(1). The amortized time complexity is O(1) assuming the appended value is small and the already present value is of any size, since the dynamic string library used by Redis will double the free space available on every reallocation.","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,APPEND_History,APPEND_tips,appendCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=APPEND_Args}, +{"decr","Decrement the integer value of a key by one","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,DECR_History,DECR_tips,decrCommand,2,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=DECR_Args}, +{"decrby","Decrement the integer value of a key by the given number","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,DECRBY_History,DECRBY_tips,decrbyCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=DECRBY_Args}, +{"get","Get the value of a key","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,GET_History,GET_tips,getCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GET_Args}, +{"getdel","Get the value of a key and delete the key","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,GETDEL_History,GETDEL_tips,getdelCommand,2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_DELETE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GETDEL_Args}, +{"getex","Get the value of a key and optionally set its expiration","O(1)","6.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,GETEX_History,GETEX_tips,getexCommand,-2,CMD_WRITE|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GETEX_Args}, +{"getrange","Get a substring of the string stored at a key","O(N) where N is the length of the returned string. The complexity is ultimately determined by the returned length, but because creating a substring from an existing string is very cheap, it can be considered O(1) for small strings.","2.4.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,GETRANGE_History,GETRANGE_tips,getrangeCommand,4,CMD_READONLY,ACL_CATEGORY_STRING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GETRANGE_Args}, +{"getset","Set the string value of a key and return its old value","O(1)","1.0.0",CMD_DOC_DEPRECATED,"`SET` with the `!GET` argument","6.2.0",COMMAND_GROUP_STRING,GETSET_History,GETSET_tips,getsetCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=GETSET_Args}, +{"incr","Increment the integer value of a key by one","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,INCR_History,INCR_tips,incrCommand,2,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=INCR_Args}, +{"incrby","Increment the integer value of a key by the given amount","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,INCRBY_History,INCRBY_tips,incrbyCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=INCRBY_Args}, +{"incrbyfloat","Increment the float value of a key by the given amount","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,INCRBYFLOAT_History,INCRBYFLOAT_tips,incrbyfloatCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=INCRBYFLOAT_Args}, +{"lcs","Find longest common substring","O(N*M) where N and M are the lengths of s1 and s2, respectively","7.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,LCS_History,LCS_tips,lcsCommand,-3,CMD_READONLY,ACL_CATEGORY_STRING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={1,1,0}}},.args=LCS_Args}, +{"mget","Get the values of all the given keys","O(N) where N is the number of keys to retrieve.","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,MGET_History,MGET_tips,mgetCommand,-2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=MGET_Args}, +{"mset","Set multiple keys to multiple values","O(N) where N is the number of keys to set.","1.0.1",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,MSET_History,MSET_tips,msetCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,2,0}}},.args=MSET_Args}, +{"msetnx","Set multiple keys to multiple values, only if none of the keys exist","O(N) where N is the number of keys to set.","1.0.1",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,MSETNX_History,MSETNX_tips,msetnxCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_OW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,2,0}}},.args=MSETNX_Args}, +{"psetex","Set the value and expiration in milliseconds of a key","O(1)","2.6.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,PSETEX_History,PSETEX_tips,psetexCommand,4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=PSETEX_Args}, +{"set","Set the string value of a key","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,SET_History,SET_tips,setCommand,-3,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_ACCESS|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SET_Args}, +{"setex","Set the value and expiration of a key","O(1)","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,SETEX_History,SETEX_tips,setexCommand,4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_OW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SETEX_Args}, +{"setnx","Set the value of a key, only if the key does not exist","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,SETNX_History,SETNX_tips,setnxCommand,3,CMD_WRITE|CMD_DENYOOM|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_OW|CMD_KEY_INSERT,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SETNX_Args}, +{"setrange","Overwrite part of a string at key starting at the specified offset","O(1), not counting the time taken to copy the new string in place. Usually, this string is very small so the amortized complexity is O(1). Otherwise, complexity is O(M) with M being the length of the value argument.","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,SETRANGE_History,SETRANGE_tips,setrangeCommand,4,CMD_WRITE|CMD_DENYOOM,ACL_CATEGORY_STRING,{{CMD_KEY_RW|CMD_KEY_UPDATE,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SETRANGE_Args}, +{"strlen","Get the length of the value stored in a key","O(1)","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,STRLEN_History,STRLEN_tips,strlenCommand,2,CMD_READONLY|CMD_FAST,ACL_CATEGORY_STRING,{{CMD_KEY_RO,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=STRLEN_Args}, +{"substr","Get a substring of the string stored at a key","O(N) where N is the length of the returned string. The complexity is ultimately determined by the returned length, but because creating a substring from an existing string is very cheap, it can be considered O(1) for small strings.","1.0.0",CMD_DOC_DEPRECATED,"`GETRANGE`","2.0.0",COMMAND_GROUP_STRING,SUBSTR_History,SUBSTR_tips,getrangeCommand,4,CMD_READONLY,ACL_CATEGORY_STRING,{{CMD_KEY_RO|CMD_KEY_ACCESS,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SUBSTR_Args}, /* transactions */ -{"discard","Discard all commands issued after MULTI","O(N), when N is the number of queued commands","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_TRANSACTIONS,DISCARD_History,DISCARD_Hints,discardCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_ALLOW_BUSY,ACL_CATEGORY_TRANSACTION}, -{"exec","Execute all commands issued after MULTI","Depends on commands in the transaction","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_TRANSACTIONS,EXEC_History,EXEC_Hints,execCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SKIP_SLOWLOG,ACL_CATEGORY_TRANSACTION}, -{"multi","Mark the start of a transaction block","O(1)","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_TRANSACTIONS,MULTI_History,MULTI_Hints,multiCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_ALLOW_BUSY,ACL_CATEGORY_TRANSACTION}, -{"unwatch","Forget about all watched keys","O(1)","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_TRANSACTIONS,UNWATCH_History,UNWATCH_Hints,unwatchCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_ALLOW_BUSY,ACL_CATEGORY_TRANSACTION}, -{"watch","Watch the given keys to determine execution of the MULTI/EXEC block","O(1) for every key.","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_TRANSACTIONS,WATCH_History,WATCH_Hints,watchCommand,-2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_ALLOW_BUSY,ACL_CATEGORY_TRANSACTION,{{0,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=WATCH_Args}, +{"discard","Discard all commands issued after MULTI","O(N), when N is the number of queued commands","2.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_TRANSACTIONS,DISCARD_History,DISCARD_tips,discardCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_ALLOW_BUSY,ACL_CATEGORY_TRANSACTION}, +{"exec","Execute all commands issued after MULTI","Depends on commands in the transaction","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_TRANSACTIONS,EXEC_History,EXEC_tips,execCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_SKIP_SLOWLOG,ACL_CATEGORY_TRANSACTION}, +{"multi","Mark the start of a transaction block","O(1)","1.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_TRANSACTIONS,MULTI_History,MULTI_tips,multiCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_ALLOW_BUSY,ACL_CATEGORY_TRANSACTION}, +{"unwatch","Forget about all watched keys","O(1)","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_TRANSACTIONS,UNWATCH_History,UNWATCH_tips,unwatchCommand,1,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_ALLOW_BUSY,ACL_CATEGORY_TRANSACTION}, +{"watch","Watch the given keys to determine execution of the MULTI/EXEC block","O(1) for every key.","2.2.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_TRANSACTIONS,WATCH_History,WATCH_tips,watchCommand,-2,CMD_NOSCRIPT|CMD_LOADING|CMD_STALE|CMD_FAST|CMD_ALLOW_BUSY,ACL_CATEGORY_TRANSACTION,{{0,KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={-1,1,0}}},.args=WATCH_Args}, {0} }; diff --git a/src/commands/blmove.json b/src/commands/blmove.json index da8965691..62036147b 100644 --- a/src/commands/blmove.json +++ b/src/commands/blmove.json @@ -9,11 +9,11 @@ "command_flags": [ "WRITE", "DENYOOM", - "NOSCRIPT" + "NOSCRIPT", + "BLOCKING" ], "acl_categories": [ - "LIST", - "BLOCKING" + "LIST" ], "key_specs": [ { diff --git a/src/commands/blmpop.json b/src/commands/blmpop.json index f2b1065f8..29d381ad8 100644 --- a/src/commands/blmpop.json +++ b/src/commands/blmpop.json @@ -8,11 +8,11 @@ "function": "blmpopCommand", "get_keys_function": "blmpopGetKeys", "command_flags": [ - "WRITE" + "WRITE", + "BLOCKING" ], "acl_categories": [ - "LIST", - "BLOCKING" + "LIST" ], "key_specs": [ { diff --git a/src/commands/blpop.json b/src/commands/blpop.json index 4acf5a24c..687165481 100644 --- a/src/commands/blpop.json +++ b/src/commands/blpop.json @@ -14,11 +14,11 @@ ], "command_flags": [ "WRITE", - "NOSCRIPT" + "NOSCRIPT", + "BLOCKING" ], "acl_categories": [ - "LIST", - "BLOCKING" + "LIST" ], "key_specs": [ { diff --git a/src/commands/brpop.json b/src/commands/brpop.json index 4ff0abe04..8f65202dd 100644 --- a/src/commands/brpop.json +++ b/src/commands/brpop.json @@ -14,11 +14,11 @@ ], "command_flags": [ "WRITE", - "NOSCRIPT" + "NOSCRIPT", + "BLOCKING" ], "acl_categories": [ - "LIST", - "BLOCKING" + "LIST" ], "key_specs": [ { diff --git a/src/commands/brpoplpush.json b/src/commands/brpoplpush.json index d2a90e0b0..7f8d11aba 100644 --- a/src/commands/brpoplpush.json +++ b/src/commands/brpoplpush.json @@ -20,11 +20,11 @@ "command_flags": [ "WRITE", "DENYOOM", - "NOSCRIPT" + "NOSCRIPT", + "BLOCKING" ], "acl_categories": [ - "LIST", - "BLOCKING" + "LIST" ], "key_specs": [ { diff --git a/src/commands/bzmpop.json b/src/commands/bzmpop.json index a43d1c4b3..d5ba57c58 100644 --- a/src/commands/bzmpop.json +++ b/src/commands/bzmpop.json @@ -8,11 +8,11 @@ "function": "bzmpopCommand", "get_keys_function": "blmpopGetKeys", "command_flags": [ - "WRITE" + "WRITE", + "BLOCKING" ], "acl_categories": [ - "SORTEDSET", - "BLOCKING" + "SORTEDSET" ], "key_specs": [ { diff --git a/src/commands/bzpopmax.json b/src/commands/bzpopmax.json index 481b1fee5..5ca53aa2a 100644 --- a/src/commands/bzpopmax.json +++ b/src/commands/bzpopmax.json @@ -15,11 +15,11 @@ "command_flags": [ "WRITE", "NOSCRIPT", - "FAST" + "FAST", + "BLOCKING" ], "acl_categories": [ - "SORTEDSET", - "BLOCKING" + "SORTEDSET" ], "key_specs": [ { diff --git a/src/commands/bzpopmin.json b/src/commands/bzpopmin.json index 49d422f99..742a2310c 100644 --- a/src/commands/bzpopmin.json +++ b/src/commands/bzpopmin.json @@ -15,11 +15,11 @@ "command_flags": [ "WRITE", "NOSCRIPT", - "FAST" + "FAST", + "BLOCKING" ], "acl_categories": [ - "SORTEDSET", - "BLOCKING" + "SORTEDSET" ], "key_specs": [ { diff --git a/src/commands/client-info.json b/src/commands/client-info.json index af16c2484..2668eaf14 100644 --- a/src/commands/client-info.json +++ b/src/commands/client-info.json @@ -9,12 +9,14 @@ "function": "clientCommand", "command_flags": [ "NOSCRIPT", - "RANDOM", "LOADING", "STALE" ], "acl_categories": [ "CONNECTION" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/client-list.json b/src/commands/client-list.json index 330992e31..bcd1dcefb 100644 --- a/src/commands/client-list.json +++ b/src/commands/client-list.json @@ -24,13 +24,15 @@ "command_flags": [ "ADMIN", "NOSCRIPT", - "RANDOM", "LOADING", "STALE" ], "acl_categories": [ "CONNECTION" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "token": "TYPE", diff --git a/src/commands/cluster-addslots.json b/src/commands/cluster-addslots.json index 962dde82c..518d67e09 100644 --- a/src/commands/cluster-addslots.json +++ b/src/commands/cluster-addslots.json @@ -10,9 +10,11 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "slot", diff --git a/src/commands/cluster-addslotsrange.json b/src/commands/cluster-addslotsrange.json index 810609ad1..ee58776d3 100644 --- a/src/commands/cluster-addslotsrange.json +++ b/src/commands/cluster-addslotsrange.json @@ -10,9 +10,11 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "start-slot_end-slot", diff --git a/src/commands/cluster-bumpepoch.json b/src/commands/cluster-bumpepoch.json index 98eaa0721..66dc28f0a 100644 --- a/src/commands/cluster-bumpepoch.json +++ b/src/commands/cluster-bumpepoch.json @@ -10,8 +10,10 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/cluster-count-failure-reports.json b/src/commands/cluster-count-failure-reports.json index f5b568797..bf25bc264 100644 --- a/src/commands/cluster-count-failure-reports.json +++ b/src/commands/cluster-count-failure-reports.json @@ -9,9 +9,11 @@ "function": "clusterCommand", "command_flags": [ "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "node-id", diff --git a/src/commands/cluster-countkeysinslot.json b/src/commands/cluster-countkeysinslot.json index bbf588ed3..5a9464626 100644 --- a/src/commands/cluster-countkeysinslot.json +++ b/src/commands/cluster-countkeysinslot.json @@ -8,9 +8,11 @@ "container": "CLUSTER", "function": "clusterCommand", "command_flags": [ - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "slot", diff --git a/src/commands/cluster-delslots.json b/src/commands/cluster-delslots.json index 99f1ea9ff..862299b7e 100644 --- a/src/commands/cluster-delslots.json +++ b/src/commands/cluster-delslots.json @@ -10,9 +10,11 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "slot", diff --git a/src/commands/cluster-delslotsrange.json b/src/commands/cluster-delslotsrange.json index d2e826d36..d13bf0ab8 100644 --- a/src/commands/cluster-delslotsrange.json +++ b/src/commands/cluster-delslotsrange.json @@ -10,9 +10,11 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "start-slot_end-slot", diff --git a/src/commands/cluster-failover.json b/src/commands/cluster-failover.json index 6dcb381ae..c57a1861b 100644 --- a/src/commands/cluster-failover.json +++ b/src/commands/cluster-failover.json @@ -10,9 +10,11 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "options", diff --git a/src/commands/cluster-flushslots.json b/src/commands/cluster-flushslots.json index af362b447..2478713d8 100644 --- a/src/commands/cluster-flushslots.json +++ b/src/commands/cluster-flushslots.json @@ -10,8 +10,10 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/cluster-forget.json b/src/commands/cluster-forget.json index 3d1432a2a..8991f7666 100644 --- a/src/commands/cluster-forget.json +++ b/src/commands/cluster-forget.json @@ -10,9 +10,11 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "node-id", diff --git a/src/commands/cluster-getkeysinslot.json b/src/commands/cluster-getkeysinslot.json index bf0c18c44..97c3a3b8e 100644 --- a/src/commands/cluster-getkeysinslot.json +++ b/src/commands/cluster-getkeysinslot.json @@ -8,9 +8,11 @@ "container": "CLUSTER", "function": "clusterCommand", "command_flags": [ - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "slot", diff --git a/src/commands/cluster-info.json b/src/commands/cluster-info.json index 7853ec31c..08250f15b 100644 --- a/src/commands/cluster-info.json +++ b/src/commands/cluster-info.json @@ -8,8 +8,10 @@ "container": "CLUSTER", "function": "clusterCommand", "command_flags": [ - "RANDOM", "STALE" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/cluster-keyslot.json b/src/commands/cluster-keyslot.json index ff5b3cfdd..d078aa3c4 100644 --- a/src/commands/cluster-keyslot.json +++ b/src/commands/cluster-keyslot.json @@ -8,9 +8,11 @@ "container": "CLUSTER", "function": "clusterCommand", "command_flags": [ - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "key", diff --git a/src/commands/cluster-links.json b/src/commands/cluster-links.json index cc53d3384..4d5024764 100644 --- a/src/commands/cluster-links.json +++ b/src/commands/cluster-links.json @@ -8,8 +8,10 @@ "container": "CLUSTER", "function": "clusterCommand", "command_flags": [ - "RANDOM", "STALE" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/cluster-meet.json b/src/commands/cluster-meet.json index e7e4b537e..c36b7007e 100644 --- a/src/commands/cluster-meet.json +++ b/src/commands/cluster-meet.json @@ -10,9 +10,11 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "ip", diff --git a/src/commands/cluster-myid.json b/src/commands/cluster-myid.json index ce7fe9941..ccb94eb13 100644 --- a/src/commands/cluster-myid.json +++ b/src/commands/cluster-myid.json @@ -8,8 +8,10 @@ "container": "CLUSTER", "function": "clusterCommand", "command_flags": [ - "RANDOM", "STALE" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/cluster-nodes.json b/src/commands/cluster-nodes.json index 211fdc0ee..945213985 100644 --- a/src/commands/cluster-nodes.json +++ b/src/commands/cluster-nodes.json @@ -8,8 +8,10 @@ "container": "CLUSTER", "function": "clusterCommand", "command_flags": [ - "RANDOM", "STALE" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/cluster-replicas.json b/src/commands/cluster-replicas.json index d72d592e9..e86322bc1 100644 --- a/src/commands/cluster-replicas.json +++ b/src/commands/cluster-replicas.json @@ -9,9 +9,11 @@ "function": "clusterCommand", "command_flags": [ "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "node-id", diff --git a/src/commands/cluster-replicate.json b/src/commands/cluster-replicate.json index 9faf34661..87c6cc9aa 100644 --- a/src/commands/cluster-replicate.json +++ b/src/commands/cluster-replicate.json @@ -10,9 +10,11 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "node-id", diff --git a/src/commands/cluster-reset.json b/src/commands/cluster-reset.json index c68dd6cba..b7d675cd8 100644 --- a/src/commands/cluster-reset.json +++ b/src/commands/cluster-reset.json @@ -9,10 +9,12 @@ "function": "clusterCommand", "command_flags": [ "ADMIN", - "RANDOM", "STALE", "NOSCRIPT" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "hard_soft", diff --git a/src/commands/cluster-saveconfig.json b/src/commands/cluster-saveconfig.json index db744bbe0..1bf49e7f7 100644 --- a/src/commands/cluster-saveconfig.json +++ b/src/commands/cluster-saveconfig.json @@ -10,8 +10,10 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/cluster-set-config-epoch.json b/src/commands/cluster-set-config-epoch.json index cd91e66c3..2f819052d 100644 --- a/src/commands/cluster-set-config-epoch.json +++ b/src/commands/cluster-set-config-epoch.json @@ -10,9 +10,11 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "config-epoch", diff --git a/src/commands/cluster-setslot.json b/src/commands/cluster-setslot.json index 9e3b924a5..dc9af6138 100644 --- a/src/commands/cluster-setslot.json +++ b/src/commands/cluster-setslot.json @@ -10,9 +10,11 @@ "command_flags": [ "NO_ASYNC_LOADING", "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "slot", diff --git a/src/commands/cluster-slaves.json b/src/commands/cluster-slaves.json index ee51d9882..8f83dce66 100644 --- a/src/commands/cluster-slaves.json +++ b/src/commands/cluster-slaves.json @@ -11,9 +11,11 @@ "replaced_by": "`CLUSTER REPLICAS`", "command_flags": [ "ADMIN", - "RANDOM", "STALE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "node-id", diff --git a/src/commands/cluster-slots.json b/src/commands/cluster-slots.json index ce0e68b8c..4f0b6f291 100644 --- a/src/commands/cluster-slots.json +++ b/src/commands/cluster-slots.json @@ -14,8 +14,10 @@ ] ], "command_flags": [ - "RANDOM", "STALE" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/command.json b/src/commands/command.json index c32af61bc..83458e30c 100644 --- a/src/commands/command.json +++ b/src/commands/command.json @@ -7,13 +7,15 @@ "arity": -1, "function": "commandCommand", "command_flags": [ - "RANDOM", "LOADING", "STALE", "SENTINEL" ], "acl_categories": [ "CONNECTION" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/config-set.json b/src/commands/config-set.json index f4a2c07b5..656e4bca3 100644 --- a/src/commands/config-set.json +++ b/src/commands/config-set.json @@ -19,6 +19,10 @@ "LOADING", "STALE" ], + "command_tips": [ + "REQUEST_POLICY:ALL_NODES", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], "arguments": [ { "name": "parameter_value", diff --git a/src/commands/dbsize.json b/src/commands/dbsize.json index ac3fbedd4..4d65574db 100644 --- a/src/commands/dbsize.json +++ b/src/commands/dbsize.json @@ -12,6 +12,10 @@ ], "acl_categories": [ "KEYSPACE" + ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:AGG_SUM" ] } } diff --git a/src/commands/del.json b/src/commands/del.json index 8bcc4ca7a..bc500a9af 100644 --- a/src/commands/del.json +++ b/src/commands/del.json @@ -12,6 +12,10 @@ "acl_categories": [ "KEYSPACE" ], + "command_tips": [ + "REQUEST_POLICY:MULTI_SHARD", + "RESPONSE_POLICY:AGG_SUM" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/dump.json b/src/commands/dump.json index 14fc79159..2e9453cdd 100644 --- a/src/commands/dump.json +++ b/src/commands/dump.json @@ -7,12 +7,14 @@ "arity": 2, "function": "dumpCommand", "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "KEYSPACE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/exists.json b/src/commands/exists.json index 19c94664f..b31363352 100644 --- a/src/commands/exists.json +++ b/src/commands/exists.json @@ -19,6 +19,10 @@ "acl_categories": [ "KEYSPACE" ], + "command_tips": [ + "REQUEST_POLICY:MULTI_SHARD", + "RESPONSE_POLICY:AGG_SUM" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/expiretime.json b/src/commands/expiretime.json index 2e56bdb40..9393c1226 100644 --- a/src/commands/expiretime.json +++ b/src/commands/expiretime.json @@ -8,7 +8,6 @@ "function": "expiretimeCommand", "command_flags": [ "READONLY", - "RANDOM", "FAST" ], "acl_categories": [ diff --git a/src/commands/flushall.json b/src/commands/flushall.json index 6af55831d..a85f35925 100644 --- a/src/commands/flushall.json +++ b/src/commands/flushall.json @@ -23,6 +23,10 @@ "KEYSPACE", "DANGEROUS" ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], "arguments": [ { "name": "async", diff --git a/src/commands/flushdb.json b/src/commands/flushdb.json index e1971eb46..40f8912ba 100644 --- a/src/commands/flushdb.json +++ b/src/commands/flushdb.json @@ -23,6 +23,10 @@ "KEYSPACE", "DANGEROUS" ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], "arguments": [ { "name": "async", diff --git a/src/commands/function-delete.json b/src/commands/function-delete.json index 67ebe84f8..2cfb4068c 100644 --- a/src/commands/function-delete.json +++ b/src/commands/function-delete.json @@ -14,6 +14,10 @@ "acl_categories": [ "SCRIPTING" ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], "arguments": [ { "name": "function-name", diff --git a/src/commands/function-flush.json b/src/commands/function-flush.json index 7c7c3f74d..a5ab2db75 100644 --- a/src/commands/function-flush.json +++ b/src/commands/function-flush.json @@ -14,6 +14,10 @@ "acl_categories": [ "SCRIPTING" ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], "arguments": [ { "name": "async", diff --git a/src/commands/function-kill.json b/src/commands/function-kill.json index 660158295..87432f996 100644 --- a/src/commands/function-kill.json +++ b/src/commands/function-kill.json @@ -13,6 +13,10 @@ ], "acl_categories": [ "SCRIPTING" + ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ONE_SUCCEEDED" ] } } diff --git a/src/commands/function-load.json b/src/commands/function-load.json index 202c70c80..df756ceab 100644 --- a/src/commands/function-load.json +++ b/src/commands/function-load.json @@ -15,6 +15,10 @@ "acl_categories": [ "SCRIPTING" ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], "arguments": [ { "name": "engine-name", diff --git a/src/commands/function-restore.json b/src/commands/function-restore.json index ebdc36a4a..ede016895 100644 --- a/src/commands/function-restore.json +++ b/src/commands/function-restore.json @@ -15,6 +15,10 @@ "acl_categories": [ "SCRIPTING" ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], "arguments": [ { "name": "serialized-value", diff --git a/src/commands/function-stats.json b/src/commands/function-stats.json index dd2133bef..fed0e8d0a 100644 --- a/src/commands/function-stats.json +++ b/src/commands/function-stats.json @@ -13,6 +13,10 @@ ], "acl_categories": [ "SCRIPTING" + ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ONE_SUCCEEDED" ] } } diff --git a/src/commands/hgetall.json b/src/commands/hgetall.json index b77b3dcdc..9fef00646 100644 --- a/src/commands/hgetall.json +++ b/src/commands/hgetall.json @@ -7,12 +7,14 @@ "arity": 2, "function": "hgetallCommand", "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "HASH" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT_ORDER" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/hkeys.json b/src/commands/hkeys.json index 84627ad19..243566aa9 100644 --- a/src/commands/hkeys.json +++ b/src/commands/hkeys.json @@ -7,12 +7,14 @@ "arity": 2, "function": "hkeysCommand", "command_flags": [ - "READONLY", - "SORT_FOR_SCRIPT" + "READONLY" ], "acl_categories": [ "HASH" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT_ORDER" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/hrandfield.json b/src/commands/hrandfield.json index e6dbcaacc..ef2ff4199 100644 --- a/src/commands/hrandfield.json +++ b/src/commands/hrandfield.json @@ -7,12 +7,14 @@ "arity": -2, "function": "hrandfieldCommand", "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "HASH" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/hscan.json b/src/commands/hscan.json index c2d0b749f..723452615 100644 --- a/src/commands/hscan.json +++ b/src/commands/hscan.json @@ -7,12 +7,14 @@ "arity": -3, "function": "hscanCommand", "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "HASH" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/hvals.json b/src/commands/hvals.json index 4673bb675..829f63dea 100644 --- a/src/commands/hvals.json +++ b/src/commands/hvals.json @@ -7,12 +7,14 @@ "arity": 2, "function": "hvalsCommand", "command_flags": [ - "READONLY", - "SORT_FOR_SCRIPT" + "READONLY" ], "acl_categories": [ "HASH" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT_ORDER" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/info.json b/src/commands/info.json index 452d73561..48720f9c3 100644 --- a/src/commands/info.json +++ b/src/commands/info.json @@ -7,7 +7,6 @@ "arity": -1, "function": "infoCommand", "command_flags": [ - "RANDOM", "LOADING", "STALE", "SENTINEL" @@ -15,6 +14,11 @@ "acl_categories": [ "DANGEROUS" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT", + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:SPECIAL" + ], "arguments": [ { "name": "section", diff --git a/src/commands/keys.json b/src/commands/keys.json index 723f5d99a..546241f95 100644 --- a/src/commands/keys.json +++ b/src/commands/keys.json @@ -7,13 +7,16 @@ "arity": 2, "function": "keysCommand", "command_flags": [ - "READONLY", - "SORT_FOR_SCRIPT" + "READONLY" ], "acl_categories": [ "KEYSPACE", "DANGEROUS" ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "NONDETERMINISTIC_OUTPUT_ORDER" + ], "arguments": [ { "name": "pattern", diff --git a/src/commands/lastsave.json b/src/commands/lastsave.json index 825a5ae69..929058458 100644 --- a/src/commands/lastsave.json +++ b/src/commands/lastsave.json @@ -7,11 +7,13 @@ "arity": 1, "function": "lastsaveCommand", "command_flags": [ - "RANDOM", "LOADING", "STALE", "FAST" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "acl_categories": [ "ADMIN", "DANGEROUS" diff --git a/src/commands/memory-doctor.json b/src/commands/memory-doctor.json index d4246a764..590778a7c 100644 --- a/src/commands/memory-doctor.json +++ b/src/commands/memory-doctor.json @@ -7,8 +7,8 @@ "arity": 2, "container": "MEMORY", "function": "memoryCommand", - "command_flags": [ - "RANDOM" + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/memory-malloc-stats.json b/src/commands/memory-malloc-stats.json index 4f90ce443..69265c6e7 100644 --- a/src/commands/memory-malloc-stats.json +++ b/src/commands/memory-malloc-stats.json @@ -7,8 +7,8 @@ "arity": 2, "container": "MEMORY", "function": "memoryCommand", - "command_flags": [ - "RANDOM" + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/memory-stats.json b/src/commands/memory-stats.json index 977dc7292..aaef41d61 100644 --- a/src/commands/memory-stats.json +++ b/src/commands/memory-stats.json @@ -7,8 +7,8 @@ "arity": 2, "container": "MEMORY", "function": "memoryCommand", - "command_flags": [ - "RANDOM" + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/mget.json b/src/commands/mget.json index cbbea4e1f..fdff80998 100644 --- a/src/commands/mget.json +++ b/src/commands/mget.json @@ -13,6 +13,9 @@ "acl_categories": [ "STRING" ], + "command_tips": [ + "REQUEST_POLICY:MULTI_SHARD" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/migrate.json b/src/commands/migrate.json index 57ad8d409..5a633e0dc 100644 --- a/src/commands/migrate.json +++ b/src/commands/migrate.json @@ -26,13 +26,15 @@ ] ], "command_flags": [ - "WRITE", - "RANDOM" + "WRITE" ], "acl_categories": [ "KEYSPACE", "DANGEROUS" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/mset.json b/src/commands/mset.json index 8b2bc494a..09b9d6d26 100644 --- a/src/commands/mset.json +++ b/src/commands/mset.json @@ -13,6 +13,10 @@ "acl_categories": [ "STRING" ], + "command_tips": [ + "REQUEST_POLICY:MULTI_SHARD", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/object-encoding.json b/src/commands/object-encoding.json index cf8fbe050..2d39a07ef 100644 --- a/src/commands/object-encoding.json +++ b/src/commands/object-encoding.json @@ -13,6 +13,9 @@ "acl_categories": [ "KEYSPACE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/object-freq.json b/src/commands/object-freq.json index a421801eb..d184f2e7e 100644 --- a/src/commands/object-freq.json +++ b/src/commands/object-freq.json @@ -8,12 +8,14 @@ "container": "OBJECT", "function": "objectCommand", "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "KEYSPACE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/object-idletime.json b/src/commands/object-idletime.json index a16ad4eee..162d6f514 100644 --- a/src/commands/object-idletime.json +++ b/src/commands/object-idletime.json @@ -8,12 +8,14 @@ "container": "OBJECT", "function": "objectCommand", "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "KEYSPACE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/pexpiretime.json b/src/commands/pexpiretime.json index 52cb11618..6ba921278 100644 --- a/src/commands/pexpiretime.json +++ b/src/commands/pexpiretime.json @@ -8,7 +8,6 @@ "function": "pexpiretimeCommand", "command_flags": [ "READONLY", - "RANDOM", "FAST" ], "acl_categories": [ diff --git a/src/commands/ping.json b/src/commands/ping.json index 8845d6321..e7db2c332 100644 --- a/src/commands/ping.json +++ b/src/commands/ping.json @@ -13,6 +13,10 @@ "acl_categories": [ "CONNECTION" ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], "arguments": [ { "name": "message", diff --git a/src/commands/pttl.json b/src/commands/pttl.json index 886211346..1d37b9a49 100644 --- a/src/commands/pttl.json +++ b/src/commands/pttl.json @@ -14,12 +14,14 @@ ], "command_flags": [ "READONLY", - "RANDOM", "FAST" ], "acl_categories": [ "KEYSPACE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/randomkey.json b/src/commands/randomkey.json index cc10c6ec7..93473968c 100644 --- a/src/commands/randomkey.json +++ b/src/commands/randomkey.json @@ -7,11 +7,14 @@ "arity": 1, "function": "randomkeyCommand", "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "KEYSPACE" + ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/scan.json b/src/commands/scan.json index 5721217bf..a689bacca 100644 --- a/src/commands/scan.json +++ b/src/commands/scan.json @@ -13,12 +13,15 @@ ] ], "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "KEYSPACE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT", + "REQUEST_POLICY:SPECIAL" + ], "arguments": [ { "name": "cursor", diff --git a/src/commands/script-exists.json b/src/commands/script-exists.json index b825a194d..e4070f239 100644 --- a/src/commands/script-exists.json +++ b/src/commands/script-exists.json @@ -13,6 +13,10 @@ "acl_categories": [ "SCRIPTING" ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:AGG_LOGICAL_AND" + ], "arguments": [ { "name": "sha1", diff --git a/src/commands/script-flush.json b/src/commands/script-flush.json index 51396f3ac..3503d1cad 100644 --- a/src/commands/script-flush.json +++ b/src/commands/script-flush.json @@ -19,6 +19,10 @@ "acl_categories": [ "SCRIPTING" ], + "command_tips": [ + "REQUEST_POLICY:ALL_NODES", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], "arguments": [ { "name": "async", diff --git a/src/commands/script-kill.json b/src/commands/script-kill.json index 674aac6d3..970ccd407 100644 --- a/src/commands/script-kill.json +++ b/src/commands/script-kill.json @@ -13,6 +13,10 @@ ], "acl_categories": [ "SCRIPTING" + ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ONE_SUCCEEDED" ] } } diff --git a/src/commands/script-load.json b/src/commands/script-load.json index f3f9c20fa..0a19c9193 100644 --- a/src/commands/script-load.json +++ b/src/commands/script-load.json @@ -13,6 +13,10 @@ "acl_categories": [ "SCRIPTING" ], + "command_tips": [ + "REQUEST_POLICY:ALL_NODES", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], "arguments": [ { "name": "script", diff --git a/src/commands/sdiff.json b/src/commands/sdiff.json index 831eaf3f8..6f5fd0a81 100644 --- a/src/commands/sdiff.json +++ b/src/commands/sdiff.json @@ -7,12 +7,14 @@ "arity": -2, "function": "sdiffCommand", "command_flags": [ - "READONLY", - "SORT_FOR_SCRIPT" + "READONLY" ], "acl_categories": [ "SET" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT_ORDER" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/sinter.json b/src/commands/sinter.json index b71c5f052..63f9e8676 100644 --- a/src/commands/sinter.json +++ b/src/commands/sinter.json @@ -7,12 +7,14 @@ "arity": -2, "function": "sinterCommand", "command_flags": [ - "READONLY", - "SORT_FOR_SCRIPT" + "READONLY" ], "acl_categories": [ "SET" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT_ORDER" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/slowlog-get.json b/src/commands/slowlog-get.json index 0cc0e0dfd..11212643e 100644 --- a/src/commands/slowlog-get.json +++ b/src/commands/slowlog-get.json @@ -15,10 +15,13 @@ ], "command_flags": [ "ADMIN", - "RANDOM", "LOADING", "STALE" ], + "command_tips": [ + "REQUEST_POLICY:ALL_NODES", + "NONDETERMINISTIC_OUTPUT" + ], "arguments": [ { "name": "count", diff --git a/src/commands/slowlog-len.json b/src/commands/slowlog-len.json index 5c5b08587..9a8969b0d 100644 --- a/src/commands/slowlog-len.json +++ b/src/commands/slowlog-len.json @@ -9,9 +9,13 @@ "function": "slowlogCommand", "command_flags": [ "ADMIN", - "RANDOM", "LOADING", "STALE" + ], + "command_tips": [ + "REQUEST_POLICY:ALL_NODES", + "RESPONSE_POLICY:AGG_SUM", + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/slowlog-reset.json b/src/commands/slowlog-reset.json index 1fab7ca4f..36c024156 100644 --- a/src/commands/slowlog-reset.json +++ b/src/commands/slowlog-reset.json @@ -11,6 +11,10 @@ "ADMIN", "LOADING", "STALE" + ], + "command_tips": [ + "REQUEST_POLICY:ALL_NODES", + "RESPONSE_POLICY:ALL_SUCCEEDED" ] } } diff --git a/src/commands/smembers.json b/src/commands/smembers.json index a9a47999a..b5d4ff29d 100644 --- a/src/commands/smembers.json +++ b/src/commands/smembers.json @@ -7,12 +7,14 @@ "arity": 2, "function": "sinterCommand", "command_flags": [ - "READONLY", - "SORT_FOR_SCRIPT" + "READONLY" ], "acl_categories": [ "SET" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT_ORDER" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/spop.json b/src/commands/spop.json index 7ec504693..c93e426e1 100644 --- a/src/commands/spop.json +++ b/src/commands/spop.json @@ -14,12 +14,14 @@ ], "command_flags": [ "WRITE", - "RANDOM", "FAST" ], "acl_categories": [ "SET" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/srandmember.json b/src/commands/srandmember.json index 6c7e59312..67efc87ca 100644 --- a/src/commands/srandmember.json +++ b/src/commands/srandmember.json @@ -13,12 +13,14 @@ ] ], "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "SET" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/sscan.json b/src/commands/sscan.json index e978ac1c2..f8f21ad0f 100644 --- a/src/commands/sscan.json +++ b/src/commands/sscan.json @@ -7,12 +7,14 @@ "arity": -3, "function": "sscanCommand", "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "SET" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/sunion.json b/src/commands/sunion.json index 5a7a77fcb..9bdccacd4 100644 --- a/src/commands/sunion.json +++ b/src/commands/sunion.json @@ -7,12 +7,14 @@ "arity": -2, "function": "sunionCommand", "command_flags": [ - "READONLY", - "SORT_FOR_SCRIPT" + "READONLY" ], "acl_categories": [ "SET" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT_ORDER" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/time.json b/src/commands/time.json index bc0983a28..b5711a3ba 100644 --- a/src/commands/time.json +++ b/src/commands/time.json @@ -7,10 +7,12 @@ "arity": 1, "function": "timeCommand", "command_flags": [ - "RANDOM", "LOADING", "STALE", "FAST" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" ] } } diff --git a/src/commands/touch.json b/src/commands/touch.json index 6c71d924b..ef4c1c926 100644 --- a/src/commands/touch.json +++ b/src/commands/touch.json @@ -13,6 +13,10 @@ "acl_categories": [ "KEYSPACE" ], + "command_tips": [ + "REQUEST_POLICY:MULTI_SHARD", + "RESPONSE_POLICY:AGG_SUM" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/ttl.json b/src/commands/ttl.json index 997082b13..36297eeb9 100644 --- a/src/commands/ttl.json +++ b/src/commands/ttl.json @@ -14,12 +14,14 @@ ], "command_flags": [ "READONLY", - "RANDOM", "FAST" ], "acl_categories": [ "KEYSPACE" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/unlink.json b/src/commands/unlink.json index 5f538dd9c..511e728a2 100644 --- a/src/commands/unlink.json +++ b/src/commands/unlink.json @@ -13,6 +13,10 @@ "acl_categories": [ "KEYSPACE" ], + "command_tips": [ + "REQUEST_POLICY:MULTI_SHARD", + "RESPONSE_POLICY:AGG_SUM" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/wait.json b/src/commands/wait.json index 0158d7a23..4930932d9 100644 --- a/src/commands/wait.json +++ b/src/commands/wait.json @@ -12,6 +12,10 @@ "acl_categories": [ "CONNECTION" ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:AGG_MIN" + ], "arguments": [ { "name": "numreplicas", diff --git a/src/commands/xack.json b/src/commands/xack.json index da2792c87..b9d0aa4dd 100644 --- a/src/commands/xack.json +++ b/src/commands/xack.json @@ -8,7 +8,6 @@ "function": "xackCommand", "command_flags": [ "WRITE", - "RANDOM", "FAST" ], "acl_categories": [ diff --git a/src/commands/xadd.json b/src/commands/xadd.json index 6d0fc6337..fb1a2975c 100644 --- a/src/commands/xadd.json +++ b/src/commands/xadd.json @@ -19,12 +19,14 @@ "command_flags": [ "WRITE", "DENYOOM", - "RANDOM", "FAST" ], "acl_categories": [ "STREAM" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/xautoclaim.json b/src/commands/xautoclaim.json index 6cc3691b1..b951eac29 100644 --- a/src/commands/xautoclaim.json +++ b/src/commands/xautoclaim.json @@ -8,12 +8,14 @@ "function": "xautoclaimCommand", "command_flags": [ "WRITE", - "RANDOM", "FAST" ], "acl_categories": [ "STREAM" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/xclaim.json b/src/commands/xclaim.json index d403ce872..14354f8af 100644 --- a/src/commands/xclaim.json +++ b/src/commands/xclaim.json @@ -8,12 +8,14 @@ "function": "xclaimCommand", "command_flags": [ "WRITE", - "RANDOM", "FAST" ], "acl_categories": [ "STREAM" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/xinfo-consumers.json b/src/commands/xinfo-consumers.json index 526237e72..634b52887 100644 --- a/src/commands/xinfo-consumers.json +++ b/src/commands/xinfo-consumers.json @@ -8,12 +8,14 @@ "container": "XINFO", "function": "xinfoCommand", "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "STREAM" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/xpending.json b/src/commands/xpending.json index acc17d62f..cd8ee8dd2 100644 --- a/src/commands/xpending.json +++ b/src/commands/xpending.json @@ -13,12 +13,14 @@ ] ], "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "STREAM" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/xread.json b/src/commands/xread.json index b69b84566..8f66d7ee5 100644 --- a/src/commands/xread.json +++ b/src/commands/xread.json @@ -8,11 +8,12 @@ "function": "xreadCommand", "get_keys_function": "xreadGetKeys", "command_flags": [ - "READONLY" + "BLOCKING", + "READONLY", + "BLOCKING" ], "acl_categories": [ - "STREAM", - "BLOCKING" + "STREAM" ], "key_specs": [ { diff --git a/src/commands/xreadgroup.json b/src/commands/xreadgroup.json index 40b5d3ba2..a14814755 100644 --- a/src/commands/xreadgroup.json +++ b/src/commands/xreadgroup.json @@ -8,11 +8,11 @@ "function": "xreadCommand", "get_keys_function": "xreadGetKeys", "command_flags": [ + "BLOCKING", "WRITE" ], "acl_categories": [ - "STREAM", - "BLOCKING" + "STREAM" ], "key_specs": [ { diff --git a/src/commands/xtrim.json b/src/commands/xtrim.json index 876406add..03c48ebb5 100644 --- a/src/commands/xtrim.json +++ b/src/commands/xtrim.json @@ -13,12 +13,14 @@ ] ], "command_flags": [ - "WRITE", - "RANDOM" + "WRITE" ], "acl_categories": [ "STREAM" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/zrandmember.json b/src/commands/zrandmember.json index 085f267bf..e602a154d 100644 --- a/src/commands/zrandmember.json +++ b/src/commands/zrandmember.json @@ -7,12 +7,14 @@ "arity": -2, "function": "zrandmemberCommand", "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "SORTEDSET" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/commands/zscan.json b/src/commands/zscan.json index 86551d211..6cb9a8d0a 100644 --- a/src/commands/zscan.json +++ b/src/commands/zscan.json @@ -7,12 +7,14 @@ "arity": -3, "function": "zscanCommand", "command_flags": [ - "READONLY", - "RANDOM" + "READONLY" ], "acl_categories": [ "SORTEDSET" ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT" + ], "key_specs": [ { "flags": [ diff --git a/src/module.c b/src/module.c index 44c638b02..5626310a3 100644 --- a/src/module.c +++ b/src/module.c @@ -831,7 +831,8 @@ int64_t commandFlagsFromString(char *s) { else if (!strcasecmp(t,"deny-script")) flags |= CMD_NOSCRIPT; else if (!strcasecmp(t,"allow-loading")) flags |= CMD_LOADING; else if (!strcasecmp(t,"pubsub")) flags |= CMD_PUBSUB; - else if (!strcasecmp(t,"random")) flags |= CMD_RANDOM; + else if (!strcasecmp(t,"random")) { /* Deprecated. Silently ignore. */ } + else if (!strcasecmp(t,"blocking")) flags |= CMD_BLOCKING; else if (!strcasecmp(t,"allow-stale")) flags |= CMD_STALE; else if (!strcasecmp(t,"no-monitor")) flags |= CMD_SKIP_MONITOR; else if (!strcasecmp(t,"no-slowlog")) flags |= CMD_SKIP_SLOWLOG; @@ -913,6 +914,9 @@ RedisModuleCommand *moduleCreateCommandProxy(struct RedisModule *module, const c * * **"pubsub"**: The command publishes things on Pub/Sub channels. * * **"random"**: The command may have different outputs even starting * from the same input arguments and key values. + * Starting from Redis 7.0 this flag has been deprecated. + * Declaring a command as "random" can be done using + * command tips, see https://redis.io/topics/command-tips. * * **"allow-stale"**: The command is allowed to run on slaves that don't * serve stale data. Don't use if you don't know what * this means. @@ -938,6 +942,7 @@ RedisModuleCommand *moduleCreateCommandProxy(struct RedisModule *module, const c * * **"may-replicate"**: This command may generate replication traffic, even * though it's not a write command. * * **"no-mandatory-keys"**: All the keys this command may take are optional + * * **"blocking"**: The command has the potential to block the client. * * **"allow-busy"**: Permit the command while the server is blocked either by * a script or by a slow module command, see * RM_Yield. @@ -9955,8 +9960,8 @@ void moduleUnregisterCommands(struct RedisModule *module) { if (cp->module == module) { if (cmd->key_specs != cmd->key_specs_static) zfree(cmd->key_specs); - for (int j = 0; cmd->hints && cmd->hints[j]; j++) - sdsfree((sds)cmd->hints[j]); + for (int j = 0; cmd->tips && cmd->tips[j]; j++) + sdsfree((sds)cmd->tips[j]); for (int j = 0; cmd->history && cmd->history[j].since; j++) { sdsfree((sds)cmd->history[j].since); sdsfree((sds)cmd->history[j].changes); diff --git a/src/server.c b/src/server.c index b6515ceeb..4561c99d9 100644 --- a/src/server.c +++ b/src/server.c @@ -2632,6 +2632,8 @@ void setImplictACLCategories(struct redisCommand *c) { c->acl_categories |= ACL_CATEGORY_PUBSUB; if (c->flags & CMD_FAST) c->acl_categories |= ACL_CATEGORY_FAST; + if (c->flags & CMD_BLOCKING) + c->acl_categories |= ACL_CATEGORY_BLOCKING; /* If it's not @fast is @slow in this binary world. */ if (!(c->acl_categories & ACL_CATEGORY_FAST)) @@ -2671,8 +2673,8 @@ void populateCommandStructure(struct redisCommand *c) { /* Count things so we don't have to use deferred reply in COMMAND reply. */ while (c->history && c->history[c->num_history].since) c->num_history++; - while (c->hints && c->hints[c->num_hints]) - c->num_hints++; + while (c->tips && c->tips[c->num_tips]) + c->num_tips++; c->num_args = populateArgsStructure(c->args); populateCommandLegacyRangeSpec(c); @@ -4099,8 +4101,7 @@ void addReplyFlagsForCommand(client *c, struct redisCommand *cmd) { {CMD_ADMIN, "admin"}, {CMD_PUBSUB, "pubsub"}, {CMD_NOSCRIPT, "noscript"}, - {CMD_RANDOM, "random"}, - {CMD_SORT_FOR_SCRIPT, "sort_for_script"}, + {CMD_BLOCKING, "blocking"}, {CMD_LOADING, "loading"}, {CMD_STALE, "stale"}, {CMD_SKIP_MONITOR, "skip_monitor"}, @@ -4109,15 +4110,16 @@ void addReplyFlagsForCommand(client *c, struct redisCommand *cmd) { {CMD_FAST, "fast"}, {CMD_NO_AUTH, "no_auth"}, {CMD_MAY_REPLICATE, "may_replicate"}, + /* {CMD_SENTINEL, "sentinel"}, Hidden on purpose */ + /* {CMD_ONLY_SENTINEL, "only_sentinel"}, Hidden on purpose */ {CMD_NO_MANDATORY_KEYS, "no_mandatory_keys"}, - {CMD_PROTECTED, "protected"}, + /* {CMD_PROTECTED, "protected"}, Hidden on purpose */ {CMD_NO_ASYNC_LOADING, "no_async_loading"}, {CMD_NO_MULTI, "no_multi"}, {CMD_MOVABLE_KEYS, "movablekeys"}, {CMD_ALLOW_BUSY, "allow_busy"}, {0,NULL} }; - /* "sentinel" and "only-sentinel" are hidden on purpose. */ addReplyCommandFlags(c, cmd->flags, flagNames); } @@ -4251,10 +4253,10 @@ void addReplyCommandHistory(client *c, struct redisCommand *cmd) { } } -void addReplyCommandHints(client *c, struct redisCommand *cmd) { - addReplySetLen(c, cmd->num_hints); - for (int j = 0; jnum_hints; j++) { - addReplyBulkCString(c, cmd->hints[j]); +void addReplyCommandTips(client *c, struct redisCommand *cmd) { + addReplySetLen(c, cmd->num_tips); + for (int j = 0; jnum_tips; j++) { + addReplyBulkCString(c, cmd->tips[j]); } } @@ -4415,7 +4417,7 @@ void addReplyCommandInfo(client *c, struct redisCommand *cmd) { addReplyLongLong(c, lastkey); addReplyLongLong(c, keystep); addReplyCommandCategories(c, cmd); - addReplyCommandHints(c, cmd); + addReplyCommandTips(c, cmd); addReplyCommandKeySpecs(c, cmd); addReplyCommandSubCommands(c, cmd, addReplyCommandInfo, 0); } diff --git a/src/server.h b/src/server.h index f4813a384..cb884e370 100644 --- a/src/server.h +++ b/src/server.h @@ -190,8 +190,7 @@ extern int configOOMScoreAdjValuesDefaults[CONFIG_OOM_COUNT]; #define CMD_ADMIN (1ULL<<4) #define CMD_PUBSUB (1ULL<<5) #define CMD_NOSCRIPT (1ULL<<6) -#define CMD_RANDOM (1ULL<<7) -#define CMD_SORT_FOR_SCRIPT (1ULL<<8) +#define CMD_BLOCKING (1ULL<<8) /* Has potential to block. */ #define CMD_LOADING (1ULL<<9) #define CMD_STALE (1ULL<<10) #define CMD_SKIP_MONITOR (1ULL<<11) @@ -2118,14 +2117,7 @@ typedef int redisGetKeysProc(struct redisCommand *cmd, robj **argv, int argc, ge * * CMD_NOSCRIPT: Command not allowed in scripts. * - * CMD_RANDOM: Random command. Command is not deterministic, that is, the same - * command with the same arguments, with the same key space, may - * have different results. For instance SPOP and RANDOMKEY are - * two random commands. - * - * CMD_SORT_FOR_SCRIPT: Sort command output array if called from script, so that the - * output is deterministic. When this flag is used (not always - * possible), then the "random" flag is not needed. + * CMD_BLOCKING: The command has the potential to block the client. * * CMD_LOADING: Allow the command while loading the database. * @@ -2198,7 +2190,7 @@ struct redisCommand { const char *deprecated_since; /* In case the command is deprecated, when did it happen? */ redisCommandGroup group; /* Command group */ commandHistory *history; /* History of the command */ - const char **hints; /* An array of strings that are meant o be hints for clients/proxies regarding this command */ + const char **tips; /* An array of strings that are meant to be tips for clients/proxies regarding this command */ redisCommandProc *proc; /* Command implementation */ int arity; /* Number of arguments, it is possible to use -N to say >= N */ uint64_t flags; /* Command flags, see CMD_*. */ @@ -2228,7 +2220,7 @@ struct redisCommand { * COMMAND INFO and COMMAND GETKEYS */ int num_args; int num_history; - int num_hints; + int num_tips; int key_specs_num; int key_specs_max; dict *subcommands_dict; diff --git a/utils/generate-command-code.py b/utils/generate-command-code.py index e6801f5df..28ad03a1f 100755 --- a/utils/generate-command-code.py +++ b/utils/generate-command-code.py @@ -215,8 +215,8 @@ class Command(object): def history_table_name(self): return "%s_History" % (self.fullname().replace(" ", "_")) - def hints_table_name(self): - return "%s_Hints" % (self.fullname().replace(" ", "_")) + def tips_table_name(self): + return "%s_tips" % (self.fullname().replace(" ", "_")) def arg_table_name(self): return "%s_Args" % (self.fullname().replace(" ", "_")) @@ -233,19 +233,19 @@ class Command(object): s += "{0}" return s - def hints_code(self): - if not self.desc.get("hints"): + def tips_code(self): + if not self.desc.get("command_tips"): return "" s = "" - for hint in self.desc["hints"].split(' '): - s += "\"%s\",\n" % hint + for hint in self.desc["command_tips"]: + s += "\"%s\",\n" % hint.lower() s += "NULL" return s def struct_code(self): """ Output example: - "set","Set the string value of a key","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,SET_History,SET_Hints,setCommand,-3,"write denyoom @string",{{"write read",KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SET_Args + "set","Set the string value of a key","O(1)","1.0.0",CMD_DOC_NONE,NULL,NULL,COMMAND_GROUP_STRING,SET_History,SET_tips,setCommand,-3,"write denyoom @string",{{"write read",KSPEC_BS_INDEX,.bs.index={1},KSPEC_FK_RANGE,.fk.range={0,1,0}}},.args=SET_Args """ def _flags_code(): @@ -282,7 +282,7 @@ class Command(object): get_optional_desc_string(self.desc, "deprecated_since"), GROUPS[self.group], self.history_table_name(), - self.hints_table_name(), + self.tips_table_name(), self.desc.get("function", "NULL"), self.desc["arity"], _flags_code(), @@ -328,14 +328,14 @@ class Command(object): else: f.write("#define %s NULL\n\n" % self.history_table_name()) - f.write("/* %s hints */\n" % self.fullname()) - code = self.hints_code() + f.write("/* %s tips */\n" % self.fullname()) + code = self.tips_code() if code: - f.write("const char *%s[] = {\n" % self.hints_table_name()) + f.write("const char *%s[] = {\n" % self.tips_table_name()) f.write("%s\n" % code) f.write("};\n\n") else: - f.write("#define %s NULL\n\n" % self.hints_table_name()) + f.write("#define %s NULL\n\n" % self.tips_table_name()) if self.args: for arg in self.args: