mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
aec8c57701
Add missing information about commands, mainly from reviewing redis-doc and removing
the metadata from it (https://github.com/redis/redis-doc/pull/1722)
* Reintroduces CLUSTER S****S (supported by Redis) but missing from the JSON / docs (related? #9675).
Note that without that json file, the command won't work (breaking change)
* Adds the `replicas` argument (exists in Redis) to `CLIENT KILL`.
* Adds `history` entries to several commands based on redis-doc's man pages.
* Adds `since` to applicable command arguments based on `history` (this basically makes
some of `history` redundant - perhaps at a later stage).
* Uses proper semantic versioning in all version references.
* Also removes `geoencodeCommand` and `geodecodeCommand` header
declarations per b96af595a5
.
56 lines
1.4 KiB
JSON
56 lines
1.4 KiB
JSON
{
|
|
"BLPOP": {
|
|
"summary": "Remove and get the first element in a list, or block until one is available",
|
|
"complexity": "O(N) where N is the number of provided keys.",
|
|
"group": "list",
|
|
"since": "2.0.0",
|
|
"arity": -3,
|
|
"function": "blpopCommand",
|
|
"history": [
|
|
[
|
|
"6.0.0",
|
|
"`timeout` is interpreted as a double instead of an integer."
|
|
]
|
|
],
|
|
"command_flags": [
|
|
"WRITE",
|
|
"NOSCRIPT"
|
|
],
|
|
"acl_categories": [
|
|
"LIST",
|
|
"BLOCKING"
|
|
],
|
|
"key_specs": [
|
|
{
|
|
"flags": [
|
|
"WRITE"
|
|
],
|
|
"begin_search": {
|
|
"index": {
|
|
"pos": 1
|
|
}
|
|
},
|
|
"find_keys": {
|
|
"range": {
|
|
"lastkey": -2,
|
|
"step": 1,
|
|
"limit": 0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"arguments": [
|
|
{
|
|
"name": "key",
|
|
"type": "key",
|
|
"key_spec_index": 0,
|
|
"multiple": true
|
|
},
|
|
{
|
|
"name": "timeout",
|
|
"type": "double"
|
|
}
|
|
]
|
|
}
|
|
}
|