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 @@
{
"name": "async",
"type": "pure-token",
"token": "ASYNC"
"token": "ASYNC",
"since": "4.0.0"
},
{
"name": "sync",
"type": "pure-token",
"token": "SYNC"
"token": "SYNC",
"since": "6.2.0"
}
]
}
......
......@@ -6,6 +6,16 @@
"since": "1.0.0",
"arity": -1,
"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": [
"WRITE"
],
......@@ -22,12 +32,14 @@
{
"name": "async",
"type": "pure-token",
"token": "ASYNC"
"token": "ASYNC",
"since": "4.0.0"
},
{
"name": "sync",
"type": "pure-token",
"token": "SYNC"
"token": "SYNC",
"since": "6.2.0"
}
]
}
......
......@@ -8,7 +8,7 @@
"function": "geoaddCommand",
"history": [
[
"6.2",
"6.2.0",
"Added the `CH`, `NX` and `XX` options."
]
],
......@@ -48,6 +48,7 @@
"name": "condition",
"type": "oneof",
"optional": true,
"since": "6.2.0",
"arguments": [
{
"name": "nx",
......@@ -65,7 +66,8 @@
"name": "change",
"token": "CH",
"type": "pure-token",
"optional": true
"optional": true,
"since": "6.2.0"
},
{
"name": "longitude_latitude_member",
......
......@@ -9,7 +9,7 @@
"get_keys_function": "georadiusGetKeys",
"history": [
[
"6.2",
"6.2.0",
"Added the `ANY` option for `COUNT`."
]
],
......@@ -156,7 +156,8 @@
"name": "any",
"token": "ANY",
"type": "pure-token",
"optional": true
"optional": true,
"since": "6.2.0"
}
]
},
......
......@@ -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.",
"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",
"since": "6.2",
"since": "6.2.0",
"arity": -7,
"function": "geosearchCommand",
"command_flags": [
......
......@@ -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.",
"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",
"since": "6.2",
"since": "6.2.0",
"arity": -8,
"function": "geosearchstoreCommand",
"command_flags": [
......
......@@ -6,6 +6,12 @@
"since": "2.0.0",
"arity": -3,
"function": "hdelCommand",
"history": [
[
"2.4.0",
"Accepts multiple `field` arguments."
]
],
"command_flags": [
"WRITE",
"FAST"
......
......@@ -8,7 +8,7 @@
"function": "helloCommand",
"history": [
[
"6.2",
"6.2.0",
"`protover` made optional; when called without arguments the command reports the current connection's context."
]
],
......
......@@ -6,6 +6,12 @@
"since": "2.0.0",
"arity": -4,
"function": "hsetCommand",
"history": [
[
"4.0.0",
"Accepts multiple `field` and `value` arguments."
]
],
"command_flags": [
"WRITE",
"DENYOOM",
......
......@@ -8,7 +8,7 @@
"function": "lpopCommand",
"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": "lpushCommand",
"history": [
[
"2.4",
"2.4.0",
"Accepts multiple `element` arguments."
]
],
......
......@@ -8,7 +8,7 @@
"function": "lpushxCommand",
"history": [
[
"4.0",
"4.0.0",
"Accepts multiple `element` arguments."
]
],
......
......@@ -108,25 +108,30 @@
"name": "copy",
"token": "COPY",
"type": "pure-token",
"optional": true
"optional": true,
"since": "3.0.0"
},
{
"name": "replace",
"token": "REPLACE",
"type": "pure-token",
"optional": true
"optional": true,
"since": "3.0.0"
},
{
"token": "AUTH",
"name": "password",
"type": "string",
"optional": true
"optional": true,
"since": "4.0.7"
},
{
"token": "AUTH2",
"name": "username_password",
"type": "block",
"optional": true,
"since": "6.0.0",
"arguments": [
{
"name": "username",
......@@ -144,7 +149,8 @@
"type": "key",
"key_spec_index": 1,
"optional": true,
"multiple": true
"multiple": true,
"since": "3.0.6"
}
]
}
......
......@@ -7,11 +7,11 @@
"function": "monitorCommand",
"history": [
[
"6.0",
"6.0.0",
"`AUTH` excluded from the command's output."
],
[
"6.2",
"6.2.0",
"`RESET` can be called to exit monitor mode."
],
[
......
......@@ -8,7 +8,7 @@
"function": "pexpireCommand",
"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": "pexpireatCommand",
"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",
......
......@@ -6,6 +6,12 @@
"since": "2.6.0",
"arity": 2,
"function": "pttlCommand",
"history": [
[
"2.8.0",
"Added the -2 reply."
]
],
"command_flags": [
"READONLY",
"RANDOM",
......
......@@ -6,6 +6,12 @@
"since": "1.0.0",
"arity": 3,
"function": "renameCommand",
"history": [
[
"3.2.0",
"The command no longer returns an error when source and destination names are the same."
]
],
"command_flags": [
"WRITE"
],
......
......@@ -6,6 +6,12 @@
"since": "1.0.0",
"arity": 3,
"function": "renamenxCommand",
"history": [
[
"3.2.0",
"The command no longer returns an error when source and destination names are the same."
]
],
"command_flags": [
"WRITE",
"FAST"
......
......@@ -6,6 +6,20 @@
"since": "2.6.0",
"arity": -4,
"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": [
"WRITE",
"DENYOOM"
......@@ -51,25 +65,29 @@
"name": "replace",
"token": "REPLACE",
"type": "pure-token",
"optional": true
"optional": true,
"since": "3.0.0"
},
{
"name": "absttl",
"token": "ABSTTL",
"type": "pure-token",
"optional": true
"optional": true,
"since": "5.0.0"
},
{
"token": "IDLETIME",
"name": "seconds",
"type": "integer",
"optional": true
"optional": true,
"since": "5.0.0"
},
{
"token": "FREQ",
"name": "frequency",
"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