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
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "rpopCommand", "function": "rpopCommand",
"history": [ "history": [
[ [
"6.2", "6.2.0",
"Added the `count` argument." "Added the `count` argument."
] ]
], ],
...@@ -47,7 +47,8 @@ ...@@ -47,7 +47,8 @@
{ {
"name": "count", "name": "count",
"type": "integer", "type": "integer",
"optional": true "optional": true,
"since": "6.2.0"
} }
] ]
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "rpushCommand", "function": "rpushCommand",
"history": [ "history": [
[ [
"2.4", "2.4.0",
"Accepts multiple `element` arguments." "Accepts multiple `element` arguments."
] ]
], ],
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "rpushxCommand", "function": "rpushxCommand",
"history": [ "history": [
[ [
"4.0", "4.0.0",
"Accepts multiple `element` arguments." "Accepts multiple `element` arguments."
] ]
], ],
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "saddCommand", "function": "saddCommand",
"history": [ "history": [
[ [
"2.4", "2.4.0",
"Accepts multiple `member` arguments." "Accepts multiple `member` arguments."
] ]
], ],
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
"since": "2.8.0", "since": "2.8.0",
"arity": -2, "arity": -2,
"function": "scanCommand", "function": "scanCommand",
"history": [
[
"6.0.0",
"Added the `TYPE` subcommand."
]
],
"command_flags": [ "command_flags": [
"READONLY", "READONLY",
"RANDOM" "RANDOM"
...@@ -34,7 +40,8 @@ ...@@ -34,7 +40,8 @@
"token": "TYPE", "token": "TYPE",
"name": "type", "name": "type",
"type": "string", "type": "string",
"optional": true "optional": true,
"since": "6.0.0"
} }
] ]
} }
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
"name": "async", "name": "async",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "6.2.0",
"arguments": [ "arguments": [
{ {
"name": "async", "name": "async",
......
...@@ -12,15 +12,15 @@ ...@@ -12,15 +12,15 @@
"Added the `EX`, `PX`, `NX` and `XX` options." "Added the `EX`, `PX`, `NX` and `XX` options."
], ],
[ [
"6.0", "6.0.0",
"Added the `KEEPTTL` option." "Added the `KEEPTTL` option."
], ],
[ [
"6.2", "6.2.0",
"Added the `GET`, `EXAT` and `PXAT` option." "Added the `GET`, `EXAT` and `PXAT` option."
], ],
[ [
"7.0", "7.0.0",
"Allowed the `NX` and `GET` options to be used together." "Allowed the `NX` and `GET` options to be used together."
] ]
], ],
...@@ -69,27 +69,32 @@ ...@@ -69,27 +69,32 @@
{ {
"name": "seconds", "name": "seconds",
"type": "integer", "type": "integer",
"token": "EX" "token": "EX",
"since": "2.6.12"
}, },
{ {
"name": "milliseconds", "name": "milliseconds",
"type": "integer", "type": "integer",
"token": "PX" "token": "PX",
"since": "2.6.12"
}, },
{ {
"name": "unix-time-seconds", "name": "unix-time-seconds",
"type": "unix-time", "type": "unix-time",
"token": "EXAT" "token": "EXAT",
"since": "6.2.0"
}, },
{ {
"name": "unix-time-milliseconds", "name": "unix-time-milliseconds",
"type": "unix-time", "type": "unix-time",
"token": "PXAT" "token": "PXAT",
"since": "6.2.0"
}, },
{ {
"name": "keepttl", "name": "keepttl",
"type": "pure-token", "type": "pure-token",
"token": "KEEPTTL" "token": "KEEPTTL",
"since": "6.0.0"
} }
] ]
}, },
...@@ -97,6 +102,7 @@ ...@@ -97,6 +102,7 @@
"name": "condition", "name": "condition",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "2.6.12",
"arguments": [ "arguments": [
{ {
"name": "nx", "name": "nx",
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"function": "slowlogCommand", "function": "slowlogCommand",
"history": [ "history": [
[ [
"4.0", "4.0.0",
"Added client IP address, port and name to the reply." "Added client IP address, port and name to the reply."
] ]
], ],
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "spopCommand", "function": "spopCommand",
"history": [ "history": [
[ [
"3.2", "3.2.0",
"Added the `count` argument." "Added the `count` argument."
] ]
], ],
...@@ -48,7 +48,8 @@ ...@@ -48,7 +48,8 @@
{ {
"name": "count", "name": "count",
"type": "integer", "type": "integer",
"optional": true "optional": true,
"since": "3.2.0"
} }
] ]
} }
......
...@@ -47,7 +47,8 @@ ...@@ -47,7 +47,8 @@
{ {
"name": "count", "name": "count",
"type": "integer", "type": "integer",
"optional": true "optional": true,
"since": "2.6.0"
} }
] ]
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "sremCommand", "function": "sremCommand",
"history": [ "history": [
[ [
"2.4", "2.4.0",
"Accepts multiple `member` arguments." "Accepts multiple `member` arguments."
] ]
], ],
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "subscribeCommand", "function": "subscribeCommand",
"history": [ "history": [
[ [
"6.2", "6.2.0",
"`RESET` can be called to exit subscribed state." "`RESET` can be called to exit subscribed state."
] ]
], ],
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
"since": "1.0.0", "since": "1.0.0",
"arity": 2, "arity": 2,
"function": "ttlCommand", "function": "ttlCommand",
"history": [
[
"2.8.0",
"Added the -2 reply."
]
],
"command_flags": [ "command_flags": [
"READONLY", "READONLY",
"RANDOM", "RANDOM",
......
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
"function": "xaddCommand", "function": "xaddCommand",
"history": [ "history": [
[ [
"6.2", "6.2.0",
"Added the `NOMKSTREAM` option, `MINID` trimming strategy and the `LIMIT` option." "Added the `NOMKSTREAM` option, `MINID` trimming strategy and the `LIMIT` option."
], ],
[ [
"7.0", "7.0.0",
"Added support for the `<ms>-*` explicit ID form." "Added support for the `<ms>-*` explicit ID form."
] ]
], ],
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
"name": "nomkstream", "name": "nomkstream",
"type": "pure-token", "type": "pure-token",
"optional": true, "optional": true,
"since": "6.2" "since": "6.2.0"
}, },
{ {
"name": "trim", "name": "trim",
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
"name": "minid", "name": "minid",
"type": "pure-token", "type": "pure-token",
"token": "MINID", "token": "MINID",
"since": "6.2" "since": "6.2.0"
} }
] ]
}, },
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
"name": "count", "name": "count",
"type": "integer", "type": "integer",
"optional": true, "optional": true,
"since": "6.2" "since": "6.2.0"
} }
] ]
}, },
......
...@@ -57,7 +57,8 @@ ...@@ -57,7 +57,8 @@
"token": "IDLE", "token": "IDLE",
"name": "min-idle-time", "name": "min-idle-time",
"type": "integer", "type": "integer",
"optional": true "optional": true,
"since": "6.2.0"
}, },
{ {
"name": "start", "name": "start",
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
"since": "5.0.0", "since": "5.0.0",
"arity": -4, "arity": -4,
"function": "xrangeCommand", "function": "xrangeCommand",
"history": [
[
"6.2.0",
"Added exclusive ranges."
]
],
"command_flags": [ "command_flags": [
"READONLY" "READONLY"
], ],
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
"since": "5.0.0", "since": "5.0.0",
"arity": -4, "arity": -4,
"function": "xrevrangeCommand", "function": "xrevrangeCommand",
"history": [
[
"6.2.0",
"Added exclusive ranges."
]
],
"command_flags": [ "command_flags": [
"READONLY" "READONLY"
], ],
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "xtrimCommand", "function": "xtrimCommand",
"history": [ "history": [
[ [
"6.2", "6.2.0",
"Added the `MINID` trimming strategy and the `LIMIT` option." "Added the `MINID` trimming strategy and the `LIMIT` option."
] ]
], ],
...@@ -60,7 +60,8 @@ ...@@ -60,7 +60,8 @@
{ {
"name": "minid", "name": "minid",
"type": "pure-token", "type": "pure-token",
"token": "MINID" "token": "MINID",
"since": "6.2.0"
} }
] ]
}, },
...@@ -89,7 +90,8 @@ ...@@ -89,7 +90,8 @@
"token": "LIMIT", "token": "LIMIT",
"name": "count", "name": "count",
"type": "integer", "type": "integer",
"optional": true "optional": true,
"since": "6.2.0"
} }
] ]
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "zaddCommand", "function": "zaddCommand",
"history": [ "history": [
[ [
"2.4", "2.4.0",
"Accepts multiple elements." "Accepts multiple elements."
], ],
[ [
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"Added the `XX`, `NX`, `CH` and `INCR` options." "Added the `XX`, `NX`, `CH` and `INCR` options."
], ],
[ [
"6.2", "6.2.0",
"Added the `GT` and `LT` options." "Added the `GT` and `LT` options."
] ]
], ],
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
"name": "condition", "name": "condition",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "6.2.0",
"arguments": [ "arguments": [
{ {
"name": "nx", "name": "nx",
...@@ -74,6 +75,7 @@ ...@@ -74,6 +75,7 @@
"name": "comparison", "name": "comparison",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "3.0.2",
"arguments": [ "arguments": [
{ {
"name": "gt", "name": "gt",
...@@ -91,13 +93,15 @@ ...@@ -91,13 +93,15 @@
"name": "change", "name": "change",
"token": "CH", "token": "CH",
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true,
"since": "3.0.2"
}, },
{ {
"name": "increment", "name": "increment",
"token": "INCR", "token": "INCR",
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true,
"since": "3.0.2"
}, },
{ {
"name": "score_member", "name": "score_member",
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "zrangeCommand", "function": "zrangeCommand",
"history": [ "history": [
[ [
"6.2", "6.2.0",
"Added the `REV`, `BYSCORE`, `BYLEX` and `LIMIT` options." "Added the `REV`, `BYSCORE`, `BYLEX` and `LIMIT` options."
] ]
], ],
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
"name": "sortby", "name": "sortby",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "6.2.0",
"arguments": [ "arguments": [
{ {
"name": "byscore", "name": "byscore",
...@@ -72,13 +73,15 @@ ...@@ -72,13 +73,15 @@
"name": "rev", "name": "rev",
"token": "REV", "token": "REV",
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true,
"since": "6.2.0"
}, },
{ {
"token": "LIMIT", "token": "LIMIT",
"name": "offset_count", "name": "offset_count",
"type": "block", "type": "block",
"optional": true, "optional": true,
"since": "6.2.0",
"arguments": [ "arguments": [
{ {
"name": "offset", "name": "offset",
......
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