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
Show whitespace changes
Inline
Side-by-side
src/commands/acl-getuser.json
View file @
72935b9d
...
...
@@ -29,6 +29,63 @@
"name"
:
"username"
,
"type"
:
"string"
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"a set of ACL rule definitions for the user"
,
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"flags"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"passwords"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
},
"commands"
:
{
"description"
:
"root selector's commands"
,
"type"
:
"string"
},
"keys"
:
{
"description"
:
"root selector's keys"
,
"type"
:
"string"
},
"channels"
:
{
"description"
:
"root selector's channels"
,
"type"
:
"string"
},
"selectors"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"commands"
:
{
"type"
:
"string"
},
"keys"
:
{
"type"
:
"string"
},
"channels"
:
{
"type"
:
"string"
}
}
}
}
}
},
{
"description"
:
"If user does not exist"
,
"type"
:
"null"
}
]
}
}
}
src/commands/acl-help.json
View file @
72935b9d
...
...
@@ -11,6 +11,13 @@
"LOADING"
,
"STALE"
,
"SENTINEL"
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"A list of subcommands and their description"
,
"items"
:
{
"type"
:
"string"
}
}
}
}
src/commands/acl-list.json
View file @
72935b9d
...
...
@@ -13,6 +13,13 @@
"LOADING"
,
"STALE"
,
"SENTINEL"
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"A list of currently active ACL rules"
,
"items"
:
{
"type"
:
"string"
}
}
}
}
src/commands/acl-load.json
View file @
72935b9d
...
...
@@ -13,6 +13,9 @@
"LOADING"
,
"STALE"
,
"SENTINEL"
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
src/commands/acl-log.json
View file @
72935b9d
...
...
@@ -20,6 +20,54 @@
"STALE"
,
"SENTINEL"
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"In case `RESET` was not given, a list of recent ACL security events."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"additionalProperties"
:
false
,
"properties"
:
{
"count"
:
{
"type"
:
"integer"
},
"reason"
:
{
"type"
:
"string"
},
"context"
:
{
"type"
:
"string"
},
"object"
:
{
"type"
:
"string"
},
"username"
:
{
"type"
:
"string"
},
"age-seconds"
:
{
"type"
:
"number"
},
"client-info"
:
{
"type"
:
"string"
},
"entry-id"
:
{
"type"
:
"integer"
},
"timestamp-created"
:
{
"type"
:
"integer"
},
"timestamp-last-updated"
:
{
"type"
:
"integer"
}
}
}
},
{
"const"
:
"OK"
,
"description"
:
"In case `RESET` was given, OK indicates ACL log was cleared."
}
]
},
"arguments"
:
[
{
"name"
:
"operation"
,
...
...
src/commands/acl-save.json
View file @
72935b9d
...
...
@@ -13,6 +13,9 @@
"LOADING"
,
"STALE"
,
"SENTINEL"
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
src/commands/acl-setuser.json
View file @
72935b9d
...
...
@@ -24,6 +24,9 @@
"STALE"
,
"SENTINEL"
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"username"
,
...
...
src/commands/acl-users.json
View file @
72935b9d
...
...
@@ -13,6 +13,13 @@
"LOADING"
,
"STALE"
,
"SENTINEL"
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"description"
:
"List of existing ACL users"
,
"items"
:
{
"type"
:
"string"
}
}
}
}
src/commands/acl-whoami.json
View file @
72935b9d
...
...
@@ -12,6 +12,10 @@
"LOADING"
,
"STALE"
,
"SENTINEL"
]
],
"reply_schema"
:
{
"type"
:
"string"
,
"description"
:
"The username of the current connection."
}
}
}
src/commands/append.json
View file @
72935b9d
...
...
@@ -34,6 +34,10 @@
}
}
],
"reply_schema"
:
{
"type"
:
"integer"
,
"description"
:
"The the length of the string after the append operation."
},
"arguments"
:
[
{
"name"
:
"key"
,
...
...
src/commands/asking.json
View file @
72935b9d
...
...
@@ -11,6 +11,9 @@
],
"acl_categories"
:
[
"CONNECTION"
]
],
"reply_schema"
:
{
"const"
:
"OK"
}
}
}
src/commands/auth.json
View file @
72935b9d
...
...
@@ -24,6 +24,9 @@
"acl_categories"
:
[
"CONNECTION"
],
"reply_schema"
:
{
"const"
:
"OK"
},
"arguments"
:
[
{
"name"
:
"username"
,
...
...
src/commands/bgrewriteaof.json
View file @
72935b9d
...
...
@@ -10,6 +10,10 @@
"NO_ASYNC_LOADING"
,
"ADMIN"
,
"NOSCRIPT"
]
],
"reply_schema"
:
{
"description"
:
"A simple string reply indicating that the rewriting started or is about to start ASAP"
,
"type"
:
"string"
}
}
}
src/commands/bgsave.json
View file @
72935b9d
...
...
@@ -25,6 +25,16 @@
"optional"
:
true
,
"since"
:
"3.2.2"
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"const"
:
"Background saving started"
},
{
"const"
:
"Background saving scheduled"
}
]
}
}
}
src/commands/bitcount.json
View file @
72935b9d
...
...
@@ -77,6 +77,11 @@
}
]
}
]
],
"reply_schema"
:
{
"description"
:
"The number of bits set to 1."
,
"type"
:
"integer"
,
"minimum"
:
0
}
}
}
src/commands/bitfield.json
View file @
72935b9d
...
...
@@ -139,6 +139,21 @@
}
]
}
],
"reply_schema"
:
{
"type"
:
"array"
,
"items"
:
{
"oneOf"
:
[
{
"description"
:
"The result of the subcommand at the same position"
,
"type"
:
"integer"
},
{
"description"
:
"In case OVERFLOW FAIL was given and overflows or underflows detected"
,
"type"
:
"null"
}
]
}
}
}
}
src/commands/bitfield_ro.json
View file @
72935b9d
...
...
@@ -57,6 +57,13 @@
}
]
}
]
],
"reply_schema"
:
{
"type"
:
"array"
,
"items"
:
{
"description"
:
"The result of the subcommand at the same position"
,
"type"
:
"integer"
}
}
}
}
src/commands/bitop.json
View file @
72935b9d
...
...
@@ -89,6 +89,11 @@
"key_spec_index"
:
1
,
"multiple"
:
true
}
]
],
"reply_schema"
:
{
"description"
:
"the size of the string stored in the destination key, that is equal to the size of the longest input string"
,
"type"
:
"integer"
,
"minimum"
:
0
}
}
}
src/commands/bitpos.json
View file @
72935b9d
...
...
@@ -88,6 +88,19 @@
}
]
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"the position of the first bit set to 1 or 0 according to the request"
,
"type"
:
"integer"
,
"minimum"
:
0
},
{
"description"
:
"In case the `bit` argument is 1 and the string is empty or composed of just zero bytes"
,
"const"
:
-1
}
]
}
}
}
src/commands/blmove.json
View file @
72935b9d
...
...
@@ -9,7 +9,6 @@
"command_flags"
:
[
"WRITE"
,
"DENYOOM"
,
"NOSCRIPT"
,
"BLOCKING"
],
"acl_categories"
:
[
...
...
@@ -54,6 +53,18 @@
}
}
],
"reply_schema"
:
{
"oneOf"
:
[
{
"description"
:
"The popped element."
,
"type"
:
"string"
},
{
"description"
:
"Operation timed-out"
,
"type"
:
"null"
}
]
},
"arguments"
:
[
{
"name"
:
"source"
,
...
...
Prev
1
2
3
4
5
6
…
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