mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
Add command tips to COMMAND DOCS (#10104)
Adding command tips (see https://redis.io/topics/command-tips) to commands.
Breaking changes:
1. Removed the "random" and "sort_for_script" flags. They are now command tips.
(this isn't affecting redis behavior since #9812, but could affect some client applications
that's relying on COMMAND command flags)
Summary of changes:
1. add BLOCKING flag (new flag) for all commands that could block. The ACL category with
the same name is now implicit.
2. move RANDOM flag to a `nondeterministic_output` tip
3. move SORT_FOR_SCRIPT flag to `nondeterministic_output_order` tip
3. add REQUEST_POLICY and RESPONSE_POLICY where appropriate as documented in the tips
4. deprecate (ignore) the `random` flag for RM_CreateCommand
Other notes:
1. Proxies need to send `RANDOMKEY` to all shards and then select one key randomly.
The other option is to pick a random shard and transfer `RANDOMKEY `to it, but that scheme
fails if this specific shard is empty
2. Remove CMD_RANDOM from `XACK` (i.e. XACK does not have RANDOM_OUTPUT)
It was added in 9e4fb96ca1
, I guess by mistake.
Also from `(P)EXPIRETIME` (new command, was flagged "random" by mistake).
3. Add `nondeterministic_output` to `OBJECT ENCODING` (for the same reason `XTRIM` has it:
the reply may differ depending on the internal representation in memory)
4. RANDOM on `HGETALL` was wrong (there due to a limitation of the old script sorting logic), now
it's `nondeterministic_output_order`
5. Unrelated: Hide CMD_PROTECTED from COMMAND
This commit is contained in:
parent
9c60292250
commit
10bbeb6837
2595
src/commands.c
2595
src/commands.c
File diff suppressed because it is too large
Load Diff
@ -9,11 +9,11 @@
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"DENYOOM",
|
||||
"NOSCRIPT"
|
||||
"NOSCRIPT",
|
||||
"BLOCKING"
|
||||
],
|
||||
"acl_categories": [
|
||||
"LIST",
|
||||
"BLOCKING"
|
||||
"LIST"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
|
@ -8,11 +8,11 @@
|
||||
"function": "blmpopCommand",
|
||||
"get_keys_function": "blmpopGetKeys",
|
||||
"command_flags": [
|
||||
"WRITE"
|
||||
"WRITE",
|
||||
"BLOCKING"
|
||||
],
|
||||
"acl_categories": [
|
||||
"LIST",
|
||||
"BLOCKING"
|
||||
"LIST"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
|
@ -14,11 +14,11 @@
|
||||
],
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"NOSCRIPT"
|
||||
"NOSCRIPT",
|
||||
"BLOCKING"
|
||||
],
|
||||
"acl_categories": [
|
||||
"LIST",
|
||||
"BLOCKING"
|
||||
"LIST"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
|
@ -14,11 +14,11 @@
|
||||
],
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"NOSCRIPT"
|
||||
"NOSCRIPT",
|
||||
"BLOCKING"
|
||||
],
|
||||
"acl_categories": [
|
||||
"LIST",
|
||||
"BLOCKING"
|
||||
"LIST"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
|
@ -20,11 +20,11 @@
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"DENYOOM",
|
||||
"NOSCRIPT"
|
||||
"NOSCRIPT",
|
||||
"BLOCKING"
|
||||
],
|
||||
"acl_categories": [
|
||||
"LIST",
|
||||
"BLOCKING"
|
||||
"LIST"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
|
@ -8,11 +8,11 @@
|
||||
"function": "bzmpopCommand",
|
||||
"get_keys_function": "blmpopGetKeys",
|
||||
"command_flags": [
|
||||
"WRITE"
|
||||
"WRITE",
|
||||
"BLOCKING"
|
||||
],
|
||||
"acl_categories": [
|
||||
"SORTEDSET",
|
||||
"BLOCKING"
|
||||
"SORTEDSET"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
|
@ -15,11 +15,11 @@
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"NOSCRIPT",
|
||||
"FAST"
|
||||
"FAST",
|
||||
"BLOCKING"
|
||||
],
|
||||
"acl_categories": [
|
||||
"SORTEDSET",
|
||||
"BLOCKING"
|
||||
"SORTEDSET"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
|
@ -15,11 +15,11 @@
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"NOSCRIPT",
|
||||
"FAST"
|
||||
"FAST",
|
||||
"BLOCKING"
|
||||
],
|
||||
"acl_categories": [
|
||||
"SORTEDSET",
|
||||
"BLOCKING"
|
||||
"SORTEDSET"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
|
@ -9,12 +9,14 @@
|
||||
"function": "clientCommand",
|
||||
"command_flags": [
|
||||
"NOSCRIPT",
|
||||
"RANDOM",
|
||||
"LOADING",
|
||||
"STALE"
|
||||
],
|
||||
"acl_categories": [
|
||||
"CONNECTION"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -24,13 +24,15 @@
|
||||
"command_flags": [
|
||||
"ADMIN",
|
||||
"NOSCRIPT",
|
||||
"RANDOM",
|
||||
"LOADING",
|
||||
"STALE"
|
||||
],
|
||||
"acl_categories": [
|
||||
"CONNECTION"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"token": "TYPE",
|
||||
|
@ -10,9 +10,11 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "slot",
|
||||
|
@ -10,9 +10,11 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "start-slot_end-slot",
|
||||
|
@ -10,8 +10,10 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -9,9 +9,11 @@
|
||||
"function": "clusterCommand",
|
||||
"command_flags": [
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "node-id",
|
||||
|
@ -8,9 +8,11 @@
|
||||
"container": "CLUSTER",
|
||||
"function": "clusterCommand",
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "slot",
|
||||
|
@ -10,9 +10,11 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "slot",
|
||||
|
@ -10,9 +10,11 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "start-slot_end-slot",
|
||||
|
@ -10,9 +10,11 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "options",
|
||||
|
@ -10,8 +10,10 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -10,9 +10,11 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "node-id",
|
||||
|
@ -8,9 +8,11 @@
|
||||
"container": "CLUSTER",
|
||||
"function": "clusterCommand",
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "slot",
|
||||
|
@ -8,8 +8,10 @@
|
||||
"container": "CLUSTER",
|
||||
"function": "clusterCommand",
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -8,9 +8,11 @@
|
||||
"container": "CLUSTER",
|
||||
"function": "clusterCommand",
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "key",
|
||||
|
@ -8,8 +8,10 @@
|
||||
"container": "CLUSTER",
|
||||
"function": "clusterCommand",
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -10,9 +10,11 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "ip",
|
||||
|
@ -8,8 +8,10 @@
|
||||
"container": "CLUSTER",
|
||||
"function": "clusterCommand",
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -8,8 +8,10 @@
|
||||
"container": "CLUSTER",
|
||||
"function": "clusterCommand",
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -9,9 +9,11 @@
|
||||
"function": "clusterCommand",
|
||||
"command_flags": [
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "node-id",
|
||||
|
@ -10,9 +10,11 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "node-id",
|
||||
|
@ -9,10 +9,12 @@
|
||||
"function": "clusterCommand",
|
||||
"command_flags": [
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE",
|
||||
"NOSCRIPT"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "hard_soft",
|
||||
|
@ -10,8 +10,10 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -10,9 +10,11 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "config-epoch",
|
||||
|
@ -10,9 +10,11 @@
|
||||
"command_flags": [
|
||||
"NO_ASYNC_LOADING",
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "slot",
|
||||
|
@ -11,9 +11,11 @@
|
||||
"replaced_by": "`CLUSTER REPLICAS`",
|
||||
"command_flags": [
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "node-id",
|
||||
|
@ -14,8 +14,10 @@
|
||||
]
|
||||
],
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -7,13 +7,15 @@
|
||||
"arity": -1,
|
||||
"function": "commandCommand",
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"LOADING",
|
||||
"STALE",
|
||||
"SENTINEL"
|
||||
],
|
||||
"acl_categories": [
|
||||
"CONNECTION"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -19,6 +19,10 @@
|
||||
"LOADING",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_NODES",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "parameter_value",
|
||||
|
@ -12,6 +12,10 @@
|
||||
],
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:AGG_SUM"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -12,6 +12,10 @@
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:MULTI_SHARD",
|
||||
"RESPONSE_POLICY:AGG_SUM"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -7,12 +7,14 @@
|
||||
"arity": 2,
|
||||
"function": "dumpCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -19,6 +19,10 @@
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:MULTI_SHARD",
|
||||
"RESPONSE_POLICY:AGG_SUM"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -8,7 +8,6 @@
|
||||
"function": "expiretimeCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM",
|
||||
"FAST"
|
||||
],
|
||||
"acl_categories": [
|
||||
|
@ -23,6 +23,10 @@
|
||||
"KEYSPACE",
|
||||
"DANGEROUS"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "async",
|
||||
|
@ -23,6 +23,10 @@
|
||||
"KEYSPACE",
|
||||
"DANGEROUS"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "async",
|
||||
|
@ -14,6 +14,10 @@
|
||||
"acl_categories": [
|
||||
"SCRIPTING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "function-name",
|
||||
|
@ -14,6 +14,10 @@
|
||||
"acl_categories": [
|
||||
"SCRIPTING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "async",
|
||||
|
@ -13,6 +13,10 @@
|
||||
],
|
||||
"acl_categories": [
|
||||
"SCRIPTING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:ONE_SUCCEEDED"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,10 @@
|
||||
"acl_categories": [
|
||||
"SCRIPTING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "engine-name",
|
||||
|
@ -15,6 +15,10 @@
|
||||
"acl_categories": [
|
||||
"SCRIPTING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "serialized-value",
|
||||
|
@ -13,6 +13,10 @@
|
||||
],
|
||||
"acl_categories": [
|
||||
"SCRIPTING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:ONE_SUCCEEDED"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -7,12 +7,14 @@
|
||||
"arity": 2,
|
||||
"function": "hgetallCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"HASH"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT_ORDER"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -7,12 +7,14 @@
|
||||
"arity": 2,
|
||||
"function": "hkeysCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"SORT_FOR_SCRIPT"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"HASH"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT_ORDER"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -7,12 +7,14 @@
|
||||
"arity": -2,
|
||||
"function": "hrandfieldCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"HASH"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -7,12 +7,14 @@
|
||||
"arity": -3,
|
||||
"function": "hscanCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"HASH"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -7,12 +7,14 @@
|
||||
"arity": 2,
|
||||
"function": "hvalsCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"SORT_FOR_SCRIPT"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"HASH"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT_ORDER"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -7,7 +7,6 @@
|
||||
"arity": -1,
|
||||
"function": "infoCommand",
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"LOADING",
|
||||
"STALE",
|
||||
"SENTINEL"
|
||||
@ -15,6 +14,11 @@
|
||||
"acl_categories": [
|
||||
"DANGEROUS"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT",
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:SPECIAL"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "section",
|
||||
|
@ -7,13 +7,16 @@
|
||||
"arity": 2,
|
||||
"function": "keysCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"SORT_FOR_SCRIPT"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"KEYSPACE",
|
||||
"DANGEROUS"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"NONDETERMINISTIC_OUTPUT_ORDER"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "pattern",
|
||||
|
@ -7,11 +7,13 @@
|
||||
"arity": 1,
|
||||
"function": "lastsaveCommand",
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"LOADING",
|
||||
"STALE",
|
||||
"FAST"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"acl_categories": [
|
||||
"ADMIN",
|
||||
"DANGEROUS"
|
||||
|
@ -7,8 +7,8 @@
|
||||
"arity": 2,
|
||||
"container": "MEMORY",
|
||||
"function": "memoryCommand",
|
||||
"command_flags": [
|
||||
"RANDOM"
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -7,8 +7,8 @@
|
||||
"arity": 2,
|
||||
"container": "MEMORY",
|
||||
"function": "memoryCommand",
|
||||
"command_flags": [
|
||||
"RANDOM"
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -7,8 +7,8 @@
|
||||
"arity": 2,
|
||||
"container": "MEMORY",
|
||||
"function": "memoryCommand",
|
||||
"command_flags": [
|
||||
"RANDOM"
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,9 @@
|
||||
"acl_categories": [
|
||||
"STRING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:MULTI_SHARD"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -26,13 +26,15 @@
|
||||
]
|
||||
],
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"RANDOM"
|
||||
"WRITE"
|
||||
],
|
||||
"acl_categories": [
|
||||
"KEYSPACE",
|
||||
"DANGEROUS"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -13,6 +13,10 @@
|
||||
"acl_categories": [
|
||||
"STRING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:MULTI_SHARD",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -13,6 +13,9 @@
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -8,12 +8,14 @@
|
||||
"container": "OBJECT",
|
||||
"function": "objectCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -8,12 +8,14 @@
|
||||
"container": "OBJECT",
|
||||
"function": "objectCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -8,7 +8,6 @@
|
||||
"function": "pexpiretimeCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM",
|
||||
"FAST"
|
||||
],
|
||||
"acl_categories": [
|
||||
|
@ -13,6 +13,10 @@
|
||||
"acl_categories": [
|
||||
"CONNECTION"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "message",
|
||||
|
@ -14,12 +14,14 @@
|
||||
],
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM",
|
||||
"FAST"
|
||||
],
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -7,11 +7,14 @@
|
||||
"arity": 1,
|
||||
"function": "randomkeyCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -13,12 +13,15 @@
|
||||
]
|
||||
],
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT",
|
||||
"REQUEST_POLICY:SPECIAL"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "cursor",
|
||||
|
@ -13,6 +13,10 @@
|
||||
"acl_categories": [
|
||||
"SCRIPTING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:AGG_LOGICAL_AND"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "sha1",
|
||||
|
@ -19,6 +19,10 @@
|
||||
"acl_categories": [
|
||||
"SCRIPTING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_NODES",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "async",
|
||||
|
@ -13,6 +13,10 @@
|
||||
],
|
||||
"acl_categories": [
|
||||
"SCRIPTING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:ONE_SUCCEEDED"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,10 @@
|
||||
"acl_categories": [
|
||||
"SCRIPTING"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_NODES",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "script",
|
||||
|
@ -7,12 +7,14 @@
|
||||
"arity": -2,
|
||||
"function": "sdiffCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"SORT_FOR_SCRIPT"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"SET"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT_ORDER"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -7,12 +7,14 @@
|
||||
"arity": -2,
|
||||
"function": "sinterCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"SORT_FOR_SCRIPT"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"SET"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT_ORDER"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -15,10 +15,13 @@
|
||||
],
|
||||
"command_flags": [
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"LOADING",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_NODES",
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "count",
|
||||
|
@ -9,9 +9,13 @@
|
||||
"function": "slowlogCommand",
|
||||
"command_flags": [
|
||||
"ADMIN",
|
||||
"RANDOM",
|
||||
"LOADING",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_NODES",
|
||||
"RESPONSE_POLICY:AGG_SUM",
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,10 @@
|
||||
"ADMIN",
|
||||
"LOADING",
|
||||
"STALE"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_NODES",
|
||||
"RESPONSE_POLICY:ALL_SUCCEEDED"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -7,12 +7,14 @@
|
||||
"arity": 2,
|
||||
"function": "sinterCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"SORT_FOR_SCRIPT"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"SET"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT_ORDER"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -14,12 +14,14 @@
|
||||
],
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"RANDOM",
|
||||
"FAST"
|
||||
],
|
||||
"acl_categories": [
|
||||
"SET"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -13,12 +13,14 @@
|
||||
]
|
||||
],
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"SET"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -7,12 +7,14 @@
|
||||
"arity": -3,
|
||||
"function": "sscanCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"SET"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -7,12 +7,14 @@
|
||||
"arity": -2,
|
||||
"function": "sunionCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"SORT_FOR_SCRIPT"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"SET"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT_ORDER"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -7,10 +7,12 @@
|
||||
"arity": 1,
|
||||
"function": "timeCommand",
|
||||
"command_flags": [
|
||||
"RANDOM",
|
||||
"LOADING",
|
||||
"STALE",
|
||||
"FAST"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,10 @@
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:MULTI_SHARD",
|
||||
"RESPONSE_POLICY:AGG_SUM"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -14,12 +14,14 @@
|
||||
],
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM",
|
||||
"FAST"
|
||||
],
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -13,6 +13,10 @@
|
||||
"acl_categories": [
|
||||
"KEYSPACE"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:MULTI_SHARD",
|
||||
"RESPONSE_POLICY:AGG_SUM"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -12,6 +12,10 @@
|
||||
"acl_categories": [
|
||||
"CONNECTION"
|
||||
],
|
||||
"command_tips": [
|
||||
"REQUEST_POLICY:ALL_SHARDS",
|
||||
"RESPONSE_POLICY:AGG_MIN"
|
||||
],
|
||||
"arguments": [
|
||||
{
|
||||
"name": "numreplicas",
|
||||
|
@ -8,7 +8,6 @@
|
||||
"function": "xackCommand",
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"RANDOM",
|
||||
"FAST"
|
||||
],
|
||||
"acl_categories": [
|
||||
|
@ -19,12 +19,14 @@
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"DENYOOM",
|
||||
"RANDOM",
|
||||
"FAST"
|
||||
],
|
||||
"acl_categories": [
|
||||
"STREAM"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -8,12 +8,14 @@
|
||||
"function": "xautoclaimCommand",
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"RANDOM",
|
||||
"FAST"
|
||||
],
|
||||
"acl_categories": [
|
||||
"STREAM"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -8,12 +8,14 @@
|
||||
"function": "xclaimCommand",
|
||||
"command_flags": [
|
||||
"WRITE",
|
||||
"RANDOM",
|
||||
"FAST"
|
||||
],
|
||||
"acl_categories": [
|
||||
"STREAM"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -8,12 +8,14 @@
|
||||
"container": "XINFO",
|
||||
"function": "xinfoCommand",
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"STREAM"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -13,12 +13,14 @@
|
||||
]
|
||||
],
|
||||
"command_flags": [
|
||||
"READONLY",
|
||||
"RANDOM"
|
||||
"READONLY"
|
||||
],
|
||||
"acl_categories": [
|
||||
"STREAM"
|
||||
],
|
||||
"command_tips": [
|
||||
"NONDETERMINISTIC_OUTPUT"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
"flags": [
|
||||
|
@ -8,11 +8,12 @@
|
||||
"function": "xreadCommand",
|
||||
"get_keys_function": "xreadGetKeys",
|
||||
"command_flags": [
|
||||
"READONLY"
|
||||
"BLOCKING",
|
||||
"READONLY",
|
||||
"BLOCKING"
|
||||
],
|
||||
"acl_categories": [
|
||||
"STREAM",
|
||||
"BLOCKING"
|
||||
"STREAM"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
|
@ -8,11 +8,11 @@
|
||||
"function": "xreadCommand",
|
||||
"get_keys_function": "xreadGetKeys",
|
||||
"command_flags": [
|
||||
"BLOCKING",
|
||||
"WRITE"
|
||||
],
|
||||
"acl_categories": [
|
||||
"STREAM",
|
||||
"BLOCKING"
|
||||
"STREAM"
|
||||
],
|
||||
"key_specs": [
|
||||
{
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user