Unverified Commit aec8c577 authored by Itamar Haber's avatar Itamar Haber Committed by GitHub
Browse files

Add missing metadata to the commands SSOT files. (#10016)

Add missing information about commands, mainly from reviewing redis-doc and removing
the metadata from it (https://github.com/redis/redis-doc/pull/1722)

* Reintroduces CLUSTER S****S (supported by Redis) but missing from the JSON / docs (related? #9675).
  Note that without that json file, the command won't work (breaking change)
* Adds the `replicas` argument (exists in Redis) to `CLIENT KILL`.
* Adds `history` entries to several commands based on redis-doc's man pages.
* Adds `since` to applicable command arguments based on `history` (this basically makes
  some of `history` redundant - perhaps at a later stage).
* Uses proper semantic versioning in all version references.
* Also removes `geoencodeCommand` and `geodecodeCommand` header
  declarations per b96af595.
parent b0c06e90
This diff is collapsed.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"function": "aclCommand", "function": "aclCommand",
"history": [ "history": [
[ [
"6.2", "6.2.0",
"Added Pub/Sub channel patterns." "Added Pub/Sub channel patterns."
] ]
], ],
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"function": "aclCommand", "function": "aclCommand",
"history": [ "history": [
[ [
"6.2", "6.2.0",
"Added Pub/Sub channel patterns." "Added Pub/Sub channel patterns."
] ]
], ],
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
{ {
"name": "username", "name": "username",
"type": "string", "type": "string",
"optional": true "optional": true,
"since": "6.0.0"
}, },
{ {
"name": "password", "name": "password",
......
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
"name": "schedule", "name": "schedule",
"token": "SCHEDULE", "token": "SCHEDULE",
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true,
"since": "3.2.2"
} }
] ]
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "bitcountCommand", "function": "bitcountCommand",
"history": [ "history": [
[ [
"7.0", "7.0.0",
"Added the `BYTE|BIT` option." "Added the `BYTE|BIT` option."
] ]
], ],
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
"name": "index_unit", "name": "index_unit",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "7.0.0",
"arguments": [ "arguments": [
{ {
"name": "byte", "name": "byte",
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "bitposCommand", "function": "bitposCommand",
"history": [ "history": [
[ [
"7.0", "7.0.0",
"Added the `BYTE|BIT` option." "Added the `BYTE|BIT` option."
] ]
], ],
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
"name": "index_unit", "name": "index_unit",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "7.0.0",
"arguments": [ "arguments": [
{ {
"name": "byte", "name": "byte",
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "blpopCommand", "function": "blpopCommand",
"history": [ "history": [
[ [
"6.0", "6.0.0",
"`timeout` is interpreted as a double instead of an integer." "`timeout` is interpreted as a double instead of an integer."
] ]
], ],
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "brpopCommand", "function": "brpopCommand",
"history": [ "history": [
[ [
"6.0", "6.0.0",
"`timeout` is interpreted as a double instead of an integer." "`timeout` is interpreted as a double instead of an integer."
] ]
], ],
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "brpoplpushCommand", "function": "brpoplpushCommand",
"history": [ "history": [
[ [
"6.0", "6.0.0",
"`timeout` is interpreted as a double instead of an integer." "`timeout` is interpreted as a double instead of an integer."
] ]
], ],
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "bzpopmaxCommand", "function": "bzpopmaxCommand",
"history": [ "history": [
[ [
"6.0", "6.0.0",
"`timeout` is interpreted as a double instead of an integer." "`timeout` is interpreted as a double instead of an integer."
] ]
], ],
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "bzpopminCommand", "function": "bzpopminCommand",
"history": [ "history": [
[ [
"6.0", "6.0.0",
"`timeout` is interpreted as a double instead of an integer." "`timeout` is interpreted as a double instead of an integer."
] ]
], ],
......
...@@ -10,22 +10,22 @@ ...@@ -10,22 +10,22 @@
"history": [ "history": [
[ [
"2.8.12", "2.8.12",
"Added new filter format. " "Added new filter format."
], ],
[ [
"2.8.12", "2.8.12",
"`ID` option." "`ID` option."
], ],
[ [
"3.2", "3.2.0",
"Added `master` type in for `TYPE` option." "Added `master` type in for `TYPE` option."
], ],
[ [
"5", "5.0.0",
"Replaced `slave` `TYPE` with `replica`. `slave` still supported for backward compatibility." "Replaced `slave` `TYPE` with `replica`. `slave` still supported for backward compatibility."
], ],
[ [
"6.2", "6.2.0",
"`LADDR` option." "`LADDR` option."
] ]
], ],
...@@ -48,13 +48,15 @@ ...@@ -48,13 +48,15 @@
"token": "ID", "token": "ID",
"name": "client-id", "name": "client-id",
"type": "integer", "type": "integer",
"optional": true "optional": true,
"since": "2.8.12"
}, },
{ {
"token": "TYPE", "token": "TYPE",
"name": "normal_master_slave_pubsub", "name": "normal_master_slave_pubsub",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "2.8.12",
"arguments": [ "arguments": [
{ {
"name": "normal", "name": "normal",
...@@ -64,13 +66,20 @@ ...@@ -64,13 +66,20 @@
{ {
"name": "master", "name": "master",
"type": "pure-token", "type": "pure-token",
"token": "master" "token": "master",
"since": "3.2.0"
}, },
{ {
"name": "slave", "name": "slave",
"type": "pure-token", "type": "pure-token",
"token": "slave" "token": "slave"
}, },
{
"name": "replica",
"type": "pure-token",
"token": "replica",
"since": "5.0.0"
},
{ {
"name": "pubsub", "name": "pubsub",
"type": "pure-token", "type": "pure-token",
...@@ -94,7 +103,8 @@ ...@@ -94,7 +103,8 @@
"token": "LADDR", "token": "LADDR",
"name": "ip:port", "name": "ip:port",
"type": "string", "type": "string",
"optional": true "optional": true,
"since": "6.2.0"
}, },
{ {
"token": "SKIPME", "token": "SKIPME",
......
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
"Added unique client `id` field." "Added unique client `id` field."
], ],
[ [
"5.0", "5.0.0",
"Added optional `TYPE` filter." "Added optional `TYPE` filter."
], ],
[ [
"6.2", "6.2.0",
"Added `laddr` field and the optional `ID` filter." "Added `laddr` field and the optional `ID` filter."
] ]
], ],
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
"name": "normal_master_replica_pubsub", "name": "normal_master_replica_pubsub",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "5.0.0",
"arguments": [ "arguments": [
{ {
"name": "normal", "name": "normal",
...@@ -65,6 +66,7 @@ ...@@ -65,6 +66,7 @@
"token": "ID", "token": "ID",
"type": "block", "type": "block",
"optional": true, "optional": true,
"since": "6.2.0",
"arguments": [ "arguments": [
{ {
"name": "client-id", "name": "client-id",
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"Client pause prevents client pause and key eviction as well." "Client pause prevents client pause and key eviction as well."
], ],
[ [
"6.2", "6.2.0",
"CLIENT PAUSE WRITE mode added along with the `mode` option." "`CLIENT PAUSE WRITE` mode added along with the `mode` option."
] ]
], ],
"command_flags": [ "command_flags": [
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
"name": "mode", "name": "mode",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "6.2.0",
"arguments": [ "arguments": [
{ {
"name": "write", "name": "write",
......
{
"SLAVES": {
"summary": "List replica nodes of the specified master node",
"complexity": "O(1)",
"group": "cluster",
"since": "3.0.0",
"arity": 3,
"container": "CLUSTER",
"function": "clusterCommand",
"deprecated_since": "5.0.0",
"replaced_by": "`CLUSTER REPLICAS`",
"command_flags": [
"ADMIN",
"RANDOM",
"STALE"
],
"arguments": [
{
"name": "node-id",
"type": "string"
}
]
}
}
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"function": "clusterCommand", "function": "clusterCommand",
"history": [ "history": [
[ [
"4.0", "4.0.0",
"Added node IDs." "Added node IDs."
] ]
], ],
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
"since": "1.0.0", "since": "1.0.0",
"arity": -2, "arity": -2,
"function": "existsCommand", "function": "existsCommand",
"history": [
[
"3.0.3",
"Accepts multiple `key` arguments."
]
],
"command_flags": [ "command_flags": [
"READONLY", "READONLY",
"FAST" "FAST"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "expireCommand", "function": "expireCommand",
"history": [ "history": [
[ [
"7.0", "7.0.0",
"Added options: `NX`, `XX`, `GT` and `LT`." "Added options: `NX`, `XX`, `GT` and `LT`."
] ]
], ],
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
"name": "condition", "name": "condition",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "7.0.0",
"arguments": [ "arguments": [
{ {
"name": "nx", "name": "nx",
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "expireatCommand", "function": "expireatCommand",
"history": [ "history": [
[ [
"7.0", "7.0.0",
"Added options: `NX`, `XX`, `GT` and `LT`." "Added options: `NX`, `XX`, `GT` and `LT`."
] ]
], ],
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
"name": "condition", "name": "condition",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "7.0.0",
"arguments": [ "arguments": [
{ {
"name": "nx", "name": "nx",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment