diff options
Diffstat (limited to 'examples/redis-unstable/src/commands/zrangebylex.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/zrangebylex.json | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/zrangebylex.json b/examples/redis-unstable/src/commands/zrangebylex.json new file mode 100644 index 0000000..5949b87 --- /dev/null +++ b/examples/redis-unstable/src/commands/zrangebylex.json | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | { | ||
| 2 | "ZRANGEBYLEX": { | ||
| 3 | "summary": "Returns members in a sorted set within a lexicographical range.", | ||
| 4 | "complexity": "O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).", | ||
| 5 | "group": "sorted_set", | ||
| 6 | "since": "2.8.9", | ||
| 7 | "arity": -4, | ||
| 8 | "function": "zrangebylexCommand", | ||
| 9 | "deprecated_since": "6.2.0", | ||
| 10 | "replaced_by": "`ZRANGE` with the `BYLEX` argument", | ||
| 11 | "doc_flags": [ | ||
| 12 | "DEPRECATED" | ||
| 13 | ], | ||
| 14 | "command_flags": [ | ||
| 15 | "READONLY" | ||
| 16 | ], | ||
| 17 | "acl_categories": [ | ||
| 18 | "SORTEDSET" | ||
| 19 | ], | ||
| 20 | "key_specs": [ | ||
| 21 | { | ||
| 22 | "flags": [ | ||
| 23 | "RO", | ||
| 24 | "ACCESS" | ||
| 25 | ], | ||
| 26 | "begin_search": { | ||
| 27 | "index": { | ||
| 28 | "pos": 1 | ||
| 29 | } | ||
| 30 | }, | ||
| 31 | "find_keys": { | ||
| 32 | "range": { | ||
| 33 | "lastkey": 0, | ||
| 34 | "step": 1, | ||
| 35 | "limit": 0 | ||
| 36 | } | ||
| 37 | } | ||
| 38 | } | ||
| 39 | ], | ||
| 40 | "reply_schema": { | ||
| 41 | "type": "array", | ||
| 42 | "description": "List of elements in the specified score range.", | ||
| 43 | "uniqueItems": true, | ||
| 44 | "items": { | ||
| 45 | "type": "string" | ||
| 46 | } | ||
| 47 | }, | ||
| 48 | "arguments": [ | ||
| 49 | { | ||
| 50 | "name": "key", | ||
| 51 | "type": "key", | ||
| 52 | "key_spec_index": 0 | ||
| 53 | }, | ||
| 54 | { | ||
| 55 | "name": "min", | ||
| 56 | "type": "string" | ||
| 57 | }, | ||
| 58 | { | ||
| 59 | "name": "max", | ||
| 60 | "type": "string" | ||
| 61 | }, | ||
| 62 | { | ||
| 63 | "token": "LIMIT", | ||
| 64 | "name": "limit", | ||
| 65 | "type": "block", | ||
| 66 | "optional": true, | ||
| 67 | "arguments": [ | ||
| 68 | { | ||
| 69 | "name": "offset", | ||
| 70 | "type": "integer" | ||
| 71 | }, | ||
| 72 | { | ||
| 73 | "name": "count", | ||
| 74 | "type": "integer" | ||
| 75 | } | ||
| 76 | ] | ||
| 77 | } | ||
| 78 | ] | ||
| 79 | } | ||
| 80 | } | ||
