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

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

parents 6baf20af 6948daca
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
"REQUEST_POLICY:ALL_NODES", "REQUEST_POLICY:ALL_NODES",
"RESPONSE_POLICY:ALL_SUCCEEDED" "RESPONSE_POLICY:ALL_SUCCEEDED"
], ],
"reply_schema": {
"type": "integer",
"description": "Number of event time series that were reset."
},
"arguments": [ "arguments": [
{ {
"name": "event", "name": "event",
......
...@@ -32,6 +32,61 @@ ...@@ -32,6 +32,61 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"type": "string",
"description": "The longest common subsequence."
},
{
"type": "integer",
"description": "The length of the longest common subsequence when 'LEN' is given."
},
{
"type": "object",
"description": "Array with the LCS length and all the ranges in both the strings when 'IDX' is given. In RESP2 this is returned as a flat array",
"additionalProperties": false,
"properties": {
"matches": {
"type": "array",
"items": {
"type": "array",
"minItems": 2,
"maxItems": 3,
"items": [
{
"type": "array",
"description": "Matched range in the first string.",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "integer"
}
},
{
"type": "array",
"description": "Matched range in the second string.",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "integer"
}
}
],
"additionalItems": {
"type": "integer",
"description": "The length of the match when 'WITHMATCHLEN' is given."
}
}
},
"len": {
"type": "integer",
"description": "Length of the longest common subsequence."
}
}
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key1", "name": "key1",
......
...@@ -32,6 +32,18 @@ ...@@ -32,6 +32,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"type": "null",
"description": "Index is out of range"
},
{
"description": "The requested element",
"type": "string"
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -33,6 +33,23 @@ ...@@ -33,6 +33,23 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "List length after a successful insert operation.",
"type": "integer",
"minimum": 1
},
{
"description": "in case key doesn't exist.",
"const": 0
},
{
"description": "when the pivot wasn't found.",
"const": -1
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
} }
} }
], ],
"reply_schema": {
"description": "List length.",
"type": "integer",
"minimum": 0
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -52,6 +52,10 @@ ...@@ -52,6 +52,10 @@
} }
} }
], ],
"reply_schema": {
"description": "The element being popped and pushed.",
"type": "string"
},
"arguments": [ "arguments": [
{ {
"name": "source", "name": "source",
......
...@@ -34,6 +34,34 @@ ...@@ -34,6 +34,34 @@
} }
} }
], ],
"reply_schema": {
"anyOf": [
{
"description": "If no element could be popped.",
"type": "null"
},
{
"description": "List key from which elements were popped.",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "Name of the key from which elements were popped.",
"type": "string"
},
{
"description": "Array of popped elements.",
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
}
]
}
]
},
"arguments": [ "arguments": [
{ {
"name": "numkeys", "name": "numkeys",
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
"READONLY", "READONLY",
"FAST" "FAST"
], ],
"reply_schema": {
"type": "string",
"description": "String containing the generative computer art, and a text with the Redis version."
},
"arguments": [ "arguments": [
{ {
"token": "VERSION", "token": "VERSION",
......
...@@ -40,6 +40,26 @@ ...@@ -40,6 +40,26 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "Key does not exist.",
"type": "null"
},
{
"description": "In case `count` argument was not given, the value of the first element.",
"type": "string"
},
{
"description": "In case `count` argument was given, a list of popped elements",
"type": "array",
"items": {
"type": "string"
}
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -32,6 +32,26 @@ ...@@ -32,6 +32,26 @@
} }
} }
], ],
"reply_schema": {
"anyOf": [
{
"description": "In case there is no matching element",
"type": "null"
},
{
"description": "An integer representing the matching element",
"type": "integer"
},
{
"description": "If the COUNT option is given, an array of integers representing the matching elements (empty if there are no matches)",
"type": "array",
"uniqueItems": true,
"items": {
"type": "integer"
}
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -40,6 +40,10 @@ ...@@ -40,6 +40,10 @@
} }
} }
], ],
"reply_schema": {
"description": "Length of the list after the push operations.",
"type": "integer"
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -40,6 +40,11 @@ ...@@ -40,6 +40,11 @@
} }
} }
], ],
"reply_schema": {
"type": "integer",
"description": "the length of the list after the push operation",
"minimum": 0
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -46,6 +46,13 @@ ...@@ -46,6 +46,13 @@
"name": "stop", "name": "stop",
"type": "integer" "type": "integer"
} }
] ],
"reply_schema": {
"description": "List of elements in the specified range",
"type": "array",
"items": {
"type": "string"
}
}
} }
} }
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
} }
} }
], ],
"reply_schema": {
"description": "The number of removed elements.",
"type": "integer",
"minimum": 0
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
} }
} }
], ],
"reply_schema": {
"const": "OK"
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -32,6 +32,9 @@ ...@@ -32,6 +32,9 @@
} }
} }
], ],
"reply_schema": {
"const": "OK"
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
"NONDETERMINISTIC_OUTPUT", "NONDETERMINISTIC_OUTPUT",
"REQUEST_POLICY:ALL_SHARDS", "REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:SPECIAL" "RESPONSE_POLICY:SPECIAL"
] ],
"reply_schema": {
"description": "memory problems report",
"type": "string"
}
} }
} }
...@@ -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"
}
}
} }
} }
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
"NONDETERMINISTIC_OUTPUT", "NONDETERMINISTIC_OUTPUT",
"REQUEST_POLICY:ALL_SHARDS", "REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:SPECIAL" "RESPONSE_POLICY:SPECIAL"
] ],
"reply_schema": {
"type": "string",
"description": "The memory allocator's internal statistics report."
}
} }
} }
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
"command_tips": [ "command_tips": [
"REQUEST_POLICY:ALL_SHARDS", "REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:ALL_SUCCEEDED" "RESPONSE_POLICY:ALL_SUCCEEDED"
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
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