Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f3dd472e
Commit
f3dd472e
authored
Nov 17, 2015
by
antirez
Browse files
Update redis-cli help and the script to generate it.
parent
0cb66fa1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/help.h
View file @
f3dd472e
/* 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,
a
ppend it to another list and return it"
,
"Remove the last element in a list, p
re
pend 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"
,
...
...
utils/generate-command-help.rb
View file @
f3dd472e
...
...
@@ -12,7 +12,9 @@ GROUPS = [
"connection"
,
"server"
,
"scripting"
,
"hyperloglog"
"hyperloglog"
,
"cluster"
,
"geo"
].
freeze
GROUPS_BY_NAME
=
Hash
[
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment