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,11 @@ ...@@ -39,6 +39,11 @@
} }
} }
], ],
"reply_schema": {
"description": "Number of members that were removed from the set, not including non existing members.",
"type": "integer",
"minimum": 0
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -57,6 +57,25 @@ ...@@ -57,6 +57,25 @@
"type": "integer", "type": "integer",
"optional": true "optional": true
} }
],
"reply_schema": {
"description": "cursor and scan response in array form",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "cursor",
"type": "string"
},
{
"description": "list of set members",
"type": "array",
"items": {
"type": "string"
}
}
] ]
} }
}
} }
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
} }
} }
], ],
"reply_schema": {
"description": "The length of the string value stored at key, or 0 when key does not exist.",
"type": "integer",
"minimum": 0
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -37,6 +37,10 @@ ...@@ -37,6 +37,10 @@
} }
} }
], ],
"reply_schema": {
"type": "string",
"description": "The substring of the string value stored at key, determined by the offsets start and end (both are inclusive)."
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -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",
......
...@@ -51,6 +51,11 @@ ...@@ -51,6 +51,11 @@
} }
} }
], ],
"reply_schema": {
"type": "integer",
"description": "Number of the elements in the resulting set.",
"minimum": 0
},
"arguments": [ "arguments": [
{ {
"name": "destination", "name": "destination",
......
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
"name": "index2", "name": "index2",
"type": "integer" "type": "integer"
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -13,6 +13,16 @@ ...@@ -13,6 +13,16 @@
], ],
"command_tips": [ "command_tips": [
"NONDETERMINISTIC_OUTPUT" "NONDETERMINISTIC_OUTPUT"
] ],
"reply_schema": {
"type": "array",
"description": "Array containing two elements: Unix time in seconds and microseconds.",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "string",
"pattern": "[0-9]+"
}
}
} }
} }
...@@ -43,6 +43,11 @@ ...@@ -43,6 +43,11 @@
"key_spec_index": 0, "key_spec_index": 0,
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"description": "the number of touched keys",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -42,6 +42,23 @@ ...@@ -42,6 +42,23 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "TTL in seconds.",
"type": "integer",
"minimum": 0
},
{
"description": "The key exists but has no associated expire.",
"const": -1
},
{
"description": "The key does not exist.",
"const": -2
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -32,6 +32,18 @@ ...@@ -32,6 +32,18 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "Key doesn't exist",
"type": "null"
},
{
"description": "Type of the key",
"type": "string"
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -44,6 +44,11 @@ ...@@ -44,6 +44,11 @@
"key_spec_index": 0, "key_spec_index": 0,
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"description": "the number of keys that were unlinked",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
], ],
"acl_categories": [ "acl_categories": [
"TRANSACTION" "TRANSACTION"
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
"arity": 3, "arity": 3,
"function": "waitCommand", "function": "waitCommand",
"command_flags": [ "command_flags": [
"NOSCRIPT"
], ],
"acl_categories": [ "acl_categories": [
"CONNECTION" "CONNECTION"
...@@ -16,6 +15,11 @@ ...@@ -16,6 +15,11 @@
"REQUEST_POLICY:ALL_SHARDS", "REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:AGG_MIN" "RESPONSE_POLICY:AGG_MIN"
], ],
"reply_schema": {
"type": "integer",
"description": "The number of replicas reached by all the writes performed in the context of the current connection.",
"minimum": 0
},
"arguments": [ "arguments": [
{ {
"name": "numreplicas", "name": "numreplicas",
......
{
"WAITAOF": {
"summary": "Wait for all write commands sent in the context of the current connection to be synced to AOF of local host and/or replicas",
"complexity": "O(1)",
"group": "generic",
"since": "7.2.0",
"arity": 4,
"function": "waitaofCommand",
"command_flags": [
"NOSCRIPT"
],
"acl_categories": [
"CONNECTION"
],
"command_tips": [
"REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:AGG_MIN"
],
"reply_schema": {
"type": "array",
"description": "Number of local and remote AOF files in sync.",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "Number of local AOF files.",
"type": "integer",
"minimum": 0
},
{
"description": "Number of replica AOF files.",
"type": "number",
"minimum": 0
}
]
},
"arguments": [
{
"name": "numlocal",
"type": "integer"
},
{
"name": "numreplicas",
"type": "integer"
},
{
"name": "timeout",
"type": "integer"
}
]
}
}
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
} }
} }
], ],
"reply_schema": {
"const": "OK"
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -48,6 +48,11 @@ ...@@ -48,6 +48,11 @@
"type": "string", "type": "string",
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"description": "The command returns the number of messages successfully acknowledged. Certain message IDs may no longer be part of the PEL (for example because they have already been acknowledged), and XACK will not count them as successfully acknowledged.",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -143,6 +143,19 @@ ...@@ -143,6 +143,19 @@
} }
] ]
} }
],
"reply_schema": {
"oneOf":[
{
"description": "The ID of the added entry. The ID is the one auto-generated if * is passed as ID argument, otherwise the command just returns the same ID specified by the user during insertion.",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "The NOMKSTREAM option is given and the key doesn't exist.",
"type": "null"
}
] ]
} }
}
} }
...@@ -42,6 +42,83 @@ ...@@ -42,6 +42,83 @@
} }
} }
], ],
"reply_schema": {
"anyOf": [
{
"description": "Claimed stream entries (with data, if `JUSTID` was not given).",
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"description": "Cursor for next call.",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "Entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "Data",
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
{
"description": "Entry IDs which no longer exist in the stream, and were deleted from the PEL in which they were found.",
"type": "array",
"items": {
"type": "string",
"pattern": "[0-9]+-[0-9]+"
}
}
]
},
{
"description": "Claimed stream entries (without data, if `JUSTID` was given).",
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"description": "Cursor for next call.",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "[0-9]+-[0-9]+"
}
},
{
"description": "Entry IDs which no longer exist in the stream, and were deleted from the PEL in which they were found.",
"type": "array",
"items": {
"type": "string",
"pattern": "[0-9]+-[0-9]+"
}
}
]
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -95,6 +95,44 @@ ...@@ -95,6 +95,44 @@
"type": "string", "type": "string",
"optional": true "optional": true
} }
],
"reply_schema": {
"description": "Stream entries with IDs matching the specified range.",
"anyOf": [
{
"description": "If JUSTID option is specified, return just an array of IDs of messages successfully claimed",
"type": "array",
"items": {
"description": "Entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
}
},
{
"description": "array of stream entries that contains each entry as an array of 2 elements, the Entry ID and the entry data itself",
"type": "array",
"uniqueItems": true,
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "Entry ID",
"type": "string",
"pattern": "[0-9]+-[0-9]+"
},
{
"description": "Data",
"type": "array",
"items": {
"type": "string"
}
}
] ]
} }
}
]
}
}
} }
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