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
...@@ -32,12 +32,14 @@ ...@@ -32,12 +32,14 @@
{ {
"name": "async", "name": "async",
"type": "pure-token", "type": "pure-token",
"token": "ASYNC" "token": "ASYNC",
"since": "4.0.0"
}, },
{ {
"name": "sync", "name": "sync",
"type": "pure-token", "type": "pure-token",
"token": "SYNC" "token": "SYNC",
"since": "6.2.0"
} }
] ]
} }
......
...@@ -6,6 +6,16 @@ ...@@ -6,6 +6,16 @@
"since": "1.0.0", "since": "1.0.0",
"arity": -1, "arity": -1,
"function": "flushdbCommand", "function": "flushdbCommand",
"history": [
[
"4.0.0",
"Added the `ASYNC` flushing mode modifier."
],
[
"6.2.0",
"Added the `SYNC` flushing mode modifier and the **lazyfree-lazy-user-flush** configuration directive."
]
],
"command_flags": [ "command_flags": [
"WRITE" "WRITE"
], ],
...@@ -22,12 +32,14 @@ ...@@ -22,12 +32,14 @@
{ {
"name": "async", "name": "async",
"type": "pure-token", "type": "pure-token",
"token": "ASYNC" "token": "ASYNC",
"since": "4.0.0"
}, },
{ {
"name": "sync", "name": "sync",
"type": "pure-token", "type": "pure-token",
"token": "SYNC" "token": "SYNC",
"since": "6.2.0"
} }
] ]
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "geoaddCommand", "function": "geoaddCommand",
"history": [ "history": [
[ [
"6.2", "6.2.0",
"Added the `CH`, `NX` and `XX` options." "Added the `CH`, `NX` and `XX` options."
] ]
], ],
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
"name": "condition", "name": "condition",
"type": "oneof", "type": "oneof",
"optional": true, "optional": true,
"since": "6.2.0",
"arguments": [ "arguments": [
{ {
"name": "nx", "name": "nx",
...@@ -65,7 +66,8 @@ ...@@ -65,7 +66,8 @@
"name": "change", "name": "change",
"token": "CH", "token": "CH",
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true,
"since": "6.2.0"
}, },
{ {
"name": "longitude_latitude_member", "name": "longitude_latitude_member",
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"get_keys_function": "georadiusGetKeys", "get_keys_function": "georadiusGetKeys",
"history": [ "history": [
[ [
"6.2", "6.2.0",
"Added the `ANY` option for `COUNT`." "Added the `ANY` option for `COUNT`."
] ]
], ],
...@@ -156,7 +156,8 @@ ...@@ -156,7 +156,8 @@
"name": "any", "name": "any",
"token": "ANY", "token": "ANY",
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true,
"since": "6.2.0"
} }
] ]
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"summary": "Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle.", "summary": "Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle.",
"complexity": "O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape", "complexity": "O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape",
"group": "geo", "group": "geo",
"since": "6.2", "since": "6.2.0",
"arity": -7, "arity": -7,
"function": "geosearchCommand", "function": "geosearchCommand",
"command_flags": [ "command_flags": [
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"summary": "Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle, and store the result in another key.", "summary": "Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle, and store the result in another key.",
"complexity": "O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape", "complexity": "O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape",
"group": "geo", "group": "geo",
"since": "6.2", "since": "6.2.0",
"arity": -8, "arity": -8,
"function": "geosearchstoreCommand", "function": "geosearchstoreCommand",
"command_flags": [ "command_flags": [
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
"since": "2.0.0", "since": "2.0.0",
"arity": -3, "arity": -3,
"function": "hdelCommand", "function": "hdelCommand",
"history": [
[
"2.4.0",
"Accepts multiple `field` arguments."
]
],
"command_flags": [ "command_flags": [
"WRITE", "WRITE",
"FAST" "FAST"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "helloCommand", "function": "helloCommand",
"history": [ "history": [
[ [
"6.2", "6.2.0",
"`protover` made optional; when called without arguments the command reports the current connection's context." "`protover` made optional; when called without arguments the command reports the current connection's context."
] ]
], ],
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
"since": "2.0.0", "since": "2.0.0",
"arity": -4, "arity": -4,
"function": "hsetCommand", "function": "hsetCommand",
"history": [
[
"4.0.0",
"Accepts multiple `field` and `value` arguments."
]
],
"command_flags": [ "command_flags": [
"WRITE", "WRITE",
"DENYOOM", "DENYOOM",
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "lpopCommand", "function": "lpopCommand",
"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": "lpushCommand", "function": "lpushCommand",
"history": [ "history": [
[ [
"2.4", "2.4.0",
"Accepts multiple `element` arguments." "Accepts multiple `element` arguments."
] ]
], ],
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "lpushxCommand", "function": "lpushxCommand",
"history": [ "history": [
[ [
"4.0", "4.0.0",
"Accepts multiple `element` arguments." "Accepts multiple `element` arguments."
] ]
], ],
......
...@@ -108,25 +108,30 @@ ...@@ -108,25 +108,30 @@
"name": "copy", "name": "copy",
"token": "COPY", "token": "COPY",
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true,
"since": "3.0.0"
}, },
{ {
"name": "replace", "name": "replace",
"token": "REPLACE", "token": "REPLACE",
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true,
"since": "3.0.0"
}, },
{ {
"token": "AUTH", "token": "AUTH",
"name": "password", "name": "password",
"type": "string", "type": "string",
"optional": true "optional": true,
"since": "4.0.7"
}, },
{ {
"token": "AUTH2", "token": "AUTH2",
"name": "username_password", "name": "username_password",
"type": "block", "type": "block",
"optional": true, "optional": true,
"since": "6.0.0",
"arguments": [ "arguments": [
{ {
"name": "username", "name": "username",
...@@ -144,7 +149,8 @@ ...@@ -144,7 +149,8 @@
"type": "key", "type": "key",
"key_spec_index": 1, "key_spec_index": 1,
"optional": true, "optional": true,
"multiple": true "multiple": true,
"since": "3.0.6"
} }
] ]
} }
......
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
"function": "monitorCommand", "function": "monitorCommand",
"history": [ "history": [
[ [
"6.0", "6.0.0",
"`AUTH` excluded from the command's output." "`AUTH` excluded from the command's output."
], ],
[ [
"6.2", "6.2.0",
"`RESET` can be called to exit monitor mode." "`RESET` can be called to exit monitor mode."
], ],
[ [
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"function": "pexpireCommand", "function": "pexpireCommand",
"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": "pexpireatCommand", "function": "pexpireatCommand",
"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",
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
"since": "2.6.0", "since": "2.6.0",
"arity": 2, "arity": 2,
"function": "pttlCommand", "function": "pttlCommand",
"history": [
[
"2.8.0",
"Added the -2 reply."
]
],
"command_flags": [ "command_flags": [
"READONLY", "READONLY",
"RANDOM", "RANDOM",
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
"since": "1.0.0", "since": "1.0.0",
"arity": 3, "arity": 3,
"function": "renameCommand", "function": "renameCommand",
"history": [
[
"3.2.0",
"The command no longer returns an error when source and destination names are the same."
]
],
"command_flags": [ "command_flags": [
"WRITE" "WRITE"
], ],
......
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
"since": "1.0.0", "since": "1.0.0",
"arity": 3, "arity": 3,
"function": "renamenxCommand", "function": "renamenxCommand",
"history": [
[
"3.2.0",
"The command no longer returns an error when source and destination names are the same."
]
],
"command_flags": [ "command_flags": [
"WRITE", "WRITE",
"FAST" "FAST"
......
...@@ -6,6 +6,20 @@ ...@@ -6,6 +6,20 @@
"since": "2.6.0", "since": "2.6.0",
"arity": -4, "arity": -4,
"function": "restoreCommand", "function": "restoreCommand",
"history": [
[
"3.0.0",
"Added the `REPLACE` modifier."
],
[
"5.0.0",
"Added the `ABSTTL` modifier."
],
[
"5.0.0",
"Added the `IDLETIME` and `FREQ` options."
]
],
"command_flags": [ "command_flags": [
"WRITE", "WRITE",
"DENYOOM" "DENYOOM"
...@@ -51,25 +65,29 @@ ...@@ -51,25 +65,29 @@
"name": "replace", "name": "replace",
"token": "REPLACE", "token": "REPLACE",
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true,
"since": "3.0.0"
}, },
{ {
"name": "absttl", "name": "absttl",
"token": "ABSTTL", "token": "ABSTTL",
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true,
"since": "5.0.0"
}, },
{ {
"token": "IDLETIME", "token": "IDLETIME",
"name": "seconds", "name": "seconds",
"type": "integer", "type": "integer",
"optional": true "optional": true,
"since": "5.0.0"
}, },
{ {
"token": "FREQ", "token": "FREQ",
"name": "frequency", "name": "frequency",
"type": "integer", "type": "integer",
"optional": true "optional": true,
"since": "5.0.0"
} }
] ]
} }
......
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