Commit 72935b9d authored by Vitaly Arbuzov's avatar Vitaly Arbuzov
Browse files

Merge branch 'unstable' into dict-split-by-slot

parents 6baf20af 6948daca
...@@ -39,6 +39,18 @@ ...@@ -39,6 +39,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "The key was set.",
"const": 0
},
{
"description": "The key was not set.",
"const": 1
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -33,6 +33,11 @@ ...@@ -33,6 +33,11 @@
} }
} }
], ],
"reply_schema": {
"description": "Length of the string after it was modified by the command.",
"type": "integer",
"minimum": 0
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -60,6 +60,10 @@ ...@@ -60,6 +60,10 @@
"optional": true, "optional": true,
"since": "7.0.0" "since": "7.0.0"
} }
] ],
"reply_schema": {
"description": "OK if ABORT was specified and shutdown was aborted. On successful shutdown, nothing is returned since the server quits and the connection is closed. On failure, an error is returned.",
"const": "OK"
}
} }
} }
...@@ -35,6 +35,14 @@ ...@@ -35,6 +35,14 @@
} }
} }
], ],
"reply_schema": {
"type": "array",
"description": "List with the members of the resulting set.",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -33,6 +33,11 @@ ...@@ -33,6 +33,11 @@
} }
} }
], ],
"reply_schema": {
"description": "Number of the elements in the resulting intersection.",
"type": "integer",
"minimum": 0
},
"arguments": [ "arguments": [
{ {
"name": "numkeys", "name": "numkeys",
......
...@@ -51,6 +51,11 @@ ...@@ -51,6 +51,11 @@
} }
} }
], ],
"reply_schema": {
"description": "Number of the elements in the result set.",
"type": "integer",
"minimum": 0
},
"arguments": [ "arguments": [
{ {
"name": "destination", "name": "destination",
......
...@@ -32,6 +32,18 @@ ...@@ -32,6 +32,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"const": 0,
"description": "The element is not a member of the set, or the key does not exist."
},
{
"const": 1,
"description": "The element is a member of the set."
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -26,6 +26,11 @@ ...@@ -26,6 +26,11 @@
"name": "port", "name": "port",
"type": "integer" "type": "integer"
} }
] ],
"reply_schema": {
"description": "slaveOf status",
"type": "string",
"pattern": "OK*"
}
} }
} }
...@@ -22,6 +22,47 @@ ...@@ -22,6 +22,47 @@
"REQUEST_POLICY:ALL_NODES", "REQUEST_POLICY:ALL_NODES",
"NONDETERMINISTIC_OUTPUT" "NONDETERMINISTIC_OUTPUT"
], ],
"reply_schema": {
"type": "array",
"description": "Entries from the slow log in chronological order.",
"uniqueItems": true,
"items": {
"type": "array",
"minItems": 6,
"maxItems": 6,
"items": [
{
"type": "integer",
"description": "Slow log entry ID."
},
{
"type": "integer",
"description": "The unix timestamp at which the logged command was processed.",
"minimum": 0
},
{
"type": "integer",
"description": "The amount of time needed for its execution, in microseconds.",
"minimum": 0
},
{
"type": "array",
"description": "The arguments of the command.",
"items": {
"type": "string"
}
},
{
"type": "string",
"description": "Client IP address and port."
},
{
"type": "string",
"description": "Client name if set via the CLIENT SETNAME command."
}
]
}
},
"arguments": [ "arguments": [
{ {
"name": "count", "name": "count",
......
...@@ -10,6 +10,13 @@ ...@@ -10,6 +10,13 @@
"command_flags": [ "command_flags": [
"LOADING", "LOADING",
"STALE" "STALE"
] ],
"reply_schema": {
"type": "array",
"description": "Helpful text about subcommands.",
"items": {
"type": "string"
}
}
} }
} }
...@@ -16,6 +16,11 @@ ...@@ -16,6 +16,11 @@
"REQUEST_POLICY:ALL_NODES", "REQUEST_POLICY:ALL_NODES",
"RESPONSE_POLICY:AGG_SUM", "RESPONSE_POLICY:AGG_SUM",
"NONDETERMINISTIC_OUTPUT" "NONDETERMINISTIC_OUTPUT"
] ],
"reply_schema": {
"type": "integer",
"description": "Number of entries in the slow log.",
"minimum": 0
}
} }
} }
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
"command_tips": [ "command_tips": [
"REQUEST_POLICY:ALL_NODES", "REQUEST_POLICY:ALL_NODES",
"RESPONSE_POLICY:ALL_SUCCEEDED" "RESPONSE_POLICY:ALL_SUCCEEDED"
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -35,6 +35,14 @@ ...@@ -35,6 +35,14 @@
} }
} }
], ],
"reply_schema": {
"type": "array",
"description": "All elements of the set.",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -33,6 +33,23 @@ ...@@ -33,6 +33,23 @@
} }
} }
], ],
"reply_schema": {
"type": "array",
"description": "List representing the membership of the given elements, in the same order as they are requested.",
"minItems": 1,
"items": {
"oneOf": [
{
"const": 0,
"description": "Not a member of the set or the key does not exist."
},
{
"const": 1,
"description": "A member of the set."
}
]
}
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -52,6 +52,18 @@ ...@@ -52,6 +52,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"const": 1,
"description": "Element is moved."
},
{
"const": 0,
"description": "The element is not a member of source and no operation was performed."
}
]
},
"arguments": [ "arguments": [
{ {
"name": "source", "name": "source",
......
...@@ -133,6 +133,30 @@ ...@@ -133,6 +133,30 @@
"key_spec_index": 2, "key_spec_index": 2,
"optional": true "optional": true
} }
] ],
"reply_schema": {
"oneOf": [
{
"description": "when the store option is specified the command returns the number of sorted elements in the destination list",
"type": "integer",
"minimum": 0
},
{
"description": "when not passing the store option the command returns a list of sorted elements",
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"description": "GET option is specified, but no object was found ",
"type": "null"
}
]
}
}
]
}
} }
} }
...@@ -112,6 +112,13 @@ ...@@ -112,6 +112,13 @@
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true
} }
] ],
"reply_schema": {
"description": "a list of sorted elements",
"type": "array",
"items": {
"type": "string"
}
}
} }
} }
...@@ -43,6 +43,26 @@ ...@@ -43,6 +43,26 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"type": "null",
"description": "The key does not exist."
},
{
"type": "string",
"description": "The removed member when 'COUNT' is not given."
},
{
"type": "array",
"description": "List to the removed members when 'COUNT' is given.",
"uniqueItems": true,
"items": {
"type": "string"
}
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -41,6 +41,11 @@ ...@@ -41,6 +41,11 @@
} }
} }
} }
] ],
"reply_schema": {
"description": "the number of clients that received the message. Note that in a Redis Cluster, only clients that are connected to the same node as the publishing client are included in the count",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -53,6 +53,31 @@ ...@@ -53,6 +53,31 @@
"optional": true, "optional": true,
"since": "2.6.0" "since": "2.6.0"
} }
] ],
"reply_schema": {
"oneOf": [
{
"description": "In case `count` is not given and key doesn't exist",
"type": "null"
},
{
"description": "In case `count` is not given, randomly selected element",
"type": "string"
},
{
"description": "In case `count` is given, an array of elements",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
{
"description": "In case `count` is given and key doesn't exist",
"type": "array",
"maxItems": 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