Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
72935b9d
Commit
72935b9d
authored
Mar 21, 2023
by
Vitaly Arbuzov
Browse files
Merge branch 'unstable' into dict-split-by-slot
parents
6baf20af
6948daca
Changes
456
Hide whitespace changes
Inline
Side-by-side
src/commands/rename.json
View file @
72935b9d
...
@@ -64,6 +64,9 @@
...
@@ -64,6 +64,9 @@
"type"
:
"key"
,
"type"
:
"key"
,
"key_spec_index"
:
1
"key_spec_index"
:
1
}
}
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
}
}
src/commands/renamenx.json
View file @
72935b9d
...
@@ -69,6 +69,18 @@
...
@@ -69,6 +69,18 @@
"type"
:
"key"
,
"type"
:
"key"
,
"key_spec_index"
:
1
"key_spec_index"
:
1
}
}
]
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"key was renamed to newkey"
,
"const"
:
1
},
{
"description"
:
"new key already exists"
,
"const"
:
0
}
]
}
}
}
}
}
src/commands/replconf.json
View file @
72935b9d
...
@@ -15,6 +15,9 @@
...
@@ -15,6 +15,9 @@
"LOADING"
,
"LOADING"
,
"STALE"
,
"STALE"
,
"ALLOW_BUSY"
"ALLOW_BUSY"
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
}
}
src/commands/replicaof.json
View file @
72935b9d
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
"name"
:
"port"
,
"name"
:
"port"
,
"type"
:
"integer"
"type"
:
"integer"
}
}
]
],
"reply_schema"
:
{
"description"
:
"replicaOf status"
,
"type"
:
"string"
,
"pattern"
:
"OK*"
}
}
}
}
}
src/commands/reset.json
View file @
72935b9d
...
@@ -16,6 +16,9 @@
...
@@ -16,6 +16,9 @@
],
],
"acl_categories"
:
[
"acl_categories"
:
[
"CONNECTION"
"CONNECTION"
]
],
"reply_schema"
:
{
"const"
:
"RESET"
}
}
}
}
}
src/commands/restore-asking.json
View file @
72935b9d
...
@@ -94,6 +94,9 @@
...
@@ -94,6 +94,9 @@
"optional"
:
true
,
"optional"
:
true
,
"since"
:
"5.0.0"
"since"
:
"5.0.0"
}
}
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
}
}
src/commands/restore.json
View file @
72935b9d
...
@@ -48,6 +48,9 @@
...
@@ -48,6 +48,9 @@
}
}
}
}
],
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/role.json
View file @
72935b9d
...
@@ -16,6 +16,119 @@
...
@@ -16,6 +16,119 @@
"acl_categories"
:
[
"acl_categories"
:
[
"ADMIN"
,
"ADMIN"
,
"DANGEROUS"
"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"
}
}
]
}
]
}
}
}
}
}
src/commands/rpop.json
View file @
72935b9d
...
@@ -40,6 +40,25 @@
...
@@ -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"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/rpoplpush.json
View file @
72935b9d
...
@@ -57,6 +57,18 @@
...
@@ -57,6 +57,18 @@
}
}
}
}
],
],
"reply_schema"
:
{
"oneOf"
:
[
{
"type"
:
"string"
,
"description"
:
"The element being popped and pushed."
},
{
"type"
:
"null"
,
"description"
:
"Source list is empty."
}
]
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"source"
,
"name"
:
"source"
,
...
...
src/commands/rpush.json
View file @
72935b9d
...
@@ -40,6 +40,11 @@
...
@@ -40,6 +40,11 @@
}
}
}
}
],
],
"reply_schema"
:
{
"description"
:
"Length of the list after the push operations."
,
"type"
:
"integer"
,
"minimum"
:
1
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/rpushx.json
View file @
72935b9d
...
@@ -40,6 +40,11 @@
...
@@ -40,6 +40,11 @@
}
}
}
}
],
],
"reply_schema"
:
{
"type"
:
"integer"
,
"description"
:
"Length of the list after the push operation."
,
"minimum"
:
0
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/sadd.json
View file @
72935b9d
...
@@ -40,6 +40,10 @@
...
@@ -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"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/save.json
View file @
72935b9d
...
@@ -11,6 +11,9 @@
...
@@ -11,6 +11,9 @@
"ADMIN"
,
"ADMIN"
,
"NOSCRIPT"
,
"NOSCRIPT"
,
"NO_MULTI"
"NO_MULTI"
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
}
}
src/commands/scan.json
View file @
72935b9d
...
@@ -47,6 +47,25 @@
...
@@ -47,6 +47,25 @@
"optional"
:
true
,
"optional"
:
true
,
"since"
:
"6.0.0"
"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"
}
}
]
}
}
}
}
}
src/commands/scard.json
View file @
72935b9d
...
@@ -32,6 +32,11 @@
...
@@ -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"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/script-debug.json
View file @
72935b9d
...
@@ -35,6 +35,9 @@
...
@@ -35,6 +35,9 @@
}
}
]
]
}
}
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
}
}
src/commands/script-exists.json
View file @
72935b9d
...
@@ -23,6 +23,22 @@
...
@@ -23,6 +23,22 @@
"type"
:
"string"
,
"type"
:
"string"
,
"multiple"
:
true
"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
}
]
}
}
}
}
}
}
src/commands/script-flush.json
View file @
72935b9d
...
@@ -42,6 +42,9 @@
...
@@ -42,6 +42,9 @@
}
}
]
]
}
}
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
}
}
src/commands/script-help.json
View file @
72935b9d
...
@@ -13,6 +13,13 @@
...
@@ -13,6 +13,13 @@
],
],
"acl_categories"
:
[
"acl_categories"
:
[
"SCRIPTING"
"SCRIPTING"
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"Helpful text about subcommands."
,
"items"
:
{
"type"
:
"string"
}
}
}
}
}
}
Prev
1
…
9
10
11
12
13
14
15
16
17
…
23
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment