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": [
{
"const": 1,
"description": "The timeout was set."
},
{
"const": 0,
"description": "The timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments."
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -33,6 +33,23 @@ ...@@ -33,6 +33,23 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"type": "integer",
"description": "Expiration Unix timestamp in milliseconds.",
"minimum": 0
},
{
"const": -1,
"description": "The key exists but has no associated expiration time."
},
{
"const": -2,
"description": "The key does not exist."
}
]
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -46,6 +46,18 @@ ...@@ -46,6 +46,18 @@
"optional": true, "optional": true,
"multiple": true "multiple": true
} }
],
"reply_schema": {
"oneOf": [
{
"description": "if at least 1 HyperLogLog internal register was altered",
"const": 1
},
{
"description": "if no HyperLogLog internal register were altered",
"const": 0
}
] ]
} }
}
} }
...@@ -41,6 +41,10 @@ ...@@ -41,6 +41,10 @@
"key_spec_index": 0, "key_spec_index": 0,
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"description": "The approximated number of unique elements observed via PFADD",
"type": "integer"
}
} }
} }
...@@ -65,6 +65,9 @@ ...@@ -65,6 +65,9 @@
"optional": true, "optional": true,
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
], ],
"acl_categories": [ "acl_categories": [
"HYPERLOGLOG" "HYPERLOGLOG"
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -17,6 +17,18 @@ ...@@ -17,6 +17,18 @@
"REQUEST_POLICY:ALL_SHARDS", "REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:ALL_SUCCEEDED" "RESPONSE_POLICY:ALL_SUCCEEDED"
], ],
"reply_schema": {
"anyOf": [
{
"const": "PONG",
"description": "Default reply."
},
{
"type": "string",
"description": "Relay of given `message`."
}
]
},
"arguments": [ "arguments": [
{ {
"name": "message", "name": "message",
......
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
} }
} }
], ],
"reply_schema": {
"const": "OK"
},
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -42,6 +42,23 @@ ...@@ -42,6 +42,23 @@
} }
} }
], ],
"reply_schema": {
"oneOf": [
{
"description": "TTL in milliseconds.",
"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",
......
...@@ -23,6 +23,11 @@ ...@@ -23,6 +23,11 @@
"name": "message", "name": "message",
"type": "string" "type": "string"
} }
] ],
"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
}
} }
} }
...@@ -18,6 +18,14 @@ ...@@ -18,6 +18,14 @@
"type": "pattern", "type": "pattern",
"optional": true "optional": true
} }
] ],
"reply_schema": {
"description": "a list of active channels, optionally matching the specified pattern",
"type": "array",
"uniqueItems": true,
"items": {
"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,11 @@ ...@@ -11,6 +11,11 @@
"PUBSUB", "PUBSUB",
"LOADING", "LOADING",
"STALE" "STALE"
] ],
"reply_schema": {
"description": "the number of patterns all the clients are subscribed to",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
"optional": true, "optional": true,
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"description": "the number of subscribers per channel, each even element (including 0th) is channel name, each odd element is the number of subscribers",
"type": "array"
}
} }
} }
...@@ -18,6 +18,14 @@ ...@@ -18,6 +18,14 @@
"type": "pattern", "type": "pattern",
"optional": true "optional": true
} }
] ],
"reply_schema": {
"description": "a list of active channels, optionally matching the specified pattern",
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
}
} }
} }
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
"optional": true, "optional": true,
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"description": "the number of subscribers per shard channel, each even element (including 0th) is channel name, each odd element is the number of subscribers",
"type": "array"
}
} }
} }
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
], ],
"acl_categories": [ "acl_categories": [
"CONNECTION" "CONNECTION"
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -16,6 +16,18 @@ ...@@ -16,6 +16,18 @@
"command_tips": [ "command_tips": [
"REQUEST_POLICY:ALL_SHARDS", "REQUEST_POLICY:ALL_SHARDS",
"NONDETERMINISTIC_OUTPUT" "NONDETERMINISTIC_OUTPUT"
],
"reply_schema": {
"oneOf": [
{
"description": "when the database is empty",
"type": "null"
},
{
"description": "random key in db",
"type": "string"
}
] ]
} }
}
} }
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
], ],
"acl_categories": [ "acl_categories": [
"CONNECTION" "CONNECTION"
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
], ],
"acl_categories": [ "acl_categories": [
"CONNECTION" "CONNECTION"
] ],
"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