diff options
Diffstat (limited to 'examples/redis-unstable/src/commands/zdiff.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/zdiff.json | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/zdiff.json b/examples/redis-unstable/src/commands/zdiff.json new file mode 100644 index 0000000..912d5c6 --- /dev/null +++ b/examples/redis-unstable/src/commands/zdiff.json | |||
| @@ -0,0 +1,85 @@ | |||
| 1 | { | ||
| 2 | "ZDIFF": { | ||
| 3 | "summary": "Returns the difference between multiple sorted sets.", | ||
| 4 | "complexity": "O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.", | ||
| 5 | "group": "sorted_set", | ||
| 6 | "since": "6.2.0", | ||
| 7 | "arity": -3, | ||
| 8 | "function": "zdiffCommand", | ||
| 9 | "get_keys_function": "zunionInterDiffGetKeys", | ||
| 10 | "command_flags": [ | ||
| 11 | "READONLY" | ||
| 12 | ], | ||
| 13 | "acl_categories": [ | ||
| 14 | "SORTEDSET" | ||
| 15 | ], | ||
| 16 | "key_specs": [ | ||
| 17 | { | ||
| 18 | "flags": [ | ||
| 19 | "RO", | ||
| 20 | "ACCESS" | ||
| 21 | ], | ||
| 22 | "begin_search": { | ||
| 23 | "index": { | ||
| 24 | "pos": 1 | ||
| 25 | } | ||
| 26 | }, | ||
| 27 | "find_keys": { | ||
| 28 | "keynum": { | ||
| 29 | "keynumidx": 0, | ||
| 30 | "firstkey": 1, | ||
| 31 | "step": 1 | ||
| 32 | } | ||
| 33 | } | ||
| 34 | } | ||
| 35 | ], | ||
| 36 | "reply_schema": { | ||
| 37 | "anyOf": [ | ||
| 38 | { | ||
| 39 | "description": "A list of members. Returned in case `WITHSCORES` was not used.", | ||
| 40 | "type": "array", | ||
| 41 | "items": { | ||
| 42 | "type": "string" | ||
| 43 | } | ||
| 44 | }, | ||
| 45 | { | ||
| 46 | "description": "Members and their scores. Returned in case `WITHSCORES` was used. In RESP2 this is returned as a flat array", | ||
| 47 | "type": "array", | ||
| 48 | "items": { | ||
| 49 | "type": "array", | ||
| 50 | "minItems": 2, | ||
| 51 | "maxItems": 2, | ||
| 52 | "items": [ | ||
| 53 | { | ||
| 54 | "description": "Member", | ||
| 55 | "type": "string" | ||
| 56 | }, | ||
| 57 | { | ||
| 58 | "description": "Score", | ||
| 59 | "type": "number" | ||
| 60 | } | ||
| 61 | ] | ||
| 62 | } | ||
| 63 | } | ||
| 64 | ] | ||
| 65 | }, | ||
| 66 | "arguments": [ | ||
| 67 | { | ||
| 68 | "name": "numkeys", | ||
| 69 | "type": "integer" | ||
| 70 | }, | ||
| 71 | { | ||
| 72 | "name": "key", | ||
| 73 | "type": "key", | ||
| 74 | "key_spec_index": 0, | ||
| 75 | "multiple": true | ||
| 76 | }, | ||
| 77 | { | ||
| 78 | "name": "withscores", | ||
| 79 | "token": "WITHSCORES", | ||
| 80 | "type": "pure-token", | ||
| 81 | "optional": true | ||
| 82 | } | ||
| 83 | ] | ||
| 84 | } | ||
| 85 | } | ||
