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