diff options
Diffstat (limited to 'examples/redis-unstable/src/commands/xgroup-create.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/xgroup-create.json | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/xgroup-create.json b/examples/redis-unstable/src/commands/xgroup-create.json new file mode 100644 index 0000000..119d7f3 --- /dev/null +++ b/examples/redis-unstable/src/commands/xgroup-create.json | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | { | ||
| 2 | "CREATE": { | ||
| 3 | "summary": "Creates a consumer group.", | ||
| 4 | "complexity": "O(1)", | ||
| 5 | "group": "stream", | ||
| 6 | "since": "5.0.0", | ||
| 7 | "arity": -5, | ||
| 8 | "container": "XGROUP", | ||
| 9 | "function": "xgroupCommand", | ||
| 10 | "history": [ | ||
| 11 | [ | ||
| 12 | "7.0.0", | ||
| 13 | "Added the `entries_read` named argument." | ||
| 14 | ] | ||
| 15 | ], | ||
| 16 | "command_flags": [ | ||
| 17 | "WRITE", | ||
| 18 | "DENYOOM" | ||
| 19 | ], | ||
| 20 | "acl_categories": [ | ||
| 21 | "STREAM" | ||
| 22 | ], | ||
| 23 | "key_specs": [ | ||
| 24 | { | ||
| 25 | "flags": [ | ||
| 26 | "RW", | ||
| 27 | "INSERT" | ||
| 28 | ], | ||
| 29 | "begin_search": { | ||
| 30 | "index": { | ||
| 31 | "pos": 2 | ||
| 32 | } | ||
| 33 | }, | ||
| 34 | "find_keys": { | ||
| 35 | "range": { | ||
| 36 | "lastkey": 0, | ||
| 37 | "step": 1, | ||
| 38 | "limit": 0 | ||
| 39 | } | ||
| 40 | } | ||
| 41 | } | ||
| 42 | ], | ||
| 43 | "arguments": [ | ||
| 44 | { | ||
| 45 | "name": "key", | ||
| 46 | "type": "key", | ||
| 47 | "key_spec_index": 0 | ||
| 48 | }, | ||
| 49 | { | ||
| 50 | "name": "group", | ||
| 51 | "type": "string" | ||
| 52 | }, | ||
| 53 | { | ||
| 54 | "name": "id-selector", | ||
| 55 | "type": "oneof", | ||
| 56 | "arguments": [ | ||
| 57 | { | ||
| 58 | "name": "id", | ||
| 59 | "type": "string" | ||
| 60 | }, | ||
| 61 | { | ||
| 62 | "name": "new-id", | ||
| 63 | "type": "pure-token", | ||
| 64 | "token": "$" | ||
| 65 | } | ||
| 66 | ] | ||
| 67 | }, | ||
| 68 | { | ||
| 69 | "token": "MKSTREAM", | ||
| 70 | "name": "mkstream", | ||
| 71 | "type": "pure-token", | ||
| 72 | "optional": true | ||
| 73 | }, | ||
| 74 | { | ||
| 75 | "name": "entriesread", | ||
| 76 | "display": "entries-read", | ||
| 77 | "token": "ENTRIESREAD", | ||
| 78 | "type": "integer", | ||
| 79 | "optional": true | ||
| 80 | } | ||
| 81 | ], | ||
| 82 | "reply_schema": { | ||
| 83 | "const": "OK" | ||
| 84 | } | ||
| 85 | } | ||
| 86 | } | ||
