summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/xautoclaim.json
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/src/commands/xautoclaim.json')
-rw-r--r--examples/redis-unstable/src/commands/xautoclaim.json158
1 files changed, 158 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/xautoclaim.json b/examples/redis-unstable/src/commands/xautoclaim.json
new file mode 100644
index 0000000..2e8e9c1
--- /dev/null
+++ b/examples/redis-unstable/src/commands/xautoclaim.json
@@ -0,0 +1,158 @@
1{
2 "XAUTOCLAIM": {
3 "summary": "Changes, or acquires, ownership of messages in a consumer group, as if the messages were delivered to as consumer group member.",
4 "complexity": "O(1) if COUNT is small.",
5 "group": "stream",
6 "since": "6.2.0",
7 "arity": -6,
8 "function": "xautoclaimCommand",
9 "history": [
10 [
11 "7.0.0",
12 "Added an element to the reply array, containing deleted entries the command cleared from the PEL"
13 ]
14 ],
15 "command_flags": [
16 "WRITE",
17 "FAST"
18 ],
19 "acl_categories": [
20 "STREAM"
21 ],
22 "command_tips": [
23 "NONDETERMINISTIC_OUTPUT"
24 ],
25 "key_specs": [
26 {
27 "flags": [
28 "RW",
29 "DELETE"
30 ],
31 "begin_search": {
32 "index": {
33 "pos": 1
34 }
35 },
36 "find_keys": {
37 "range": {
38 "lastkey": 0,
39 "step": 1,
40 "limit": 0
41 }
42 }
43 }
44 ],
45 "reply_schema": {
46 "anyOf": [
47 {
48 "description": "Claimed stream entries (with data, if `JUSTID` was not given).",
49 "type": "array",
50 "minItems": 3,
51 "maxItems": 3,
52 "items": [
53 {
54 "description": "Cursor for next call.",
55 "type": "string",
56 "pattern": "[0-9]+-[0-9]+"
57 },
58 {
59 "type": "array",
60 "uniqueItems": true,
61 "items": {
62 "type": "array",
63 "minItems": 2,
64 "maxItems": 2,
65 "items": [
66 {
67 "description": "Entry ID",
68 "type": "string",
69 "pattern": "[0-9]+-[0-9]+"
70 },
71 {
72 "description": "Data",
73 "type": "array",
74 "items": {
75 "type": "string"
76 }
77 }
78 ]
79 }
80 },
81 {
82 "description": "Entry IDs which no longer exist in the stream, and were deleted from the PEL in which they were found.",
83 "type": "array",
84 "items": {
85 "type": "string",
86 "pattern": "[0-9]+-[0-9]+"
87 }
88 }
89 ]
90 },
91 {
92 "description": "Claimed stream entries (without data, if `JUSTID` was given).",
93 "type": "array",
94 "minItems": 3,
95 "maxItems": 3,
96 "items": [
97 {
98 "description": "Cursor for next call.",
99 "type": "string",
100 "pattern": "[0-9]+-[0-9]+"
101 },
102 {
103 "type": "array",
104 "uniqueItems": true,
105 "items": {
106 "type": "string",
107 "pattern": "[0-9]+-[0-9]+"
108 }
109 },
110 {
111 "description": "Entry IDs which no longer exist in the stream, and were deleted from the PEL in which they were found.",
112 "type": "array",
113 "items": {
114 "type": "string",
115 "pattern": "[0-9]+-[0-9]+"
116 }
117 }
118 ]
119 }
120 ]
121 },
122 "arguments": [
123 {
124 "name": "key",
125 "type": "key",
126 "key_spec_index": 0
127 },
128 {
129 "name": "group",
130 "type": "string"
131 },
132 {
133 "name": "consumer",
134 "type": "string"
135 },
136 {
137 "name": "min-idle-time",
138 "type": "string"
139 },
140 {
141 "name": "start",
142 "type": "string"
143 },
144 {
145 "token": "COUNT",
146 "name": "count",
147 "type": "integer",
148 "optional": true
149 },
150 {
151 "name": "justid",
152 "token": "JUSTID",
153 "type": "pure-token",
154 "optional": true
155 }
156 ]
157 }
158}