diff options
Diffstat (limited to 'examples/redis-unstable/src/commands/bzpopmin.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/bzpopmin.json | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/bzpopmin.json b/examples/redis-unstable/src/commands/bzpopmin.json new file mode 100644 index 0000000..a2f305c --- /dev/null +++ b/examples/redis-unstable/src/commands/bzpopmin.json | |||
| @@ -0,0 +1,85 @@ | |||
| 1 | { | ||
| 2 | "BZPOPMIN": { | ||
| 3 | "summary": "Removes and returns the member with the lowest score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped.", | ||
| 4 | "complexity": "O(log(N)) with N being the number of elements in the sorted set.", | ||
| 5 | "group": "sorted_set", | ||
| 6 | "since": "5.0.0", | ||
| 7 | "arity": -3, | ||
| 8 | "function": "bzpopminCommand", | ||
| 9 | "history": [ | ||
| 10 | [ | ||
| 11 | "6.0.0", | ||
| 12 | "`timeout` is interpreted as a double instead of an integer." | ||
| 13 | ] | ||
| 14 | ], | ||
| 15 | "command_flags": [ | ||
| 16 | "WRITE", | ||
| 17 | "FAST", | ||
| 18 | "BLOCKING" | ||
| 19 | ], | ||
| 20 | "acl_categories": [ | ||
| 21 | "SORTEDSET" | ||
| 22 | ], | ||
| 23 | "key_specs": [ | ||
| 24 | { | ||
| 25 | "flags": [ | ||
| 26 | "RW", | ||
| 27 | "ACCESS", | ||
| 28 | "DELETE" | ||
| 29 | ], | ||
| 30 | "begin_search": { | ||
| 31 | "index": { | ||
| 32 | "pos": 1 | ||
| 33 | } | ||
| 34 | }, | ||
| 35 | "find_keys": { | ||
| 36 | "range": { | ||
| 37 | "lastkey": -2, | ||
| 38 | "step": 1, | ||
| 39 | "limit": 0 | ||
| 40 | } | ||
| 41 | } | ||
| 42 | } | ||
| 43 | ], | ||
| 44 | "reply_schema": { | ||
| 45 | "oneOf": [ | ||
| 46 | { | ||
| 47 | "description": "Timeout reached and no elements were popped.", | ||
| 48 | "type": "null" | ||
| 49 | }, | ||
| 50 | { | ||
| 51 | "description": "The keyname, popped member, and its score.", | ||
| 52 | "type": "array", | ||
| 53 | "minItems": 3, | ||
| 54 | "maxItems": 3, | ||
| 55 | "items": [ | ||
| 56 | { | ||
| 57 | "description": "Keyname", | ||
| 58 | "type": "string" | ||
| 59 | }, | ||
| 60 | { | ||
| 61 | "description": "Member", | ||
| 62 | "type": "string" | ||
| 63 | }, | ||
| 64 | { | ||
| 65 | "description": "Score", | ||
| 66 | "type": "number" | ||
| 67 | } | ||
| 68 | ] | ||
| 69 | } | ||
| 70 | ] | ||
| 71 | }, | ||
| 72 | "arguments": [ | ||
| 73 | { | ||
| 74 | "name": "key", | ||
| 75 | "type": "key", | ||
| 76 | "key_spec_index": 0, | ||
| 77 | "multiple": true | ||
| 78 | }, | ||
| 79 | { | ||
| 80 | "name": "timeout", | ||
| 81 | "type": "double" | ||
| 82 | } | ||
| 83 | ] | ||
| 84 | } | ||
| 85 | } | ||
