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 @@
"function": "aclCommand",
"history": [
[
"6.2",
"6.2.0",
"Added Pub/Sub channel patterns."
]
],
......
......@@ -9,7 +9,7 @@
"function": "aclCommand",
"history": [
[
"6.2",
"6.2.0",
"Added Pub/Sub channel patterns."
]
],
......
......@@ -27,7 +27,8 @@
{
"name": "username",
"type": "string",
"optional": true
"optional": true,
"since": "6.0.0"
},
{
"name": "password",
......
......@@ -22,7 +22,8 @@
"name": "schedule",
"token": "SCHEDULE",
"type": "pure-token",
"optional": true
"optional": true,
"since": "3.2.2"
}
]
}
......
......@@ -8,7 +8,7 @@
"function": "bitcountCommand",
"history": [
[
"7.0",
"7.0.0",
"Added the `BYTE|BIT` option."
]
],
......@@ -60,6 +60,7 @@
"name": "index_unit",
"type": "oneof",
"optional": true,
"since": "7.0.0",
"arguments": [
{
"name": "byte",
......
......@@ -8,7 +8,7 @@
"function": "bitposCommand",
"history": [
[
"7.0",
"7.0.0",
"Added the `BYTE|BIT` option."
]
],
......@@ -69,6 +69,7 @@
"name": "index_unit",
"type": "oneof",
"optional": true,
"since": "7.0.0",
"arguments": [
{
"name": "byte",
......
......@@ -8,7 +8,7 @@
"function": "blpopCommand",
"history": [
[
"6.0",
"6.0.0",
"`timeout` is interpreted as a double instead of an integer."
]
],
......
......@@ -8,7 +8,7 @@
"function": "brpopCommand",
"history": [
[
"6.0",
"6.0.0",
"`timeout` is interpreted as a double instead of an integer."
]
],
......
......@@ -8,7 +8,7 @@
"function": "brpoplpushCommand",
"history": [
[
"6.0",
"6.0.0",
"`timeout` is interpreted as a double instead of an integer."
]
],
......
......@@ -8,7 +8,7 @@
"function": "bzpopmaxCommand",
"history": [
[
"6.0",
"6.0.0",
"`timeout` is interpreted as a double instead of an integer."
]
],
......
......@@ -8,7 +8,7 @@
"function": "bzpopminCommand",
"history": [
[
"6.0",
"6.0.0",
"`timeout` is interpreted as a double instead of an integer."
]
],
......
......@@ -10,22 +10,22 @@
"history": [
[
"2.8.12",
"Added new filter format. "
"Added new filter format."
],
[
"2.8.12",
"`ID` option."
],
[
"3.2",
"3.2.0",
"Added `master` type in for `TYPE` option."
],
[
"5",
"5.0.0",
"Replaced `slave` `TYPE` with `replica`. `slave` still supported for backward compatibility."
],
[
"6.2",
"6.2.0",
"`LADDR` option."
]
],
......@@ -48,13 +48,15 @@
"token": "ID",
"name": "client-id",
"type": "integer",
"optional": true
"optional": true,
"since": "2.8.12"
},
{
"token": "TYPE",
"name": "normal_master_slave_pubsub",
"type": "oneof",
"optional": true,
"since": "2.8.12",
"arguments": [
{
"name": "normal",
......@@ -64,13 +66,20 @@
{
"name": "master",
"type": "pure-token",
"token": "master"
"token": "master",
"since": "3.2.0"
},
{
"name": "slave",
"type": "pure-token",
"token": "slave"
},
{
"name": "replica",
"type": "pure-token",
"token": "replica",
"since": "5.0.0"
},
{
"name": "pubsub",
"type": "pure-token",
......@@ -94,7 +103,8 @@
"token": "LADDR",
"name": "ip:port",
"type": "string",
"optional": true
"optional": true,
"since": "6.2.0"
},
{
"token": "SKIPME",
......
......@@ -13,11 +13,11 @@
"Added unique client `id` field."
],
[
"5.0",
"5.0.0",
"Added optional `TYPE` filter."
],
[
"6.2",
"6.2.0",
"Added `laddr` field and the optional `ID` filter."
]
],
......@@ -37,6 +37,7 @@
"name": "normal_master_replica_pubsub",
"type": "oneof",
"optional": true,
"since": "5.0.0",
"arguments": [
{
"name": "normal",
......@@ -65,6 +66,7 @@
"token": "ID",
"type": "block",
"optional": true,
"since": "6.2.0",
"arguments": [
{
"name": "client-id",
......
......@@ -13,8 +13,8 @@
"Client pause prevents client pause and key eviction as well."
],
[
"6.2",
"CLIENT PAUSE WRITE mode added along with the `mode` option."
"6.2.0",
"`CLIENT PAUSE WRITE` mode added along with the `mode` option."
]
],
"command_flags": [
......@@ -35,6 +35,7 @@
"name": "mode",
"type": "oneof",
"optional": true,
"since": "6.2.0",
"arguments": [
{
"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 @@
"function": "clusterCommand",
"history": [
[
"4.0",
"4.0.0",
"Added node IDs."
]
],
......
......@@ -6,6 +6,12 @@
"since": "1.0.0",
"arity": -2,
"function": "existsCommand",
"history": [
[
"3.0.3",
"Accepts multiple `key` arguments."
]
],
"command_flags": [
"READONLY",
"FAST"
......
......@@ -8,7 +8,7 @@
"function": "expireCommand",
"history": [
[
"7.0",
"7.0.0",
"Added options: `NX`, `XX`, `GT` and `LT`."
]
],
......@@ -52,6 +52,7 @@
"name": "condition",
"type": "oneof",
"optional": true,
"since": "7.0.0",
"arguments": [
{
"name": "nx",
......
......@@ -8,7 +8,7 @@
"function": "expireatCommand",
"history": [
[
"7.0",
"7.0.0",
"Added options: `NX`, `XX`, `GT` and `LT`."
]
],
......@@ -52,6 +52,7 @@
"name": "condition",
"type": "oneof",
"optional": true,
"since": "7.0.0",
"arguments": [
{
"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