summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-11-17 15:38:34 +0100
committerantirez <antirez@gmail.com>2015-11-17 15:40:18 +0100
commit3da69a9f226396d24fc0919fc4111645449a7cb1 (patch)
tree8463b0c4b82d250c3c6c422632e0dff32314cf95
parentd4f55990f863928464cebb2052f698e4d4056acb (diff)
downloadredis-3da69a9f226396d24fc0919fc4111645449a7cb1.tar.gz
Update redis-cli help and the script to generate it.
-rw-r--r--src/help.h188
-rwxr-xr-xutils/generate-command-help.rb4
2 files changed, 183 insertions, 9 deletions
diff --git a/src/help.h b/src/help.h
index 8395c525b..1ac5a882d 100644
--- a/src/help.h
+++ b/src/help.h
@@ -1,4 +1,4 @@
-/* Automatically generated by utils/generate-command-help.rb, do not edit. */
+/* Automatically generated by generate-command-help.rb, do not edit. */
#ifndef __REDIS_HELP_H
#define __REDIS_HELP_H
@@ -15,7 +15,9 @@ static char *commandGroups[] = {
"connection",
"server",
"scripting",
- "hyperloglog"
+ "hyperloglog",
+ "cluster",
+ "geo"
};
struct commandHelp {
@@ -46,7 +48,7 @@ struct commandHelp {
9,
"1.0.0" },
{ "BITCOUNT",
- "key [start] [end]",
+ "key [start end]",
"Count set bits in a string",
1,
"2.6.0" },
@@ -81,7 +83,7 @@ struct commandHelp {
9,
"2.6.9" },
{ "CLIENT KILL",
- "ip:port",
+ "[ip:port] [ID client-id] [TYPE normal|slave|pubsub] [ADDR ip:port] [SKIPME yes/no]",
"Kill the connection of a client",
9,
"2.4.0" },
@@ -100,6 +102,116 @@ struct commandHelp {
"Set the current connection name",
9,
"2.6.9" },
+ { "CLUSTER ADDSLOTS",
+ "slot [slot ...]",
+ "Assign new hash slots to receiving node",
+ 12,
+ "3.0.0" },
+ { "CLUSTER COUNT-FAILURE-REPORTS",
+ "node-id",
+ "Return the number of failure reports active for a given node",
+ 12,
+ "3.0.0" },
+ { "CLUSTER COUNTKEYSINSLOT",
+ "slot",
+ "Return the number of local keys in the specified hash slot",
+ 12,
+ "3.0.0" },
+ { "CLUSTER DELSLOTS",
+ "slot [slot ...]",
+ "Set hash slots as unbound in receiving node",
+ 12,
+ "3.0.0" },
+ { "CLUSTER FAILOVER",
+ "[FORCE|TAKEOVER]",
+ "Forces a slave to perform a manual failover of its master.",
+ 12,
+ "3.0.0" },
+ { "CLUSTER FORGET",
+ "node-id",
+ "Remove a node from the nodes table",
+ 12,
+ "3.0.0" },
+ { "CLUSTER GETKEYSINSLOT",
+ "slot count",
+ "Return local key names in the specified hash slot",
+ 12,
+ "3.0.0" },
+ { "CLUSTER INFO",
+ "-",
+ "Provides info about Redis Cluster node state",
+ 12,
+ "3.0.0" },
+ { "CLUSTER KEYSLOT",
+ "key",
+ "Returns the hash slot of the specified key",
+ 12,
+ "3.0.0" },
+ { "CLUSTER MEET",
+ "ip port",
+ "Force a node cluster to handshake with another node",
+ 12,
+ "3.0.0" },
+ { "CLUSTER NODES",
+ "-",
+ "Get Cluster config for the node",
+ 12,
+ "3.0.0" },
+ { "CLUSTER REPLICATE",
+ "node-id",
+ "Reconfigure a node as a slave of the specified master node",
+ 12,
+ "3.0.0" },
+ { "CLUSTER RESET",
+ "[HARD|SOFT]",
+ "Reset a Redis Cluster node",
+ 12,
+ "3.0.0" },
+ { "CLUSTER SAVECONFIG",
+ "-",
+ "Forces the node to save cluster state on disk",
+ 12,
+ "3.0.0" },
+ { "CLUSTER SET-CONFIG-EPOCH",
+ "config-epoch",
+ "Set the configuration epoch in a new node",
+ 12,
+ "3.0.0" },
+ { "CLUSTER SETSLOT",
+ "slot IMPORTING|MIGRATING|STABLE|NODE [node-id]",
+ "Bind an hash slot to a specific node",
+ 12,
+ "3.0.0" },
+ { "CLUSTER SLAVES",
+ "node-id",
+ "List slave nodes of the specified master node",
+ 12,
+ "3.0.0" },
+ { "CLUSTER SLOTS",
+ "-",
+ "Get array of Cluster slot to node mappings",
+ 12,
+ "3.0.0" },
+ { "COMMAND",
+ "-",
+ "Get array of Redis command details",
+ 9,
+ "2.8.13" },
+ { "COMMAND COUNT",
+ "-",
+ "Get total number of Redis commands",
+ 9,
+ "2.8.13" },
+ { "COMMAND GETKEYS",
+ "-",
+ "Extract keys given a full Redis command",
+ 9,
+ "2.8.13" },
+ { "COMMAND INFO",
+ "command-name [command-name ...]",
+ "Get array of specific Redis command details",
+ 9,
+ "2.8.13" },
{ "CONFIG GET",
"parameter",
"Get the value of a configuration parameter",
@@ -181,7 +293,7 @@ struct commandHelp {
7,
"1.2.0" },
{ "EXISTS",
- "key",
+ "key [key ...]",
"Determine if a key exists",
0,
"1.0.0" },
@@ -205,6 +317,36 @@ struct commandHelp {
"Remove all keys from the current database",
9,
"1.0.0" },
+ { "GEOADD",
+ "key longitude latitude member [longitude latitude member ...]",
+ "Add one or more geospatial items in the geospatial index represented using a sorted set",
+ 13,
+ "" },
+ { "GEODIST",
+ "key member1 member2 [unit]",
+ "Returns the distance between two members of a geospatial index",
+ 13,
+ "" },
+ { "GEOHASH",
+ "key member [member ...]",
+ "Returns members of a geospatial index as standard geohash strings",
+ 13,
+ "" },
+ { "GEOPOS",
+ "key member [member ...]",
+ "Returns longitude and latitude of members of a geospatial index",
+ 13,
+ "" },
+ { "GEORADIUS",
+ "key longitude latitude radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count]",
+ "Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point",
+ 13,
+ "" },
+ { "GEORADIUSBYMEMBER",
+ "key member radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count]",
+ "Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member",
+ 13,
+ "" },
{ "GET",
"key",
"Get the value of a key",
@@ -290,6 +432,11 @@ struct commandHelp {
"Set the value of a hash field, only if the field does not exist",
5,
"2.0.0" },
+ { "HSTRLEN",
+ "key field",
+ "Get the length of the value of a hash field",
+ 5,
+ "3.2.0" },
{ "HVALS",
"key",
"Get all the values in a hash",
@@ -490,6 +637,16 @@ struct commandHelp {
"Return a random key from the keyspace",
0,
"1.0.0" },
+ { "READONLY",
+ "-",
+ "Enables read queries for a connection to a cluster slave node",
+ 12,
+ "3.0.0" },
+ { "READWRITE",
+ "-",
+ "Disables read queries for a connection to a cluster slave node",
+ 12,
+ "3.0.0" },
{ "RENAME",
"key newkey",
"Rename a key",
@@ -501,10 +658,15 @@ struct commandHelp {
0,
"1.0.0" },
{ "RESTORE",
- "key ttl serialized-value",
+ "key ttl serialized-value [REPLACE]",
"Create a key using the provided serialized value, previously obtained using DUMP.",
0,
"2.6.0" },
+ { "ROLE",
+ "-",
+ "Return the role of the instance in the context of replication",
+ 9,
+ "2.8.12" },
{ "RPOP",
"key",
"Remove and get the last element in a list",
@@ -512,7 +674,7 @@ struct commandHelp {
"1.0.0" },
{ "RPOPLPUSH",
"source destination",
- "Remove the last element in a list, append it to another list and return it",
+ "Remove the last element in a list, prepend it to another list and return it",
2,
"1.2.0" },
{ "RPUSH",
@@ -720,13 +882,18 @@ struct commandHelp {
"Forget about all watched keys",
7,
"2.2.0" },
+ { "WAIT",
+ "numslaves timeout",
+ "Wait for the synchronous replication of all the write commands sent in the context of the current connection",
+ 0,
+ "3.0.0" },
{ "WATCH",
"key [key ...]",
"Watch the given keys to determine execution of the MULTI/EXEC block",
7,
"2.2.0" },
{ "ZADD",
- "key score member [score member ...]",
+ "key [NX|XX] [CH] [INCR] score member [score member ...]",
"Add one or more members to a sorted set, or update its score if it already exists",
4,
"1.2.0" },
@@ -800,6 +967,11 @@ struct commandHelp {
"Return a range of members in a sorted set, by index, with scores ordered from high to low",
4,
"1.2.0" },
+ { "ZREVRANGEBYLEX",
+ "key max min [LIMIT offset count]",
+ "Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.",
+ 4,
+ "2.8.9" },
{ "ZREVRANGEBYSCORE",
"key max min [WITHSCORES] [LIMIT offset count]",
"Return a range of members in a sorted set, by score, with scores ordered from high to low",
diff --git a/utils/generate-command-help.rb b/utils/generate-command-help.rb
index 068953198..f3dfb31b3 100755
--- a/utils/generate-command-help.rb
+++ b/utils/generate-command-help.rb
@@ -12,7 +12,9 @@ GROUPS = [
"connection",
"server",
"scripting",
- "hyperloglog"
+ "hyperloglog",
+ "cluster",
+ "geo"
].freeze
GROUPS_BY_NAME = Hash[*