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

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

parents 6baf20af 6948daca
......@@ -64,6 +64,9 @@
"type": "key",
"key_spec_index": 1
}
]
],
"reply_schema": {
"const": "OK"
}
}
}
......@@ -69,6 +69,18 @@
"type": "key",
"key_spec_index": 1
}
],
"reply_schema": {
"oneOf": [
{
"description": "key was renamed to newkey",
"const": 1
},
{
"description": "new key already exists",
"const": 0
}
]
}
}
}
......@@ -15,6 +15,9 @@
"LOADING",
"STALE",
"ALLOW_BUSY"
]
],
"reply_schema": {
"const": "OK"
}
}
}
......@@ -21,6 +21,11 @@
"name": "port",
"type": "integer"
}
]
],
"reply_schema": {
"description": "replicaOf status",
"type": "string",
"pattern": "OK*"
}
}
}
......@@ -16,6 +16,9 @@
],
"acl_categories": [
"CONNECTION"
]
],
"reply_schema": {
"const": "RESET"
}
}
}
......@@ -94,6 +94,9 @@
"optional": true,
"since": "5.0.0"
}
]
],
"reply_schema": {
"const": "OK"
}
}
}
......@@ -48,6 +48,9 @@
}
}
],
"reply_schema": {
"const": "OK"
},
"arguments": [
{
"name": "key",
......
......@@ -16,6 +16,119 @@
"acl_categories": [
"ADMIN",
"DANGEROUS"
],
"reply_schema": {
"oneOf": [
{
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"const": "master"
},
{
"description": "current replication master offset",
"type": "integer"
},
{
"description": "connected replicas",
"type": "array",
"items": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"description": "replica ip",
"type": "string"
},
{
"description": "replica port",
"type": "string"
},
{
"description": "last acknowledged replication offset",
"type": "string"
}
]
}
}
]
},
{
"type": "array",
"minItems": 5,
"maxItems": 5,
"items": [
{
"const": "slave"
},
{
"description": "ip of master",
"type": "string"
},
{
"description": "port number of master",
"type": "integer"
},
{
"description": "state of the replication from the point of view of the master",
"oneOf": [
{
"description": "the instance is in handshake with its master",
"const": "handshake"
},
{
"description": "the instance in not active",
"const": "none"
},
{
"description": "the instance needs to connect to its master",
"const": "connect"
},
{
"description": "the master-replica connection is in progress",
"const": "connecting"
},
{
"description": "the master and replica are trying to perform the synchronization",
"const": "sync"
},
{
"description": "the replica is online",
"const": "connected"
},
{
"description": "instance state is unknown",
"const": "unknown"
}
]
},
{
"description": "the amount of data received from the replica so far in terms of master replication offset",
"type": "integer"
}
]
},
{
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"const": "sentinel"
},
{
"description": "list of master names monitored by this sentinel instance",
"type": "array",
"items": {
"type": "string"
}
}
]
}
]
}
}
}
......@@ -40,6 +40,25 @@
}
}
],
"reply_schema": {
"oneOf": [
{
"type": "null",
"description": "Key does not exist."
},
{
"type": "string",
"description": "When 'COUNT' was not given, the value of the last element."
},
{
"type": "array",
"description": "When 'COUNT' was given, list of popped elements.",
"items": {
"type": "string"
}
}
]
},
"arguments": [
{
"name": "key",
......
......@@ -57,6 +57,18 @@
}
}
],
"reply_schema": {
"oneOf": [
{
"type": "string",
"description": "The element being popped and pushed."
},
{
"type": "null",
"description": "Source list is empty."
}
]
},
"arguments": [
{
"name": "source",
......
......@@ -40,6 +40,11 @@
}
}
],
"reply_schema": {
"description": "Length of the list after the push operations.",
"type": "integer",
"minimum": 1
},
"arguments": [
{
"name": "key",
......
......@@ -40,6 +40,11 @@
}
}
],
"reply_schema": {
"type": "integer",
"description": "Length of the list after the push operation.",
"minimum": 0
},
"arguments": [
{
"name": "key",
......
......@@ -40,6 +40,10 @@
}
}
],
"reply_schema": {
"description": "Number of elements that were added to the set, not including all the elements already present in the set.",
"type": "integer"
},
"arguments": [
{
"name": "key",
......
......@@ -11,6 +11,9 @@
"ADMIN",
"NOSCRIPT",
"NO_MULTI"
]
],
"reply_schema": {
"const": "OK"
}
}
}
......@@ -47,6 +47,25 @@
"optional": true,
"since": "6.0.0"
}
],
"reply_schema": {
"description": "cursor and scan response in array form",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"description": "cursor",
"type": "string"
},
{
"description": "list of keys",
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
}
......@@ -32,6 +32,11 @@
}
}
],
"reply_schema": {
"description": "The cardinality (number of elements) of the set, or 0 if key does not exist.",
"type": "integer",
"minimum": 0
},
"arguments": [
{
"name": "key",
......
......@@ -35,6 +35,9 @@
}
]
}
]
],
"reply_schema": {
"const": "OK"
}
}
}
......@@ -23,6 +23,22 @@
"type": "string",
"multiple": true
}
],
"reply_schema": {
"description": "An array of integers that correspond to the specified SHA1 digest arguments.",
"type": "array",
"items": {
"oneOf": [
{
"description": "sha1 hash exists in script cache",
"const": 1
},
{
"description": "sha1 hash does not exist in script cache",
"const": 0
}
]
}
}
}
}
......@@ -42,6 +42,9 @@
}
]
}
]
],
"reply_schema": {
"const": "OK"
}
}
}
......@@ -13,6 +13,13 @@
],
"acl_categories": [
"SCRIPTING"
]
],
"reply_schema": {
"type": "array",
"description": "Helpful text about subcommands.",
"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