Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
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/config-help.json
View file @
72935b9d
...
@@ -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"
}
}
}
}
}
}
src/commands/config-resetstat.json
View file @
72935b9d
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
"NOSCRIPT"
,
"NOSCRIPT"
,
"LOADING"
,
"LOADING"
,
"STALE"
"STALE"
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
}
}
src/commands/config-rewrite.json
View file @
72935b9d
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
"NOSCRIPT"
,
"NOSCRIPT"
,
"LOADING"
,
"LOADING"
,
"STALE"
"STALE"
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
}
}
src/commands/config-set.json
View file @
72935b9d
...
@@ -23,6 +23,9 @@
...
@@ -23,6 +23,9 @@
"REQUEST_POLICY:ALL_NODES"
,
"REQUEST_POLICY:ALL_NODES"
,
"RESPONSE_POLICY:ALL_SUCCEEDED"
"RESPONSE_POLICY:ALL_SUCCEEDED"
],
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"data"
,
"name"
:
"data"
,
...
...
src/commands/copy.json
View file @
72935b9d
...
@@ -74,6 +74,18 @@
...
@@ -74,6 +74,18 @@
"type"
:
"pure-token"
,
"type"
:
"pure-token"
,
"optional"
:
true
"optional"
:
true
}
}
]
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"source was copied"
,
"const"
:
1
},
{
"description"
:
"source was not copied"
,
"const"
:
0
}
]
}
}
}
}
}
src/commands/dbsize.json
View file @
72935b9d
...
@@ -16,6 +16,10 @@
...
@@ -16,6 +16,10 @@
"command_tips"
:
[
"command_tips"
:
[
"REQUEST_POLICY:ALL_SHARDS"
,
"REQUEST_POLICY:ALL_SHARDS"
,
"RESPONSE_POLICY:AGG_SUM"
"RESPONSE_POLICY:AGG_SUM"
]
],
"reply_schema"
:
{
"type"
:
"integer"
,
"description"
:
"The number of keys in the currently-selected database."
}
}
}
}
}
src/commands/decr.json
View file @
72935b9d
...
@@ -35,6 +35,10 @@
...
@@ -35,6 +35,10 @@
}
}
}
}
],
],
"reply_schema"
:
{
"type"
:
"integer"
,
"description"
:
"The value of the key after decrementing it."
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/decrby.json
View file @
72935b9d
...
@@ -35,6 +35,10 @@
...
@@ -35,6 +35,10 @@
}
}
}
}
],
],
"reply_schema"
:
{
"type"
:
"integer"
,
"description"
:
"The value of the key after decrementing it."
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/del.json
View file @
72935b9d
...
@@ -36,6 +36,11 @@
...
@@ -36,6 +36,11 @@
}
}
}
}
],
],
"reply_schema"
:
{
"description"
:
"the number of keys that were removed"
,
"type"
:
"integer"
,
"minimum"
:
0
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/discard.json
View file @
72935b9d
...
@@ -15,6 +15,9 @@
...
@@ -15,6 +15,9 @@
],
],
"acl_categories"
:
[
"acl_categories"
:
[
"TRANSACTION"
"TRANSACTION"
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
}
}
src/commands/dump.json
View file @
72935b9d
...
@@ -35,6 +35,18 @@
...
@@ -35,6 +35,18 @@
}
}
}
}
],
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"The serialized value."
,
"type"
:
"string"
},
{
"description"
:
"Key does not exist."
,
"type"
:
"null"
}
]
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/echo.json
View file @
72935b9d
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
"acl_categories"
:
[
"acl_categories"
:
[
"CONNECTION"
"CONNECTION"
],
],
"reply_schema"
:
{
"description"
:
"The given string"
,
"type"
:
"string"
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"message"
,
"name"
:
"message"
,
...
...
src/commands/eval.json
View file @
72935b9d
...
@@ -61,6 +61,9 @@
...
@@ -61,6 +61,9 @@
"optional"
:
true
,
"optional"
:
true
,
"multiple"
:
true
"multiple"
:
true
}
}
]
],
"reply_schema"
:
{
"description"
:
"Return value depends on the script that is executed"
}
}
}
}
}
src/commands/eval_ro.json
View file @
72935b9d
...
@@ -60,6 +60,9 @@
...
@@ -60,6 +60,9 @@
"optional"
:
true
,
"optional"
:
true
,
"multiple"
:
true
"multiple"
:
true
}
}
]
],
"reply_schema"
:
{
"description"
:
"Return value depends on the script that is executed"
}
}
}
}
}
src/commands/evalsha.json
View file @
72935b9d
...
@@ -60,6 +60,9 @@
...
@@ -60,6 +60,9 @@
"optional"
:
true
,
"optional"
:
true
,
"multiple"
:
true
"multiple"
:
true
}
}
]
],
"reply_schema"
:
{
"description"
:
"Return value depends on the script that is executed"
}
}
}
}
}
src/commands/evalsha_ro.json
View file @
72935b9d
...
@@ -59,6 +59,9 @@
...
@@ -59,6 +59,9 @@
"optional"
:
true
,
"optional"
:
true
,
"multiple"
:
true
"multiple"
:
true
}
}
]
],
"reply_schema"
:
{
"description"
:
"Return value depends on the script that is executed"
}
}
}
}
}
src/commands/exec.json
View file @
72935b9d
...
@@ -14,6 +14,18 @@
...
@@ -14,6 +14,18 @@
],
],
"acl_categories"
:
[
"acl_categories"
:
[
"TRANSACTION"
"TRANSACTION"
]
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"Each element being the reply to each of the commands in the atomic transaction."
,
"type"
:
"array"
},
{
"description"
:
"The transaction was aborted because a `WATCH`ed key was touched"
,
"type"
:
"null"
}
]
}
}
}
}
}
src/commands/exists.json
View file @
72935b9d
...
@@ -42,6 +42,10 @@
...
@@ -42,6 +42,10 @@
}
}
}
}
],
],
"reply_schema"
:
{
"description"
:
"Number of keys that exist from those specified as arguments."
,
"type"
:
"integer"
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/expire.json
View file @
72935b9d
...
@@ -39,6 +39,18 @@
...
@@ -39,6 +39,18 @@
}
}
}
}
],
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"The timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments."
,
"const"
:
0
},
{
"description"
:
"The timeout was set."
,
"const"
:
1
}
]
},
"arguments"
:
[
"arguments"
:
[
{
{
"name"
:
"key"
,
"name"
:
"key"
,
...
...
src/commands/expireat.json
View file @
72935b9d
...
@@ -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"
,
...
...
Prev
1
2
3
4
5
6
7
8
9
10
…
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