diff options
Diffstat (limited to 'examples/redis-unstable/src/commands/zrange.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/zrange.json | 137 |
1 files changed, 0 insertions, 137 deletions
diff --git a/examples/redis-unstable/src/commands/zrange.json b/examples/redis-unstable/src/commands/zrange.json deleted file mode 100644 index dc7af8d..0000000 --- a/examples/redis-unstable/src/commands/zrange.json +++ /dev/null | |||
| @@ -1,137 +0,0 @@ | |||
| 1 | { | ||
| 2 | "ZRANGE": { | ||
| 3 | "summary": "Returns members in a sorted set within a range of indexes.", | ||
| 4 | "complexity": "O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.", | ||
| 5 | "group": "sorted_set", | ||
| 6 | "since": "1.2.0", | ||
| 7 | "arity": -4, | ||
| 8 | "function": "zrangeCommand", | ||
| 9 | "history": [ | ||
| 10 | [ | ||
| 11 | "6.2.0", | ||
| 12 | "Added the `REV`, `BYSCORE`, `BYLEX` and `LIMIT` options." | ||
| 13 | ] | ||
| 14 | ], | ||
| 15 | "command_flags": [ | ||
| 16 | "READONLY" | ||
| 17 | ], | ||
| 18 | "acl_categories": [ | ||
| 19 | "SORTEDSET" | ||
| 20 | ], | ||
| 21 | "key_specs": [ | ||
| 22 | { | ||
| 23 | "flags": [ | ||
| 24 | "RO", | ||
| 25 | "ACCESS" | ||
| 26 | ], | ||
| 27 | "begin_search": { | ||
| 28 | "index": { | ||
| 29 | "pos": 1 | ||
| 30 | } | ||
| 31 | }, | ||
| 32 | "find_keys": { | ||
| 33 | "range": { | ||
| 34 | "lastkey": 0, | ||
| 35 | "step": 1, | ||
| 36 | "limit": 0 | ||
| 37 | } | ||
| 38 | } | ||
| 39 | } | ||
| 40 | ], | ||
| 41 | "reply_schema": { | ||
| 42 | "anyOf": [ | ||
| 43 | { | ||
| 44 | "description": "A list of member elements", | ||
| 45 | "type": "array", | ||
| 46 | "uniqueItems": true, | ||
| 47 | "items": { | ||
| 48 | "type": "string" | ||
| 49 | } | ||
| 50 | }, | ||
| 51 | { | ||
| 52 | "description": "Members and their scores. Returned in case `WITHSCORES` was used. In RESP2 this is returned as a flat array", | ||
| 53 | "type": "array", | ||
| 54 | "uniqueItems": true, | ||
| 55 | "items": { | ||
| 56 | "type": "array", | ||
| 57 | "minItems": 2, | ||
| 58 | "maxItems": 2, | ||
| 59 | "items": [ | ||
| 60 | { | ||
| 61 | "description": "Member", | ||
| 62 | "type": "string" | ||
| 63 | }, | ||
| 64 | { | ||
| 65 | "description": "Score", | ||
| 66 | "type": "number" | ||
| 67 | } | ||
| 68 | ] | ||
| 69 | } | ||
| 70 | } | ||
| 71 | ] | ||
| 72 | }, | ||
| 73 | "arguments": [ | ||
| 74 | { | ||
| 75 | "name": "key", | ||
| 76 | "type": "key", | ||
| 77 | "key_spec_index": 0 | ||
| 78 | }, | ||
| 79 | { | ||
| 80 | "name": "start", | ||
| 81 | "type": "string" | ||
| 82 | }, | ||
| 83 | { | ||
| 84 | "name": "stop", | ||
| 85 | "type": "string" | ||
| 86 | }, | ||
| 87 | { | ||
| 88 | "name": "sortby", | ||
| 89 | "type": "oneof", | ||
| 90 | "optional": true, | ||
| 91 | "since": "6.2.0", | ||
| 92 | "arguments": [ | ||
| 93 | { | ||
| 94 | "name": "byscore", | ||
| 95 | "type": "pure-token", | ||
| 96 | "token": "BYSCORE" | ||
| 97 | }, | ||
| 98 | { | ||
| 99 | "name": "bylex", | ||
| 100 | "type": "pure-token", | ||
| 101 | "token": "BYLEX" | ||
| 102 | } | ||
| 103 | ] | ||
| 104 | }, | ||
| 105 | { | ||
| 106 | "name": "rev", | ||
| 107 | "token": "REV", | ||
| 108 | "type": "pure-token", | ||
| 109 | "optional": true, | ||
| 110 | "since": "6.2.0" | ||
| 111 | }, | ||
| 112 | { | ||
| 113 | "token": "LIMIT", | ||
| 114 | "name": "limit", | ||
| 115 | "type": "block", | ||
| 116 | "optional": true, | ||
| 117 | "since": "6.2.0", | ||
| 118 | "arguments": [ | ||
| 119 | { | ||
| 120 | "name": "offset", | ||
| 121 | "type": "integer" | ||
| 122 | }, | ||
| 123 | { | ||
| 124 | "name": "count", | ||
| 125 | "type": "integer" | ||
| 126 | } | ||
| 127 | ] | ||
| 128 | }, | ||
| 129 | { | ||
| 130 | "name": "withscores", | ||
| 131 | "token": "WITHSCORES", | ||
| 132 | "type": "pure-token", | ||
| 133 | "optional": true | ||
| 134 | } | ||
| 135 | ] | ||
| 136 | } | ||
| 137 | } | ||
