@coldsmirk/inkstone-redis 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/commands-BMa2ec02.js +4610 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +85 -0
- package/dist/markers-BlM8eKCj.js +250 -0
- package/dist/markers-gZmuOyuR.d.ts +244 -0
- package/dist/monaco.d.ts +42 -0
- package/dist/monaco.js +184 -0
- package/dist/react.d.ts +95 -0
- package/dist/react.js +104 -0
- package/package.json +77 -0
|
@@ -0,0 +1,4610 @@
|
|
|
1
|
+
//#region src/commands.ts
|
|
2
|
+
const REDIS_VERSION = "7.2.16";
|
|
3
|
+
const REDIS_COMMANDS = [
|
|
4
|
+
{
|
|
5
|
+
name: "ACL",
|
|
6
|
+
arity: -2,
|
|
7
|
+
group: "server",
|
|
8
|
+
since: "6.0.0",
|
|
9
|
+
summary: "A container for Access List Control commands.",
|
|
10
|
+
syntax: "ACL",
|
|
11
|
+
parameters: [],
|
|
12
|
+
tokens: []
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: "ACL CAT",
|
|
16
|
+
arity: -2,
|
|
17
|
+
group: "server",
|
|
18
|
+
since: "6.0.0",
|
|
19
|
+
summary: "Lists the ACL categories, or the commands inside a category.",
|
|
20
|
+
syntax: "ACL CAT [category]",
|
|
21
|
+
parameters: [[8, 18]],
|
|
22
|
+
tokens: []
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "ACL DELUSER",
|
|
26
|
+
arity: -3,
|
|
27
|
+
group: "server",
|
|
28
|
+
since: "6.0.0",
|
|
29
|
+
summary: "Deletes ACL users, and terminates their connections.",
|
|
30
|
+
syntax: "ACL DELUSER username [username ...]",
|
|
31
|
+
parameters: [[12, 35]],
|
|
32
|
+
tokens: []
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "ACL DRYRUN",
|
|
36
|
+
arity: -4,
|
|
37
|
+
group: "server",
|
|
38
|
+
since: "7.0.0",
|
|
39
|
+
summary: "Simulates the execution of a command by a user, without executing the command.",
|
|
40
|
+
syntax: "ACL DRYRUN username command [arg [arg ...]]",
|
|
41
|
+
parameters: [
|
|
42
|
+
[11, 19],
|
|
43
|
+
[20, 27],
|
|
44
|
+
[28, 43]
|
|
45
|
+
],
|
|
46
|
+
tokens: []
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "ACL GENPASS",
|
|
50
|
+
arity: -2,
|
|
51
|
+
group: "server",
|
|
52
|
+
since: "6.0.0",
|
|
53
|
+
summary: "Generates a pseudorandom, secure password that can be used to identify ACL users.",
|
|
54
|
+
syntax: "ACL GENPASS [bits]",
|
|
55
|
+
parameters: [[12, 18]],
|
|
56
|
+
tokens: []
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "ACL GETUSER",
|
|
60
|
+
arity: 3,
|
|
61
|
+
group: "server",
|
|
62
|
+
since: "6.0.0",
|
|
63
|
+
summary: "Lists the ACL rules of a user.",
|
|
64
|
+
syntax: "ACL GETUSER username",
|
|
65
|
+
parameters: [[12, 20]],
|
|
66
|
+
tokens: []
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "ACL HELP",
|
|
70
|
+
arity: 2,
|
|
71
|
+
group: "server",
|
|
72
|
+
since: "6.0.0",
|
|
73
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
74
|
+
syntax: "ACL HELP",
|
|
75
|
+
parameters: [],
|
|
76
|
+
tokens: []
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "ACL LIST",
|
|
80
|
+
arity: 2,
|
|
81
|
+
group: "server",
|
|
82
|
+
since: "6.0.0",
|
|
83
|
+
summary: "Dumps the effective rules in ACL file format.",
|
|
84
|
+
syntax: "ACL LIST",
|
|
85
|
+
parameters: [],
|
|
86
|
+
tokens: []
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "ACL LOAD",
|
|
90
|
+
arity: 2,
|
|
91
|
+
group: "server",
|
|
92
|
+
since: "6.0.0",
|
|
93
|
+
summary: "Reloads the rules from the configured ACL file.",
|
|
94
|
+
syntax: "ACL LOAD",
|
|
95
|
+
parameters: [],
|
|
96
|
+
tokens: []
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "ACL LOG",
|
|
100
|
+
arity: -2,
|
|
101
|
+
group: "server",
|
|
102
|
+
since: "6.0.0",
|
|
103
|
+
summary: "Lists recent security events generated due to ACL rules.",
|
|
104
|
+
syntax: "ACL LOG [count | RESET]",
|
|
105
|
+
parameters: [[8, 23]],
|
|
106
|
+
tokens: ["RESET"]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "ACL SAVE",
|
|
110
|
+
arity: 2,
|
|
111
|
+
group: "server",
|
|
112
|
+
since: "6.0.0",
|
|
113
|
+
summary: "Saves the effective ACL rules in the configured ACL file.",
|
|
114
|
+
syntax: "ACL SAVE",
|
|
115
|
+
parameters: [],
|
|
116
|
+
tokens: []
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: "ACL SETUSER",
|
|
120
|
+
arity: -3,
|
|
121
|
+
group: "server",
|
|
122
|
+
since: "6.0.0",
|
|
123
|
+
summary: "Creates and modifies an ACL user and its rules.",
|
|
124
|
+
syntax: "ACL SETUSER username [rule [rule ...]]",
|
|
125
|
+
parameters: [[12, 20], [21, 38]],
|
|
126
|
+
tokens: []
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "ACL USERS",
|
|
130
|
+
arity: 2,
|
|
131
|
+
group: "server",
|
|
132
|
+
since: "6.0.0",
|
|
133
|
+
summary: "Lists all ACL users.",
|
|
134
|
+
syntax: "ACL USERS",
|
|
135
|
+
parameters: [],
|
|
136
|
+
tokens: []
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "ACL WHOAMI",
|
|
140
|
+
arity: 2,
|
|
141
|
+
group: "server",
|
|
142
|
+
since: "6.0.0",
|
|
143
|
+
summary: "Returns the authenticated username of the current connection.",
|
|
144
|
+
syntax: "ACL WHOAMI",
|
|
145
|
+
parameters: [],
|
|
146
|
+
tokens: []
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "APPEND",
|
|
150
|
+
arity: 3,
|
|
151
|
+
group: "string",
|
|
152
|
+
since: "2.0.0",
|
|
153
|
+
summary: "Appends a string to the value of a key. Creates the key if it doesn't exist.",
|
|
154
|
+
syntax: "APPEND key value",
|
|
155
|
+
parameters: [[7, 10], [11, 16]],
|
|
156
|
+
tokens: []
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: "ASKING",
|
|
160
|
+
arity: 1,
|
|
161
|
+
group: "cluster",
|
|
162
|
+
since: "3.0.0",
|
|
163
|
+
summary: "Signals that a cluster client is following an -ASK redirect.",
|
|
164
|
+
syntax: "ASKING",
|
|
165
|
+
parameters: [],
|
|
166
|
+
tokens: []
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: "AUTH",
|
|
170
|
+
arity: -2,
|
|
171
|
+
group: "connection",
|
|
172
|
+
since: "1.0.0",
|
|
173
|
+
summary: "Authenticates the connection.",
|
|
174
|
+
syntax: "AUTH [username] password",
|
|
175
|
+
parameters: [[5, 15], [16, 24]],
|
|
176
|
+
tokens: []
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: "BGREWRITEAOF",
|
|
180
|
+
arity: 1,
|
|
181
|
+
group: "server",
|
|
182
|
+
since: "1.0.0",
|
|
183
|
+
summary: "Asynchronously rewrites the append-only file to disk.",
|
|
184
|
+
syntax: "BGREWRITEAOF",
|
|
185
|
+
parameters: [],
|
|
186
|
+
tokens: []
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: "BGSAVE",
|
|
190
|
+
arity: -1,
|
|
191
|
+
group: "server",
|
|
192
|
+
since: "1.0.0",
|
|
193
|
+
summary: "Asynchronously saves the database(s) to disk.",
|
|
194
|
+
syntax: "BGSAVE [SCHEDULE]",
|
|
195
|
+
parameters: [[7, 17]],
|
|
196
|
+
tokens: ["SCHEDULE"]
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: "BITCOUNT",
|
|
200
|
+
arity: -2,
|
|
201
|
+
group: "bitmap",
|
|
202
|
+
since: "2.6.0",
|
|
203
|
+
summary: "Counts the number of set bits (population counting) in a string.",
|
|
204
|
+
syntax: "BITCOUNT key [start end [BYTE | BIT]]",
|
|
205
|
+
parameters: [[9, 12], [13, 37]],
|
|
206
|
+
tokens: ["BIT", "BYTE"]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: "BITFIELD",
|
|
210
|
+
arity: -2,
|
|
211
|
+
group: "bitmap",
|
|
212
|
+
since: "3.2.0",
|
|
213
|
+
summary: "Performs arbitrary bitfield integer operations on strings.",
|
|
214
|
+
syntax: "BITFIELD key [GET encoding offset | [OVERFLOW <WRAP | SAT | FAIL>] <SET encoding offset value | INCRBY encoding offset increment> [GET encoding offset | [OVERFLOW <WRAP | SAT | FAIL>] <SET encoding offset value | INCRBY encoding offset increment> ...]]",
|
|
215
|
+
parameters: [[9, 12], [13, 252]],
|
|
216
|
+
tokens: [
|
|
217
|
+
"FAIL",
|
|
218
|
+
"GET",
|
|
219
|
+
"INCRBY",
|
|
220
|
+
"OVERFLOW",
|
|
221
|
+
"SAT",
|
|
222
|
+
"SET",
|
|
223
|
+
"WRAP"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: "BITFIELD_RO",
|
|
228
|
+
arity: -2,
|
|
229
|
+
group: "bitmap",
|
|
230
|
+
since: "6.0.0",
|
|
231
|
+
summary: "Performs arbitrary read-only bitfield integer operations on strings.",
|
|
232
|
+
syntax: "BITFIELD_RO key [GET encoding offset [GET encoding offset ...]]",
|
|
233
|
+
parameters: [[12, 15], [16, 63]],
|
|
234
|
+
tokens: ["GET"]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: "BITOP",
|
|
238
|
+
arity: -4,
|
|
239
|
+
group: "bitmap",
|
|
240
|
+
since: "2.6.0",
|
|
241
|
+
summary: "Performs bitwise operations on multiple strings, and stores the result.",
|
|
242
|
+
syntax: "BITOP <AND | OR | XOR | NOT> destkey key [key ...]",
|
|
243
|
+
parameters: [
|
|
244
|
+
[6, 28],
|
|
245
|
+
[29, 36],
|
|
246
|
+
[37, 50]
|
|
247
|
+
],
|
|
248
|
+
tokens: [
|
|
249
|
+
"AND",
|
|
250
|
+
"NOT",
|
|
251
|
+
"OR",
|
|
252
|
+
"XOR"
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: "BITPOS",
|
|
257
|
+
arity: -3,
|
|
258
|
+
group: "bitmap",
|
|
259
|
+
since: "2.8.7",
|
|
260
|
+
summary: "Finds the first set (1) or clear (0) bit in a string.",
|
|
261
|
+
syntax: "BITPOS key bit [start [end [BYTE | BIT]]]",
|
|
262
|
+
parameters: [
|
|
263
|
+
[7, 10],
|
|
264
|
+
[11, 14],
|
|
265
|
+
[15, 41]
|
|
266
|
+
],
|
|
267
|
+
tokens: ["BIT", "BYTE"]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: "BLMOVE",
|
|
271
|
+
arity: 6,
|
|
272
|
+
group: "list",
|
|
273
|
+
since: "6.2.0",
|
|
274
|
+
summary: "Pops an element from a list, pushes it to another list and returns it. Blocks until an element is available otherwise. Deletes the list if the last element was moved.",
|
|
275
|
+
syntax: "BLMOVE source destination <LEFT | RIGHT> <LEFT | RIGHT> timeout",
|
|
276
|
+
parameters: [
|
|
277
|
+
[7, 13],
|
|
278
|
+
[14, 25],
|
|
279
|
+
[26, 40],
|
|
280
|
+
[41, 55],
|
|
281
|
+
[56, 63]
|
|
282
|
+
],
|
|
283
|
+
tokens: ["LEFT", "RIGHT"]
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
name: "BLMPOP",
|
|
287
|
+
arity: -5,
|
|
288
|
+
group: "list",
|
|
289
|
+
since: "7.0.0",
|
|
290
|
+
summary: "Pops the first element from one of multiple lists. Blocks until an element is available otherwise. Deletes the list if the last element was popped.",
|
|
291
|
+
syntax: "BLMPOP timeout numkeys key [key ...] <LEFT | RIGHT> [COUNT count]",
|
|
292
|
+
parameters: [
|
|
293
|
+
[7, 14],
|
|
294
|
+
[15, 22],
|
|
295
|
+
[23, 36],
|
|
296
|
+
[37, 51],
|
|
297
|
+
[52, 65]
|
|
298
|
+
],
|
|
299
|
+
tokens: [
|
|
300
|
+
"COUNT",
|
|
301
|
+
"LEFT",
|
|
302
|
+
"RIGHT"
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
name: "BLPOP",
|
|
307
|
+
arity: -3,
|
|
308
|
+
group: "list",
|
|
309
|
+
since: "2.0.0",
|
|
310
|
+
summary: "Removes and returns the first element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped.",
|
|
311
|
+
syntax: "BLPOP key [key ...] timeout",
|
|
312
|
+
parameters: [[6, 19], [20, 27]],
|
|
313
|
+
tokens: []
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "BRPOP",
|
|
317
|
+
arity: -3,
|
|
318
|
+
group: "list",
|
|
319
|
+
since: "2.0.0",
|
|
320
|
+
summary: "Removes and returns the last element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped.",
|
|
321
|
+
syntax: "BRPOP key [key ...] timeout",
|
|
322
|
+
parameters: [[6, 19], [20, 27]],
|
|
323
|
+
tokens: []
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
name: "BRPOPLPUSH",
|
|
327
|
+
arity: 4,
|
|
328
|
+
group: "list",
|
|
329
|
+
since: "2.2.0",
|
|
330
|
+
summary: "Pops an element from a list, pushes it to another list and returns it. Block until an element is available otherwise. Deletes the list if the last element was popped.",
|
|
331
|
+
syntax: "BRPOPLPUSH source destination timeout",
|
|
332
|
+
parameters: [
|
|
333
|
+
[11, 17],
|
|
334
|
+
[18, 29],
|
|
335
|
+
[30, 37]
|
|
336
|
+
],
|
|
337
|
+
tokens: [],
|
|
338
|
+
deprecated: "6.2.0"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
name: "BZMPOP",
|
|
342
|
+
arity: -5,
|
|
343
|
+
group: "sorted-set",
|
|
344
|
+
since: "7.0.0",
|
|
345
|
+
summary: "Removes and returns a member by score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped.",
|
|
346
|
+
syntax: "BZMPOP timeout numkeys key [key ...] <MIN | MAX> [COUNT count]",
|
|
347
|
+
parameters: [
|
|
348
|
+
[7, 14],
|
|
349
|
+
[15, 22],
|
|
350
|
+
[23, 36],
|
|
351
|
+
[37, 48],
|
|
352
|
+
[49, 62]
|
|
353
|
+
],
|
|
354
|
+
tokens: [
|
|
355
|
+
"COUNT",
|
|
356
|
+
"MAX",
|
|
357
|
+
"MIN"
|
|
358
|
+
]
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
name: "BZPOPMAX",
|
|
362
|
+
arity: -3,
|
|
363
|
+
group: "sorted-set",
|
|
364
|
+
since: "5.0.0",
|
|
365
|
+
summary: "Removes and returns the member with the highest score from one or more sorted sets. Blocks until a member available otherwise. Deletes the sorted set if the last element was popped.",
|
|
366
|
+
syntax: "BZPOPMAX key [key ...] timeout",
|
|
367
|
+
parameters: [[9, 22], [23, 30]],
|
|
368
|
+
tokens: []
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
name: "BZPOPMIN",
|
|
372
|
+
arity: -3,
|
|
373
|
+
group: "sorted-set",
|
|
374
|
+
since: "5.0.0",
|
|
375
|
+
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.",
|
|
376
|
+
syntax: "BZPOPMIN key [key ...] timeout",
|
|
377
|
+
parameters: [[9, 22], [23, 30]],
|
|
378
|
+
tokens: []
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: "CLIENT",
|
|
382
|
+
arity: -2,
|
|
383
|
+
group: "connection",
|
|
384
|
+
since: "2.4.0",
|
|
385
|
+
summary: "A container for client connection commands.",
|
|
386
|
+
syntax: "CLIENT",
|
|
387
|
+
parameters: [],
|
|
388
|
+
tokens: []
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
name: "CLIENT CACHING",
|
|
392
|
+
arity: 3,
|
|
393
|
+
group: "connection",
|
|
394
|
+
since: "6.0.0",
|
|
395
|
+
summary: "Instructs the server whether to track the keys in the next request.",
|
|
396
|
+
syntax: "CLIENT CACHING <YES | NO>",
|
|
397
|
+
parameters: [[15, 25]],
|
|
398
|
+
tokens: ["NO", "YES"]
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
name: "CLIENT GETNAME",
|
|
402
|
+
arity: 2,
|
|
403
|
+
group: "connection",
|
|
404
|
+
since: "2.6.9",
|
|
405
|
+
summary: "Returns the name of the connection.",
|
|
406
|
+
syntax: "CLIENT GETNAME",
|
|
407
|
+
parameters: [],
|
|
408
|
+
tokens: []
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
name: "CLIENT GETREDIR",
|
|
412
|
+
arity: 2,
|
|
413
|
+
group: "connection",
|
|
414
|
+
since: "6.0.0",
|
|
415
|
+
summary: "Returns the client ID to which the connection's tracking notifications are redirected.",
|
|
416
|
+
syntax: "CLIENT GETREDIR",
|
|
417
|
+
parameters: [],
|
|
418
|
+
tokens: []
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
name: "CLIENT HELP",
|
|
422
|
+
arity: 2,
|
|
423
|
+
group: "connection",
|
|
424
|
+
since: "5.0.0",
|
|
425
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
426
|
+
syntax: "CLIENT HELP",
|
|
427
|
+
parameters: [],
|
|
428
|
+
tokens: []
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
name: "CLIENT ID",
|
|
432
|
+
arity: 2,
|
|
433
|
+
group: "connection",
|
|
434
|
+
since: "5.0.0",
|
|
435
|
+
summary: "Returns the unique client ID of the connection.",
|
|
436
|
+
syntax: "CLIENT ID",
|
|
437
|
+
parameters: [],
|
|
438
|
+
tokens: []
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
name: "CLIENT INFO",
|
|
442
|
+
arity: 2,
|
|
443
|
+
group: "connection",
|
|
444
|
+
since: "6.2.0",
|
|
445
|
+
summary: "Returns information about the connection.",
|
|
446
|
+
syntax: "CLIENT INFO",
|
|
447
|
+
parameters: [],
|
|
448
|
+
tokens: []
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
name: "CLIENT KILL",
|
|
452
|
+
arity: -3,
|
|
453
|
+
group: "connection",
|
|
454
|
+
since: "2.4.0",
|
|
455
|
+
summary: "Terminates open connections.",
|
|
456
|
+
syntax: "CLIENT KILL <ip:port | <[ID client-id] | [TYPE <NORMAL | MASTER | SLAVE | REPLICA | PUBSUB>] | [USER username] | [ADDR ip:port] | [LADDR ip:port] | [SKIPME <YES | NO>] [[ID client-id] | [TYPE <NORMAL | MASTER | SLAVE | REPLICA | PUBSUB>] | [USER username] | [ADDR ip:port] | [LADDR ip:port] | [SKIPME <YES | NO>] ...]>>",
|
|
457
|
+
parameters: [[12, 319]],
|
|
458
|
+
tokens: [
|
|
459
|
+
"ADDR",
|
|
460
|
+
"ID",
|
|
461
|
+
"LADDR",
|
|
462
|
+
"MASTER",
|
|
463
|
+
"NO",
|
|
464
|
+
"NORMAL",
|
|
465
|
+
"PUBSUB",
|
|
466
|
+
"REPLICA",
|
|
467
|
+
"SKIPME",
|
|
468
|
+
"SLAVE",
|
|
469
|
+
"TYPE",
|
|
470
|
+
"USER",
|
|
471
|
+
"YES"
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
name: "CLIENT LIST",
|
|
476
|
+
arity: -2,
|
|
477
|
+
group: "connection",
|
|
478
|
+
since: "2.4.0",
|
|
479
|
+
summary: "Lists open connections.",
|
|
480
|
+
syntax: "CLIENT LIST [TYPE <NORMAL | MASTER | REPLICA | PUBSUB>] [ID client-id [ID client-id ...]]",
|
|
481
|
+
parameters: [[12, 55], [56, 89]],
|
|
482
|
+
tokens: [
|
|
483
|
+
"ID",
|
|
484
|
+
"MASTER",
|
|
485
|
+
"NORMAL",
|
|
486
|
+
"PUBSUB",
|
|
487
|
+
"REPLICA",
|
|
488
|
+
"TYPE"
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
name: "CLIENT NO-EVICT",
|
|
493
|
+
arity: 3,
|
|
494
|
+
group: "connection",
|
|
495
|
+
since: "7.0.0",
|
|
496
|
+
summary: "Sets the client eviction mode of the connection.",
|
|
497
|
+
syntax: "CLIENT NO-EVICT <ON | OFF>",
|
|
498
|
+
parameters: [[16, 26]],
|
|
499
|
+
tokens: ["OFF", "ON"]
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
name: "CLIENT NO-TOUCH",
|
|
503
|
+
arity: 3,
|
|
504
|
+
group: "connection",
|
|
505
|
+
since: "7.2.0",
|
|
506
|
+
summary: "Controls whether commands sent by the client affect the LRU/LFU of accessed keys.",
|
|
507
|
+
syntax: "CLIENT NO-TOUCH <ON | OFF>",
|
|
508
|
+
parameters: [[16, 26]],
|
|
509
|
+
tokens: ["OFF", "ON"]
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
name: "CLIENT PAUSE",
|
|
513
|
+
arity: -3,
|
|
514
|
+
group: "connection",
|
|
515
|
+
since: "3.0.0",
|
|
516
|
+
summary: "Suspends commands processing.",
|
|
517
|
+
syntax: "CLIENT PAUSE timeout [WRITE | ALL]",
|
|
518
|
+
parameters: [[13, 20], [21, 34]],
|
|
519
|
+
tokens: ["ALL", "WRITE"]
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
name: "CLIENT REPLY",
|
|
523
|
+
arity: 3,
|
|
524
|
+
group: "connection",
|
|
525
|
+
since: "3.2.0",
|
|
526
|
+
summary: "Instructs the server whether to reply to commands.",
|
|
527
|
+
syntax: "CLIENT REPLY <ON | OFF | SKIP>",
|
|
528
|
+
parameters: [[13, 30]],
|
|
529
|
+
tokens: [
|
|
530
|
+
"OFF",
|
|
531
|
+
"ON",
|
|
532
|
+
"SKIP"
|
|
533
|
+
]
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
name: "CLIENT SETINFO",
|
|
537
|
+
arity: 4,
|
|
538
|
+
group: "connection",
|
|
539
|
+
since: "7.2.0",
|
|
540
|
+
summary: "Sets information specific to the client or connection.",
|
|
541
|
+
syntax: "CLIENT SETINFO <LIB-NAME libname | LIB-VER libver>",
|
|
542
|
+
parameters: [[15, 50]],
|
|
543
|
+
tokens: ["LIB-NAME", "LIB-VER"]
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
name: "CLIENT SETNAME",
|
|
547
|
+
arity: 3,
|
|
548
|
+
group: "connection",
|
|
549
|
+
since: "2.6.9",
|
|
550
|
+
summary: "Sets the connection name.",
|
|
551
|
+
syntax: "CLIENT SETNAME connection-name",
|
|
552
|
+
parameters: [[15, 30]],
|
|
553
|
+
tokens: []
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
name: "CLIENT TRACKING",
|
|
557
|
+
arity: -3,
|
|
558
|
+
group: "connection",
|
|
559
|
+
since: "6.0.0",
|
|
560
|
+
summary: "Controls server-assisted client-side caching for the connection.",
|
|
561
|
+
syntax: "CLIENT TRACKING <ON | OFF> [REDIRECT client-id] [PREFIX prefix [PREFIX prefix ...]] [BCAST] [OPTIN] [OPTOUT] [NOLOOP]",
|
|
562
|
+
parameters: [
|
|
563
|
+
[16, 26],
|
|
564
|
+
[27, 47],
|
|
565
|
+
[48, 83],
|
|
566
|
+
[84, 91],
|
|
567
|
+
[92, 99],
|
|
568
|
+
[100, 108],
|
|
569
|
+
[109, 117]
|
|
570
|
+
],
|
|
571
|
+
tokens: [
|
|
572
|
+
"BCAST",
|
|
573
|
+
"NOLOOP",
|
|
574
|
+
"OFF",
|
|
575
|
+
"ON",
|
|
576
|
+
"OPTIN",
|
|
577
|
+
"OPTOUT",
|
|
578
|
+
"PREFIX",
|
|
579
|
+
"REDIRECT"
|
|
580
|
+
]
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
name: "CLIENT TRACKINGINFO",
|
|
584
|
+
arity: 2,
|
|
585
|
+
group: "connection",
|
|
586
|
+
since: "6.2.0",
|
|
587
|
+
summary: "Returns information about server-assisted client-side caching for the connection.",
|
|
588
|
+
syntax: "CLIENT TRACKINGINFO",
|
|
589
|
+
parameters: [],
|
|
590
|
+
tokens: []
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
name: "CLIENT UNBLOCK",
|
|
594
|
+
arity: -3,
|
|
595
|
+
group: "connection",
|
|
596
|
+
since: "5.0.0",
|
|
597
|
+
summary: "Unblocks a client blocked by a blocking command from a different connection.",
|
|
598
|
+
syntax: "CLIENT UNBLOCK client-id [TIMEOUT | ERROR]",
|
|
599
|
+
parameters: [[15, 24], [25, 42]],
|
|
600
|
+
tokens: ["ERROR", "TIMEOUT"]
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
name: "CLIENT UNPAUSE",
|
|
604
|
+
arity: 2,
|
|
605
|
+
group: "connection",
|
|
606
|
+
since: "6.2.0",
|
|
607
|
+
summary: "Resumes processing commands from paused clients.",
|
|
608
|
+
syntax: "CLIENT UNPAUSE",
|
|
609
|
+
parameters: [],
|
|
610
|
+
tokens: []
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: "CLUSTER",
|
|
614
|
+
arity: -2,
|
|
615
|
+
group: "cluster",
|
|
616
|
+
since: "3.0.0",
|
|
617
|
+
summary: "A container for Redis Cluster commands.",
|
|
618
|
+
syntax: "CLUSTER",
|
|
619
|
+
parameters: [],
|
|
620
|
+
tokens: []
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
name: "CLUSTER ADDSLOTS",
|
|
624
|
+
arity: -3,
|
|
625
|
+
group: "cluster",
|
|
626
|
+
since: "3.0.0",
|
|
627
|
+
summary: "Assigns new hash slots to a node.",
|
|
628
|
+
syntax: "CLUSTER ADDSLOTS slot [slot ...]",
|
|
629
|
+
parameters: [[17, 32]],
|
|
630
|
+
tokens: []
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
name: "CLUSTER ADDSLOTSRANGE",
|
|
634
|
+
arity: -4,
|
|
635
|
+
group: "cluster",
|
|
636
|
+
since: "7.0.0",
|
|
637
|
+
summary: "Assigns new hash slot ranges to a node.",
|
|
638
|
+
syntax: "CLUSTER ADDSLOTSRANGE start-slot end-slot [start-slot end-slot ...]",
|
|
639
|
+
parameters: [[22, 67]],
|
|
640
|
+
tokens: []
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
name: "CLUSTER BUMPEPOCH",
|
|
644
|
+
arity: 2,
|
|
645
|
+
group: "cluster",
|
|
646
|
+
since: "3.0.0",
|
|
647
|
+
summary: "Advances the cluster config epoch.",
|
|
648
|
+
syntax: "CLUSTER BUMPEPOCH",
|
|
649
|
+
parameters: [],
|
|
650
|
+
tokens: []
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
name: "CLUSTER COUNT-FAILURE-REPORTS",
|
|
654
|
+
arity: 3,
|
|
655
|
+
group: "cluster",
|
|
656
|
+
since: "3.0.0",
|
|
657
|
+
summary: "Returns the number of active failure reports active for a node.",
|
|
658
|
+
syntax: "CLUSTER COUNT-FAILURE-REPORTS node-id",
|
|
659
|
+
parameters: [[30, 37]],
|
|
660
|
+
tokens: []
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
name: "CLUSTER COUNTKEYSINSLOT",
|
|
664
|
+
arity: 3,
|
|
665
|
+
group: "cluster",
|
|
666
|
+
since: "3.0.0",
|
|
667
|
+
summary: "Returns the number of keys in a hash slot.",
|
|
668
|
+
syntax: "CLUSTER COUNTKEYSINSLOT slot",
|
|
669
|
+
parameters: [[24, 28]],
|
|
670
|
+
tokens: []
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
name: "CLUSTER DELSLOTS",
|
|
674
|
+
arity: -3,
|
|
675
|
+
group: "cluster",
|
|
676
|
+
since: "3.0.0",
|
|
677
|
+
summary: "Sets hash slots as unbound for a node.",
|
|
678
|
+
syntax: "CLUSTER DELSLOTS slot [slot ...]",
|
|
679
|
+
parameters: [[17, 32]],
|
|
680
|
+
tokens: []
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
name: "CLUSTER DELSLOTSRANGE",
|
|
684
|
+
arity: -4,
|
|
685
|
+
group: "cluster",
|
|
686
|
+
since: "7.0.0",
|
|
687
|
+
summary: "Sets hash slot ranges as unbound for a node.",
|
|
688
|
+
syntax: "CLUSTER DELSLOTSRANGE start-slot end-slot [start-slot end-slot ...]",
|
|
689
|
+
parameters: [[22, 67]],
|
|
690
|
+
tokens: []
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
name: "CLUSTER FAILOVER",
|
|
694
|
+
arity: -2,
|
|
695
|
+
group: "cluster",
|
|
696
|
+
since: "3.0.0",
|
|
697
|
+
summary: "Forces a replica to perform a manual failover of its master.",
|
|
698
|
+
syntax: "CLUSTER FAILOVER [FORCE | TAKEOVER]",
|
|
699
|
+
parameters: [[17, 35]],
|
|
700
|
+
tokens: ["FORCE", "TAKEOVER"]
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
name: "CLUSTER FLUSHSLOTS",
|
|
704
|
+
arity: 2,
|
|
705
|
+
group: "cluster",
|
|
706
|
+
since: "3.0.0",
|
|
707
|
+
summary: "Deletes all slots information from a node.",
|
|
708
|
+
syntax: "CLUSTER FLUSHSLOTS",
|
|
709
|
+
parameters: [],
|
|
710
|
+
tokens: []
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
name: "CLUSTER FORGET",
|
|
714
|
+
arity: 3,
|
|
715
|
+
group: "cluster",
|
|
716
|
+
since: "3.0.0",
|
|
717
|
+
summary: "Removes a node from the nodes table.",
|
|
718
|
+
syntax: "CLUSTER FORGET node-id",
|
|
719
|
+
parameters: [[15, 22]],
|
|
720
|
+
tokens: []
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
name: "CLUSTER GETKEYSINSLOT",
|
|
724
|
+
arity: 4,
|
|
725
|
+
group: "cluster",
|
|
726
|
+
since: "3.0.0",
|
|
727
|
+
summary: "Returns the key names in a hash slot.",
|
|
728
|
+
syntax: "CLUSTER GETKEYSINSLOT slot count",
|
|
729
|
+
parameters: [[22, 26], [27, 32]],
|
|
730
|
+
tokens: []
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
name: "CLUSTER HELP",
|
|
734
|
+
arity: 2,
|
|
735
|
+
group: "cluster",
|
|
736
|
+
since: "5.0.0",
|
|
737
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
738
|
+
syntax: "CLUSTER HELP",
|
|
739
|
+
parameters: [],
|
|
740
|
+
tokens: []
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
name: "CLUSTER INFO",
|
|
744
|
+
arity: 2,
|
|
745
|
+
group: "cluster",
|
|
746
|
+
since: "3.0.0",
|
|
747
|
+
summary: "Returns information about the state of a node.",
|
|
748
|
+
syntax: "CLUSTER INFO",
|
|
749
|
+
parameters: [],
|
|
750
|
+
tokens: []
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
name: "CLUSTER KEYSLOT",
|
|
754
|
+
arity: 3,
|
|
755
|
+
group: "cluster",
|
|
756
|
+
since: "3.0.0",
|
|
757
|
+
summary: "Returns the hash slot for a key.",
|
|
758
|
+
syntax: "CLUSTER KEYSLOT key",
|
|
759
|
+
parameters: [[16, 19]],
|
|
760
|
+
tokens: []
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
name: "CLUSTER LINKS",
|
|
764
|
+
arity: 2,
|
|
765
|
+
group: "cluster",
|
|
766
|
+
since: "7.0.0",
|
|
767
|
+
summary: "Returns a list of all TCP links to and from peer nodes.",
|
|
768
|
+
syntax: "CLUSTER LINKS",
|
|
769
|
+
parameters: [],
|
|
770
|
+
tokens: []
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
name: "CLUSTER MEET",
|
|
774
|
+
arity: -4,
|
|
775
|
+
group: "cluster",
|
|
776
|
+
since: "3.0.0",
|
|
777
|
+
summary: "Forces a node to handshake with another node.",
|
|
778
|
+
syntax: "CLUSTER MEET ip port [cluster-bus-port]",
|
|
779
|
+
parameters: [
|
|
780
|
+
[13, 15],
|
|
781
|
+
[16, 20],
|
|
782
|
+
[21, 39]
|
|
783
|
+
],
|
|
784
|
+
tokens: []
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
name: "CLUSTER MYID",
|
|
788
|
+
arity: 2,
|
|
789
|
+
group: "cluster",
|
|
790
|
+
since: "3.0.0",
|
|
791
|
+
summary: "Returns the ID of a node.",
|
|
792
|
+
syntax: "CLUSTER MYID",
|
|
793
|
+
parameters: [],
|
|
794
|
+
tokens: []
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
name: "CLUSTER MYSHARDID",
|
|
798
|
+
arity: 2,
|
|
799
|
+
group: "cluster",
|
|
800
|
+
since: "7.2.0",
|
|
801
|
+
summary: "Returns the shard ID of a node.",
|
|
802
|
+
syntax: "CLUSTER MYSHARDID",
|
|
803
|
+
parameters: [],
|
|
804
|
+
tokens: []
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
name: "CLUSTER NODES",
|
|
808
|
+
arity: 2,
|
|
809
|
+
group: "cluster",
|
|
810
|
+
since: "3.0.0",
|
|
811
|
+
summary: "Returns the cluster configuration for a node.",
|
|
812
|
+
syntax: "CLUSTER NODES",
|
|
813
|
+
parameters: [],
|
|
814
|
+
tokens: []
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
name: "CLUSTER REPLICAS",
|
|
818
|
+
arity: 3,
|
|
819
|
+
group: "cluster",
|
|
820
|
+
since: "5.0.0",
|
|
821
|
+
summary: "Lists the replica nodes of a master node.",
|
|
822
|
+
syntax: "CLUSTER REPLICAS node-id",
|
|
823
|
+
parameters: [[17, 24]],
|
|
824
|
+
tokens: []
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
name: "CLUSTER REPLICATE",
|
|
828
|
+
arity: 3,
|
|
829
|
+
group: "cluster",
|
|
830
|
+
since: "3.0.0",
|
|
831
|
+
summary: "Configure a node as replica of a master node.",
|
|
832
|
+
syntax: "CLUSTER REPLICATE node-id",
|
|
833
|
+
parameters: [[18, 25]],
|
|
834
|
+
tokens: []
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
name: "CLUSTER RESET",
|
|
838
|
+
arity: -2,
|
|
839
|
+
group: "cluster",
|
|
840
|
+
since: "3.0.0",
|
|
841
|
+
summary: "Resets a node.",
|
|
842
|
+
syntax: "CLUSTER RESET [HARD | SOFT]",
|
|
843
|
+
parameters: [[14, 27]],
|
|
844
|
+
tokens: ["HARD", "SOFT"]
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
name: "CLUSTER SAVECONFIG",
|
|
848
|
+
arity: 2,
|
|
849
|
+
group: "cluster",
|
|
850
|
+
since: "3.0.0",
|
|
851
|
+
summary: "Forces a node to save the cluster configuration to disk.",
|
|
852
|
+
syntax: "CLUSTER SAVECONFIG",
|
|
853
|
+
parameters: [],
|
|
854
|
+
tokens: []
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
name: "CLUSTER SET-CONFIG-EPOCH",
|
|
858
|
+
arity: 3,
|
|
859
|
+
group: "cluster",
|
|
860
|
+
since: "3.0.0",
|
|
861
|
+
summary: "Sets the configuration epoch for a new node.",
|
|
862
|
+
syntax: "CLUSTER SET-CONFIG-EPOCH config-epoch",
|
|
863
|
+
parameters: [[25, 37]],
|
|
864
|
+
tokens: []
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
name: "CLUSTER SETSLOT",
|
|
868
|
+
arity: -4,
|
|
869
|
+
group: "cluster",
|
|
870
|
+
since: "3.0.0",
|
|
871
|
+
summary: "Binds a hash slot to a node.",
|
|
872
|
+
syntax: "CLUSTER SETSLOT slot <IMPORTING node-id | MIGRATING node-id | NODE node-id | STABLE>",
|
|
873
|
+
parameters: [[16, 20], [21, 84]],
|
|
874
|
+
tokens: [
|
|
875
|
+
"IMPORTING",
|
|
876
|
+
"MIGRATING",
|
|
877
|
+
"NODE",
|
|
878
|
+
"STABLE"
|
|
879
|
+
]
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
name: "CLUSTER SHARDS",
|
|
883
|
+
arity: 2,
|
|
884
|
+
group: "cluster",
|
|
885
|
+
since: "7.0.0",
|
|
886
|
+
summary: "Returns the mapping of cluster slots to shards.",
|
|
887
|
+
syntax: "CLUSTER SHARDS",
|
|
888
|
+
parameters: [],
|
|
889
|
+
tokens: []
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
name: "CLUSTER SLAVES",
|
|
893
|
+
arity: 3,
|
|
894
|
+
group: "cluster",
|
|
895
|
+
since: "3.0.0",
|
|
896
|
+
summary: "Lists the replica nodes of a master node.",
|
|
897
|
+
syntax: "CLUSTER SLAVES node-id",
|
|
898
|
+
parameters: [[15, 22]],
|
|
899
|
+
tokens: [],
|
|
900
|
+
deprecated: "5.0.0"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
name: "CLUSTER SLOTS",
|
|
904
|
+
arity: 2,
|
|
905
|
+
group: "cluster",
|
|
906
|
+
since: "3.0.0",
|
|
907
|
+
summary: "Returns the mapping of cluster slots to nodes.",
|
|
908
|
+
syntax: "CLUSTER SLOTS",
|
|
909
|
+
parameters: [],
|
|
910
|
+
tokens: [],
|
|
911
|
+
deprecated: "7.0.0"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
name: "COMMAND",
|
|
915
|
+
arity: -1,
|
|
916
|
+
group: "server",
|
|
917
|
+
since: "2.8.13",
|
|
918
|
+
summary: "Returns detailed information about all commands.",
|
|
919
|
+
syntax: "COMMAND",
|
|
920
|
+
parameters: [],
|
|
921
|
+
tokens: []
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
name: "COMMAND COUNT",
|
|
925
|
+
arity: 2,
|
|
926
|
+
group: "server",
|
|
927
|
+
since: "2.8.13",
|
|
928
|
+
summary: "Returns a count of commands.",
|
|
929
|
+
syntax: "COMMAND COUNT",
|
|
930
|
+
parameters: [],
|
|
931
|
+
tokens: []
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
name: "COMMAND DOCS",
|
|
935
|
+
arity: -2,
|
|
936
|
+
group: "server",
|
|
937
|
+
since: "7.0.0",
|
|
938
|
+
summary: "Returns documentary information about one, multiple or all commands.",
|
|
939
|
+
syntax: "COMMAND DOCS [command-name [command-name ...]]",
|
|
940
|
+
parameters: [[13, 46]],
|
|
941
|
+
tokens: []
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
name: "COMMAND GETKEYS",
|
|
945
|
+
arity: -3,
|
|
946
|
+
group: "server",
|
|
947
|
+
since: "2.8.13",
|
|
948
|
+
summary: "Extracts the key names from an arbitrary command.",
|
|
949
|
+
syntax: "COMMAND GETKEYS command [arg [arg ...]]",
|
|
950
|
+
parameters: [[16, 23], [24, 39]],
|
|
951
|
+
tokens: []
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
name: "COMMAND GETKEYSANDFLAGS",
|
|
955
|
+
arity: -3,
|
|
956
|
+
group: "server",
|
|
957
|
+
since: "7.0.0",
|
|
958
|
+
summary: "Extracts the key names and access flags for an arbitrary command.",
|
|
959
|
+
syntax: "COMMAND GETKEYSANDFLAGS command [arg [arg ...]]",
|
|
960
|
+
parameters: [[24, 31], [32, 47]],
|
|
961
|
+
tokens: []
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
name: "COMMAND HELP",
|
|
965
|
+
arity: 2,
|
|
966
|
+
group: "server",
|
|
967
|
+
since: "5.0.0",
|
|
968
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
969
|
+
syntax: "COMMAND HELP",
|
|
970
|
+
parameters: [],
|
|
971
|
+
tokens: []
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
name: "COMMAND INFO",
|
|
975
|
+
arity: -2,
|
|
976
|
+
group: "server",
|
|
977
|
+
since: "2.8.13",
|
|
978
|
+
summary: "Returns information about one, multiple or all commands.",
|
|
979
|
+
syntax: "COMMAND INFO [command-name [command-name ...]]",
|
|
980
|
+
parameters: [[13, 46]],
|
|
981
|
+
tokens: []
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
name: "COMMAND LIST",
|
|
985
|
+
arity: -2,
|
|
986
|
+
group: "server",
|
|
987
|
+
since: "7.0.0",
|
|
988
|
+
summary: "Returns a list of command names.",
|
|
989
|
+
syntax: "COMMAND LIST [FILTERBY <MODULE module-name | ACLCAT category | PATTERN pattern>]",
|
|
990
|
+
parameters: [[13, 80]],
|
|
991
|
+
tokens: [
|
|
992
|
+
"ACLCAT",
|
|
993
|
+
"FILTERBY",
|
|
994
|
+
"MODULE",
|
|
995
|
+
"PATTERN"
|
|
996
|
+
]
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
name: "CONFIG",
|
|
1000
|
+
arity: -2,
|
|
1001
|
+
group: "server",
|
|
1002
|
+
since: "2.0.0",
|
|
1003
|
+
summary: "A container for server configuration commands.",
|
|
1004
|
+
syntax: "CONFIG",
|
|
1005
|
+
parameters: [],
|
|
1006
|
+
tokens: []
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
name: "CONFIG GET",
|
|
1010
|
+
arity: -3,
|
|
1011
|
+
group: "server",
|
|
1012
|
+
since: "2.0.0",
|
|
1013
|
+
summary: "Returns the effective values of configuration parameters.",
|
|
1014
|
+
syntax: "CONFIG GET parameter [parameter ...]",
|
|
1015
|
+
parameters: [[11, 36]],
|
|
1016
|
+
tokens: []
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
name: "CONFIG HELP",
|
|
1020
|
+
arity: 2,
|
|
1021
|
+
group: "server",
|
|
1022
|
+
since: "5.0.0",
|
|
1023
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
1024
|
+
syntax: "CONFIG HELP",
|
|
1025
|
+
parameters: [],
|
|
1026
|
+
tokens: []
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
name: "CONFIG RESETSTAT",
|
|
1030
|
+
arity: 2,
|
|
1031
|
+
group: "server",
|
|
1032
|
+
since: "2.0.0",
|
|
1033
|
+
summary: "Resets the server's statistics.",
|
|
1034
|
+
syntax: "CONFIG RESETSTAT",
|
|
1035
|
+
parameters: [],
|
|
1036
|
+
tokens: []
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
name: "CONFIG REWRITE",
|
|
1040
|
+
arity: 2,
|
|
1041
|
+
group: "server",
|
|
1042
|
+
since: "2.8.0",
|
|
1043
|
+
summary: "Persists the effective configuration to file.",
|
|
1044
|
+
syntax: "CONFIG REWRITE",
|
|
1045
|
+
parameters: [],
|
|
1046
|
+
tokens: []
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
name: "CONFIG SET",
|
|
1050
|
+
arity: -4,
|
|
1051
|
+
group: "server",
|
|
1052
|
+
since: "2.0.0",
|
|
1053
|
+
summary: "Sets configuration parameters in-flight.",
|
|
1054
|
+
syntax: "CONFIG SET parameter value [parameter value ...]",
|
|
1055
|
+
parameters: [[11, 48]],
|
|
1056
|
+
tokens: []
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
name: "COPY",
|
|
1060
|
+
arity: -3,
|
|
1061
|
+
group: "generic",
|
|
1062
|
+
since: "6.2.0",
|
|
1063
|
+
summary: "Copies the value of a key to a new key.",
|
|
1064
|
+
syntax: "COPY source destination [DB destination-db] [REPLACE]",
|
|
1065
|
+
parameters: [
|
|
1066
|
+
[5, 11],
|
|
1067
|
+
[12, 23],
|
|
1068
|
+
[24, 43],
|
|
1069
|
+
[44, 53]
|
|
1070
|
+
],
|
|
1071
|
+
tokens: ["DB", "REPLACE"]
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
name: "DBSIZE",
|
|
1075
|
+
arity: 1,
|
|
1076
|
+
group: "server",
|
|
1077
|
+
since: "1.0.0",
|
|
1078
|
+
summary: "Returns the number of keys in the database.",
|
|
1079
|
+
syntax: "DBSIZE",
|
|
1080
|
+
parameters: [],
|
|
1081
|
+
tokens: []
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
name: "DEBUG",
|
|
1085
|
+
arity: -2,
|
|
1086
|
+
group: "server",
|
|
1087
|
+
since: "1.0.0",
|
|
1088
|
+
summary: "A container for debugging commands.",
|
|
1089
|
+
syntax: "DEBUG",
|
|
1090
|
+
parameters: [],
|
|
1091
|
+
tokens: []
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
name: "DECR",
|
|
1095
|
+
arity: 2,
|
|
1096
|
+
group: "string",
|
|
1097
|
+
since: "1.0.0",
|
|
1098
|
+
summary: "Decrements the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.",
|
|
1099
|
+
syntax: "DECR key",
|
|
1100
|
+
parameters: [[5, 8]],
|
|
1101
|
+
tokens: []
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
name: "DECRBY",
|
|
1105
|
+
arity: 3,
|
|
1106
|
+
group: "string",
|
|
1107
|
+
since: "1.0.0",
|
|
1108
|
+
summary: "Decrements a number from the integer value of a key. Uses 0 as initial value if the key doesn't exist.",
|
|
1109
|
+
syntax: "DECRBY key decrement",
|
|
1110
|
+
parameters: [[7, 10], [11, 20]],
|
|
1111
|
+
tokens: []
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
name: "DEL",
|
|
1115
|
+
arity: -2,
|
|
1116
|
+
group: "generic",
|
|
1117
|
+
since: "1.0.0",
|
|
1118
|
+
summary: "Deletes one or more keys.",
|
|
1119
|
+
syntax: "DEL key [key ...]",
|
|
1120
|
+
parameters: [[4, 17]],
|
|
1121
|
+
tokens: []
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
name: "DISCARD",
|
|
1125
|
+
arity: 1,
|
|
1126
|
+
group: "transactions",
|
|
1127
|
+
since: "2.0.0",
|
|
1128
|
+
summary: "Discards a transaction.",
|
|
1129
|
+
syntax: "DISCARD",
|
|
1130
|
+
parameters: [],
|
|
1131
|
+
tokens: []
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
name: "DUMP",
|
|
1135
|
+
arity: 2,
|
|
1136
|
+
group: "generic",
|
|
1137
|
+
since: "2.6.0",
|
|
1138
|
+
summary: "Returns a serialized representation of the value stored at a key.",
|
|
1139
|
+
syntax: "DUMP key",
|
|
1140
|
+
parameters: [[5, 8]],
|
|
1141
|
+
tokens: []
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
name: "ECHO",
|
|
1145
|
+
arity: 2,
|
|
1146
|
+
group: "connection",
|
|
1147
|
+
since: "1.0.0",
|
|
1148
|
+
summary: "Returns the given string.",
|
|
1149
|
+
syntax: "ECHO message",
|
|
1150
|
+
parameters: [[5, 12]],
|
|
1151
|
+
tokens: []
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
name: "EVAL",
|
|
1155
|
+
arity: -3,
|
|
1156
|
+
group: "scripting",
|
|
1157
|
+
since: "2.6.0",
|
|
1158
|
+
summary: "Executes a server-side Lua script.",
|
|
1159
|
+
syntax: "EVAL script numkeys [key [key ...]] [arg [arg ...]]",
|
|
1160
|
+
parameters: [
|
|
1161
|
+
[5, 11],
|
|
1162
|
+
[12, 19],
|
|
1163
|
+
[20, 35],
|
|
1164
|
+
[36, 51]
|
|
1165
|
+
],
|
|
1166
|
+
tokens: []
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
name: "EVAL_RO",
|
|
1170
|
+
arity: -3,
|
|
1171
|
+
group: "scripting",
|
|
1172
|
+
since: "7.0.0",
|
|
1173
|
+
summary: "Executes a read-only server-side Lua script.",
|
|
1174
|
+
syntax: "EVAL_RO script numkeys [key [key ...]] [arg [arg ...]]",
|
|
1175
|
+
parameters: [
|
|
1176
|
+
[8, 14],
|
|
1177
|
+
[15, 22],
|
|
1178
|
+
[23, 38],
|
|
1179
|
+
[39, 54]
|
|
1180
|
+
],
|
|
1181
|
+
tokens: []
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
name: "EVALSHA",
|
|
1185
|
+
arity: -3,
|
|
1186
|
+
group: "scripting",
|
|
1187
|
+
since: "2.6.0",
|
|
1188
|
+
summary: "Executes a server-side Lua script by SHA1 digest.",
|
|
1189
|
+
syntax: "EVALSHA sha1 numkeys [key [key ...]] [arg [arg ...]]",
|
|
1190
|
+
parameters: [
|
|
1191
|
+
[8, 12],
|
|
1192
|
+
[13, 20],
|
|
1193
|
+
[21, 36],
|
|
1194
|
+
[37, 52]
|
|
1195
|
+
],
|
|
1196
|
+
tokens: []
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
name: "EVALSHA_RO",
|
|
1200
|
+
arity: -3,
|
|
1201
|
+
group: "scripting",
|
|
1202
|
+
since: "7.0.0",
|
|
1203
|
+
summary: "Executes a read-only server-side Lua script by SHA1 digest.",
|
|
1204
|
+
syntax: "EVALSHA_RO sha1 numkeys [key [key ...]] [arg [arg ...]]",
|
|
1205
|
+
parameters: [
|
|
1206
|
+
[11, 15],
|
|
1207
|
+
[16, 23],
|
|
1208
|
+
[24, 39],
|
|
1209
|
+
[40, 55]
|
|
1210
|
+
],
|
|
1211
|
+
tokens: []
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
name: "EXEC",
|
|
1215
|
+
arity: 1,
|
|
1216
|
+
group: "transactions",
|
|
1217
|
+
since: "1.2.0",
|
|
1218
|
+
summary: "Executes all commands in a transaction.",
|
|
1219
|
+
syntax: "EXEC",
|
|
1220
|
+
parameters: [],
|
|
1221
|
+
tokens: []
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
name: "EXISTS",
|
|
1225
|
+
arity: -2,
|
|
1226
|
+
group: "generic",
|
|
1227
|
+
since: "1.0.0",
|
|
1228
|
+
summary: "Determines whether one or more keys exist.",
|
|
1229
|
+
syntax: "EXISTS key [key ...]",
|
|
1230
|
+
parameters: [[7, 20]],
|
|
1231
|
+
tokens: []
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
name: "EXPIRE",
|
|
1235
|
+
arity: -3,
|
|
1236
|
+
group: "generic",
|
|
1237
|
+
since: "1.0.0",
|
|
1238
|
+
summary: "Sets the expiration time of a key in seconds.",
|
|
1239
|
+
syntax: "EXPIRE key seconds [NX | XX | GT | LT]",
|
|
1240
|
+
parameters: [
|
|
1241
|
+
[7, 10],
|
|
1242
|
+
[11, 18],
|
|
1243
|
+
[19, 38]
|
|
1244
|
+
],
|
|
1245
|
+
tokens: [
|
|
1246
|
+
"GT",
|
|
1247
|
+
"LT",
|
|
1248
|
+
"NX",
|
|
1249
|
+
"XX"
|
|
1250
|
+
]
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
name: "EXPIREAT",
|
|
1254
|
+
arity: -3,
|
|
1255
|
+
group: "generic",
|
|
1256
|
+
since: "1.2.0",
|
|
1257
|
+
summary: "Sets the expiration time of a key to a Unix timestamp.",
|
|
1258
|
+
syntax: "EXPIREAT key unix-time-seconds [NX | XX | GT | LT]",
|
|
1259
|
+
parameters: [
|
|
1260
|
+
[9, 12],
|
|
1261
|
+
[13, 30],
|
|
1262
|
+
[31, 50]
|
|
1263
|
+
],
|
|
1264
|
+
tokens: [
|
|
1265
|
+
"GT",
|
|
1266
|
+
"LT",
|
|
1267
|
+
"NX",
|
|
1268
|
+
"XX"
|
|
1269
|
+
]
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
name: "EXPIRETIME",
|
|
1273
|
+
arity: 2,
|
|
1274
|
+
group: "generic",
|
|
1275
|
+
since: "7.0.0",
|
|
1276
|
+
summary: "Returns the expiration time of a key as a Unix timestamp.",
|
|
1277
|
+
syntax: "EXPIRETIME key",
|
|
1278
|
+
parameters: [[11, 14]],
|
|
1279
|
+
tokens: []
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
name: "FAILOVER",
|
|
1283
|
+
arity: -1,
|
|
1284
|
+
group: "server",
|
|
1285
|
+
since: "6.2.0",
|
|
1286
|
+
summary: "Starts a coordinated failover from a server to one of its replicas.",
|
|
1287
|
+
syntax: "FAILOVER [TO host port [FORCE]] [ABORT] [TIMEOUT milliseconds]",
|
|
1288
|
+
parameters: [
|
|
1289
|
+
[9, 31],
|
|
1290
|
+
[32, 39],
|
|
1291
|
+
[40, 62]
|
|
1292
|
+
],
|
|
1293
|
+
tokens: [
|
|
1294
|
+
"ABORT",
|
|
1295
|
+
"FORCE",
|
|
1296
|
+
"TIMEOUT",
|
|
1297
|
+
"TO"
|
|
1298
|
+
]
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
name: "FCALL",
|
|
1302
|
+
arity: -3,
|
|
1303
|
+
group: "scripting",
|
|
1304
|
+
since: "7.0.0",
|
|
1305
|
+
summary: "Invokes a function.",
|
|
1306
|
+
syntax: "FCALL function numkeys [key [key ...]] [arg [arg ...]]",
|
|
1307
|
+
parameters: [
|
|
1308
|
+
[6, 14],
|
|
1309
|
+
[15, 22],
|
|
1310
|
+
[23, 38],
|
|
1311
|
+
[39, 54]
|
|
1312
|
+
],
|
|
1313
|
+
tokens: []
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
name: "FCALL_RO",
|
|
1317
|
+
arity: -3,
|
|
1318
|
+
group: "scripting",
|
|
1319
|
+
since: "7.0.0",
|
|
1320
|
+
summary: "Invokes a read-only function.",
|
|
1321
|
+
syntax: "FCALL_RO function numkeys [key [key ...]] [arg [arg ...]]",
|
|
1322
|
+
parameters: [
|
|
1323
|
+
[9, 17],
|
|
1324
|
+
[18, 25],
|
|
1325
|
+
[26, 41],
|
|
1326
|
+
[42, 57]
|
|
1327
|
+
],
|
|
1328
|
+
tokens: []
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
name: "FLUSHALL",
|
|
1332
|
+
arity: -1,
|
|
1333
|
+
group: "server",
|
|
1334
|
+
since: "1.0.0",
|
|
1335
|
+
summary: "Removes all keys from all databases.",
|
|
1336
|
+
syntax: "FLUSHALL [ASYNC | SYNC]",
|
|
1337
|
+
parameters: [[9, 23]],
|
|
1338
|
+
tokens: ["ASYNC", "SYNC"]
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
name: "FLUSHDB",
|
|
1342
|
+
arity: -1,
|
|
1343
|
+
group: "server",
|
|
1344
|
+
since: "1.0.0",
|
|
1345
|
+
summary: "Remove all keys from the current database.",
|
|
1346
|
+
syntax: "FLUSHDB [ASYNC | SYNC]",
|
|
1347
|
+
parameters: [[8, 22]],
|
|
1348
|
+
tokens: ["ASYNC", "SYNC"]
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
name: "FUNCTION",
|
|
1352
|
+
arity: -2,
|
|
1353
|
+
group: "scripting",
|
|
1354
|
+
since: "7.0.0",
|
|
1355
|
+
summary: "A container for function commands.",
|
|
1356
|
+
syntax: "FUNCTION",
|
|
1357
|
+
parameters: [],
|
|
1358
|
+
tokens: []
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
name: "FUNCTION DELETE",
|
|
1362
|
+
arity: 3,
|
|
1363
|
+
group: "scripting",
|
|
1364
|
+
since: "7.0.0",
|
|
1365
|
+
summary: "Deletes a library and its functions.",
|
|
1366
|
+
syntax: "FUNCTION DELETE library-name",
|
|
1367
|
+
parameters: [[16, 28]],
|
|
1368
|
+
tokens: []
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
name: "FUNCTION DUMP",
|
|
1372
|
+
arity: 2,
|
|
1373
|
+
group: "scripting",
|
|
1374
|
+
since: "7.0.0",
|
|
1375
|
+
summary: "Dumps all libraries into a serialized binary payload.",
|
|
1376
|
+
syntax: "FUNCTION DUMP",
|
|
1377
|
+
parameters: [],
|
|
1378
|
+
tokens: []
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
name: "FUNCTION FLUSH",
|
|
1382
|
+
arity: -2,
|
|
1383
|
+
group: "scripting",
|
|
1384
|
+
since: "7.0.0",
|
|
1385
|
+
summary: "Deletes all libraries and functions.",
|
|
1386
|
+
syntax: "FUNCTION FLUSH [ASYNC | SYNC]",
|
|
1387
|
+
parameters: [[15, 29]],
|
|
1388
|
+
tokens: ["ASYNC", "SYNC"]
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
name: "FUNCTION HELP",
|
|
1392
|
+
arity: 2,
|
|
1393
|
+
group: "scripting",
|
|
1394
|
+
since: "7.0.0",
|
|
1395
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
1396
|
+
syntax: "FUNCTION HELP",
|
|
1397
|
+
parameters: [],
|
|
1398
|
+
tokens: []
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
name: "FUNCTION KILL",
|
|
1402
|
+
arity: 2,
|
|
1403
|
+
group: "scripting",
|
|
1404
|
+
since: "7.0.0",
|
|
1405
|
+
summary: "Terminates a function during execution.",
|
|
1406
|
+
syntax: "FUNCTION KILL",
|
|
1407
|
+
parameters: [],
|
|
1408
|
+
tokens: []
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
name: "FUNCTION LIST",
|
|
1412
|
+
arity: -2,
|
|
1413
|
+
group: "scripting",
|
|
1414
|
+
since: "7.0.0",
|
|
1415
|
+
summary: "Returns information about all libraries.",
|
|
1416
|
+
syntax: "FUNCTION LIST [LIBRARYNAME library-name-pattern] [WITHCODE]",
|
|
1417
|
+
parameters: [[14, 48], [49, 59]],
|
|
1418
|
+
tokens: ["LIBRARYNAME", "WITHCODE"]
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
name: "FUNCTION LOAD",
|
|
1422
|
+
arity: -3,
|
|
1423
|
+
group: "scripting",
|
|
1424
|
+
since: "7.0.0",
|
|
1425
|
+
summary: "Creates a library.",
|
|
1426
|
+
syntax: "FUNCTION LOAD [REPLACE] function-code",
|
|
1427
|
+
parameters: [[14, 23], [24, 37]],
|
|
1428
|
+
tokens: ["REPLACE"]
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
name: "FUNCTION RESTORE",
|
|
1432
|
+
arity: -3,
|
|
1433
|
+
group: "scripting",
|
|
1434
|
+
since: "7.0.0",
|
|
1435
|
+
summary: "Restores all libraries from a payload.",
|
|
1436
|
+
syntax: "FUNCTION RESTORE serialized-value [FLUSH | APPEND | REPLACE]",
|
|
1437
|
+
parameters: [[17, 33], [34, 60]],
|
|
1438
|
+
tokens: [
|
|
1439
|
+
"APPEND",
|
|
1440
|
+
"FLUSH",
|
|
1441
|
+
"REPLACE"
|
|
1442
|
+
]
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
name: "FUNCTION STATS",
|
|
1446
|
+
arity: 2,
|
|
1447
|
+
group: "scripting",
|
|
1448
|
+
since: "7.0.0",
|
|
1449
|
+
summary: "Returns information about a function during execution.",
|
|
1450
|
+
syntax: "FUNCTION STATS",
|
|
1451
|
+
parameters: [],
|
|
1452
|
+
tokens: []
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
name: "GEOADD",
|
|
1456
|
+
arity: -5,
|
|
1457
|
+
group: "geo",
|
|
1458
|
+
since: "3.2.0",
|
|
1459
|
+
summary: "Adds one or more members to a geospatial index. The key is created if it doesn't exist.",
|
|
1460
|
+
syntax: "GEOADD key [NX | XX] [CH] longitude latitude member [longitude latitude member ...]",
|
|
1461
|
+
parameters: [
|
|
1462
|
+
[7, 10],
|
|
1463
|
+
[11, 20],
|
|
1464
|
+
[21, 25],
|
|
1465
|
+
[26, 83]
|
|
1466
|
+
],
|
|
1467
|
+
tokens: [
|
|
1468
|
+
"CH",
|
|
1469
|
+
"NX",
|
|
1470
|
+
"XX"
|
|
1471
|
+
]
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
name: "GEODIST",
|
|
1475
|
+
arity: -4,
|
|
1476
|
+
group: "geo",
|
|
1477
|
+
since: "3.2.0",
|
|
1478
|
+
summary: "Returns the distance between two members of a geospatial index.",
|
|
1479
|
+
syntax: "GEODIST key member1 member2 [M | KM | FT | MI]",
|
|
1480
|
+
parameters: [
|
|
1481
|
+
[8, 11],
|
|
1482
|
+
[12, 19],
|
|
1483
|
+
[20, 27],
|
|
1484
|
+
[28, 46]
|
|
1485
|
+
],
|
|
1486
|
+
tokens: [
|
|
1487
|
+
"FT",
|
|
1488
|
+
"KM",
|
|
1489
|
+
"M",
|
|
1490
|
+
"MI"
|
|
1491
|
+
]
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
name: "GEOHASH",
|
|
1495
|
+
arity: -2,
|
|
1496
|
+
group: "geo",
|
|
1497
|
+
since: "3.2.0",
|
|
1498
|
+
summary: "Returns members from a geospatial index as geohash strings.",
|
|
1499
|
+
syntax: "GEOHASH key [member [member ...]]",
|
|
1500
|
+
parameters: [[8, 11], [12, 33]],
|
|
1501
|
+
tokens: []
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
name: "GEOPOS",
|
|
1505
|
+
arity: -2,
|
|
1506
|
+
group: "geo",
|
|
1507
|
+
since: "3.2.0",
|
|
1508
|
+
summary: "Returns the longitude and latitude of members from a geospatial index.",
|
|
1509
|
+
syntax: "GEOPOS key [member [member ...]]",
|
|
1510
|
+
parameters: [[7, 10], [11, 32]],
|
|
1511
|
+
tokens: []
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
name: "GEORADIUS",
|
|
1515
|
+
arity: -6,
|
|
1516
|
+
group: "geo",
|
|
1517
|
+
since: "3.2.0",
|
|
1518
|
+
summary: "Queries a geospatial index for members within a distance from a coordinate, optionally stores the result.",
|
|
1519
|
+
syntax: "GEORADIUS key longitude latitude radius <M | KM | FT | MI> [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count [ANY]] [ASC | DESC] [STORE key | STOREDIST key]",
|
|
1520
|
+
parameters: [
|
|
1521
|
+
[10, 13],
|
|
1522
|
+
[14, 23],
|
|
1523
|
+
[24, 32],
|
|
1524
|
+
[33, 39],
|
|
1525
|
+
[40, 58],
|
|
1526
|
+
[59, 70],
|
|
1527
|
+
[71, 81],
|
|
1528
|
+
[82, 92],
|
|
1529
|
+
[93, 112],
|
|
1530
|
+
[113, 125],
|
|
1531
|
+
[126, 153]
|
|
1532
|
+
],
|
|
1533
|
+
tokens: [
|
|
1534
|
+
"ANY",
|
|
1535
|
+
"ASC",
|
|
1536
|
+
"COUNT",
|
|
1537
|
+
"DESC",
|
|
1538
|
+
"FT",
|
|
1539
|
+
"KM",
|
|
1540
|
+
"M",
|
|
1541
|
+
"MI",
|
|
1542
|
+
"STORE",
|
|
1543
|
+
"STOREDIST",
|
|
1544
|
+
"WITHCOORD",
|
|
1545
|
+
"WITHDIST",
|
|
1546
|
+
"WITHHASH"
|
|
1547
|
+
],
|
|
1548
|
+
deprecated: "6.2.0"
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
name: "GEORADIUS_RO",
|
|
1552
|
+
arity: -6,
|
|
1553
|
+
group: "geo",
|
|
1554
|
+
since: "3.2.10",
|
|
1555
|
+
summary: "Returns members from a geospatial index that are within a distance from a coordinate.",
|
|
1556
|
+
syntax: "GEORADIUS_RO key longitude latitude radius <M | KM | FT | MI> [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count [ANY]] [ASC | DESC]",
|
|
1557
|
+
parameters: [
|
|
1558
|
+
[13, 16],
|
|
1559
|
+
[17, 26],
|
|
1560
|
+
[27, 35],
|
|
1561
|
+
[36, 42],
|
|
1562
|
+
[43, 61],
|
|
1563
|
+
[62, 73],
|
|
1564
|
+
[74, 84],
|
|
1565
|
+
[85, 95],
|
|
1566
|
+
[96, 115],
|
|
1567
|
+
[116, 128]
|
|
1568
|
+
],
|
|
1569
|
+
tokens: [
|
|
1570
|
+
"ANY",
|
|
1571
|
+
"ASC",
|
|
1572
|
+
"COUNT",
|
|
1573
|
+
"DESC",
|
|
1574
|
+
"FT",
|
|
1575
|
+
"KM",
|
|
1576
|
+
"M",
|
|
1577
|
+
"MI",
|
|
1578
|
+
"WITHCOORD",
|
|
1579
|
+
"WITHDIST",
|
|
1580
|
+
"WITHHASH"
|
|
1581
|
+
],
|
|
1582
|
+
deprecated: "6.2.0"
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
name: "GEORADIUSBYMEMBER",
|
|
1586
|
+
arity: -5,
|
|
1587
|
+
group: "geo",
|
|
1588
|
+
since: "3.2.0",
|
|
1589
|
+
summary: "Queries a geospatial index for members within a distance from a member, optionally stores the result.",
|
|
1590
|
+
syntax: "GEORADIUSBYMEMBER key member radius <M | KM | FT | MI> [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count [ANY]] [ASC | DESC] [STORE key | STOREDIST key]",
|
|
1591
|
+
parameters: [
|
|
1592
|
+
[18, 21],
|
|
1593
|
+
[22, 28],
|
|
1594
|
+
[29, 35],
|
|
1595
|
+
[36, 54],
|
|
1596
|
+
[55, 66],
|
|
1597
|
+
[67, 77],
|
|
1598
|
+
[78, 88],
|
|
1599
|
+
[89, 108],
|
|
1600
|
+
[109, 121],
|
|
1601
|
+
[122, 149]
|
|
1602
|
+
],
|
|
1603
|
+
tokens: [
|
|
1604
|
+
"ANY",
|
|
1605
|
+
"ASC",
|
|
1606
|
+
"COUNT",
|
|
1607
|
+
"DESC",
|
|
1608
|
+
"FT",
|
|
1609
|
+
"KM",
|
|
1610
|
+
"M",
|
|
1611
|
+
"MI",
|
|
1612
|
+
"STORE",
|
|
1613
|
+
"STOREDIST",
|
|
1614
|
+
"WITHCOORD",
|
|
1615
|
+
"WITHDIST",
|
|
1616
|
+
"WITHHASH"
|
|
1617
|
+
],
|
|
1618
|
+
deprecated: "6.2.0"
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
name: "GEORADIUSBYMEMBER_RO",
|
|
1622
|
+
arity: -5,
|
|
1623
|
+
group: "geo",
|
|
1624
|
+
since: "3.2.10",
|
|
1625
|
+
summary: "Returns members from a geospatial index that are within a distance from a member.",
|
|
1626
|
+
syntax: "GEORADIUSBYMEMBER_RO key member radius <M | KM | FT | MI> [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count [ANY]] [ASC | DESC]",
|
|
1627
|
+
parameters: [
|
|
1628
|
+
[21, 24],
|
|
1629
|
+
[25, 31],
|
|
1630
|
+
[32, 38],
|
|
1631
|
+
[39, 57],
|
|
1632
|
+
[58, 69],
|
|
1633
|
+
[70, 80],
|
|
1634
|
+
[81, 91],
|
|
1635
|
+
[92, 111],
|
|
1636
|
+
[112, 124]
|
|
1637
|
+
],
|
|
1638
|
+
tokens: [
|
|
1639
|
+
"ANY",
|
|
1640
|
+
"ASC",
|
|
1641
|
+
"COUNT",
|
|
1642
|
+
"DESC",
|
|
1643
|
+
"FT",
|
|
1644
|
+
"KM",
|
|
1645
|
+
"M",
|
|
1646
|
+
"MI",
|
|
1647
|
+
"WITHCOORD",
|
|
1648
|
+
"WITHDIST",
|
|
1649
|
+
"WITHHASH"
|
|
1650
|
+
],
|
|
1651
|
+
deprecated: "6.2.0"
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
name: "GEOSEARCH",
|
|
1655
|
+
arity: -7,
|
|
1656
|
+
group: "geo",
|
|
1657
|
+
since: "6.2.0",
|
|
1658
|
+
summary: "Queries a geospatial index for members inside an area of a box or a circle.",
|
|
1659
|
+
syntax: "GEOSEARCH key <FROMMEMBER member | FROMLONLAT longitude latitude> <BYRADIUS radius <M | KM | FT | MI> | BYBOX width height <M | KM | FT | MI>> [ASC | DESC] [COUNT count [ANY]] [WITHCOORD] [WITHDIST] [WITHHASH]",
|
|
1660
|
+
parameters: [
|
|
1661
|
+
[10, 13],
|
|
1662
|
+
[14, 65],
|
|
1663
|
+
[66, 142],
|
|
1664
|
+
[143, 155],
|
|
1665
|
+
[156, 175],
|
|
1666
|
+
[176, 187],
|
|
1667
|
+
[188, 198],
|
|
1668
|
+
[199, 209]
|
|
1669
|
+
],
|
|
1670
|
+
tokens: [
|
|
1671
|
+
"ANY",
|
|
1672
|
+
"ASC",
|
|
1673
|
+
"BYBOX",
|
|
1674
|
+
"BYRADIUS",
|
|
1675
|
+
"COUNT",
|
|
1676
|
+
"DESC",
|
|
1677
|
+
"FROMLONLAT",
|
|
1678
|
+
"FROMMEMBER",
|
|
1679
|
+
"FT",
|
|
1680
|
+
"KM",
|
|
1681
|
+
"M",
|
|
1682
|
+
"MI",
|
|
1683
|
+
"WITHCOORD",
|
|
1684
|
+
"WITHDIST",
|
|
1685
|
+
"WITHHASH"
|
|
1686
|
+
]
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
name: "GEOSEARCHSTORE",
|
|
1690
|
+
arity: -8,
|
|
1691
|
+
group: "geo",
|
|
1692
|
+
since: "6.2.0",
|
|
1693
|
+
summary: "Queries a geospatial index for members inside an area of a box or a circle, optionally stores the result.",
|
|
1694
|
+
syntax: "GEOSEARCHSTORE destination source <FROMMEMBER member | FROMLONLAT longitude latitude> <BYRADIUS radius <M | KM | FT | MI> | BYBOX width height <M | KM | FT | MI>> [ASC | DESC] [COUNT count [ANY]] [STOREDIST]",
|
|
1695
|
+
parameters: [
|
|
1696
|
+
[15, 26],
|
|
1697
|
+
[27, 33],
|
|
1698
|
+
[34, 85],
|
|
1699
|
+
[86, 162],
|
|
1700
|
+
[163, 175],
|
|
1701
|
+
[176, 195],
|
|
1702
|
+
[196, 207]
|
|
1703
|
+
],
|
|
1704
|
+
tokens: [
|
|
1705
|
+
"ANY",
|
|
1706
|
+
"ASC",
|
|
1707
|
+
"BYBOX",
|
|
1708
|
+
"BYRADIUS",
|
|
1709
|
+
"COUNT",
|
|
1710
|
+
"DESC",
|
|
1711
|
+
"FROMLONLAT",
|
|
1712
|
+
"FROMMEMBER",
|
|
1713
|
+
"FT",
|
|
1714
|
+
"KM",
|
|
1715
|
+
"M",
|
|
1716
|
+
"MI",
|
|
1717
|
+
"STOREDIST"
|
|
1718
|
+
]
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
name: "GET",
|
|
1722
|
+
arity: 2,
|
|
1723
|
+
group: "string",
|
|
1724
|
+
since: "1.0.0",
|
|
1725
|
+
summary: "Returns the string value of a key.",
|
|
1726
|
+
syntax: "GET key",
|
|
1727
|
+
parameters: [[4, 7]],
|
|
1728
|
+
tokens: []
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
name: "GETBIT",
|
|
1732
|
+
arity: 3,
|
|
1733
|
+
group: "bitmap",
|
|
1734
|
+
since: "2.2.0",
|
|
1735
|
+
summary: "Returns a bit value by offset.",
|
|
1736
|
+
syntax: "GETBIT key offset",
|
|
1737
|
+
parameters: [[7, 10], [11, 17]],
|
|
1738
|
+
tokens: []
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
name: "GETDEL",
|
|
1742
|
+
arity: 2,
|
|
1743
|
+
group: "string",
|
|
1744
|
+
since: "6.2.0",
|
|
1745
|
+
summary: "Returns the string value of a key after deleting the key.",
|
|
1746
|
+
syntax: "GETDEL key",
|
|
1747
|
+
parameters: [[7, 10]],
|
|
1748
|
+
tokens: []
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
name: "GETEX",
|
|
1752
|
+
arity: -2,
|
|
1753
|
+
group: "string",
|
|
1754
|
+
since: "6.2.0",
|
|
1755
|
+
summary: "Returns the string value of a key after setting its expiration time.",
|
|
1756
|
+
syntax: "GETEX key [EX seconds | PX milliseconds | EXAT unix-time-seconds | PXAT unix-time-milliseconds | PERSIST]",
|
|
1757
|
+
parameters: [[6, 9], [10, 105]],
|
|
1758
|
+
tokens: [
|
|
1759
|
+
"EX",
|
|
1760
|
+
"EXAT",
|
|
1761
|
+
"PERSIST",
|
|
1762
|
+
"PX",
|
|
1763
|
+
"PXAT"
|
|
1764
|
+
]
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
name: "GETRANGE",
|
|
1768
|
+
arity: 4,
|
|
1769
|
+
group: "string",
|
|
1770
|
+
since: "2.4.0",
|
|
1771
|
+
summary: "Returns a substring of the string stored at a key.",
|
|
1772
|
+
syntax: "GETRANGE key start end",
|
|
1773
|
+
parameters: [
|
|
1774
|
+
[9, 12],
|
|
1775
|
+
[13, 18],
|
|
1776
|
+
[19, 22]
|
|
1777
|
+
],
|
|
1778
|
+
tokens: []
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
name: "GETSET",
|
|
1782
|
+
arity: 3,
|
|
1783
|
+
group: "string",
|
|
1784
|
+
since: "1.0.0",
|
|
1785
|
+
summary: "Returns the previous string value of a key after setting it to a new value.",
|
|
1786
|
+
syntax: "GETSET key value",
|
|
1787
|
+
parameters: [[7, 10], [11, 16]],
|
|
1788
|
+
tokens: [],
|
|
1789
|
+
deprecated: "6.2.0"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
name: "HDEL",
|
|
1793
|
+
arity: -3,
|
|
1794
|
+
group: "hash",
|
|
1795
|
+
since: "2.0.0",
|
|
1796
|
+
summary: "Deletes one or more fields and their values from a hash. Deletes the hash if no fields remain.",
|
|
1797
|
+
syntax: "HDEL key field [field ...]",
|
|
1798
|
+
parameters: [[5, 8], [9, 26]],
|
|
1799
|
+
tokens: []
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
name: "HELLO",
|
|
1803
|
+
arity: -1,
|
|
1804
|
+
group: "connection",
|
|
1805
|
+
since: "6.0.0",
|
|
1806
|
+
summary: "Handshakes with the Redis server.",
|
|
1807
|
+
syntax: "HELLO [protover [AUTH username password] [SETNAME clientname]]",
|
|
1808
|
+
parameters: [[6, 62]],
|
|
1809
|
+
tokens: ["AUTH", "SETNAME"]
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
name: "HEXISTS",
|
|
1813
|
+
arity: 3,
|
|
1814
|
+
group: "hash",
|
|
1815
|
+
since: "2.0.0",
|
|
1816
|
+
summary: "Determines whether a field exists in a hash.",
|
|
1817
|
+
syntax: "HEXISTS key field",
|
|
1818
|
+
parameters: [[8, 11], [12, 17]],
|
|
1819
|
+
tokens: []
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
name: "HGET",
|
|
1823
|
+
arity: 3,
|
|
1824
|
+
group: "hash",
|
|
1825
|
+
since: "2.0.0",
|
|
1826
|
+
summary: "Returns the value of a field in a hash.",
|
|
1827
|
+
syntax: "HGET key field",
|
|
1828
|
+
parameters: [[5, 8], [9, 14]],
|
|
1829
|
+
tokens: []
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
name: "HGETALL",
|
|
1833
|
+
arity: 2,
|
|
1834
|
+
group: "hash",
|
|
1835
|
+
since: "2.0.0",
|
|
1836
|
+
summary: "Returns all fields and values in a hash.",
|
|
1837
|
+
syntax: "HGETALL key",
|
|
1838
|
+
parameters: [[8, 11]],
|
|
1839
|
+
tokens: []
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
name: "HINCRBY",
|
|
1843
|
+
arity: 4,
|
|
1844
|
+
group: "hash",
|
|
1845
|
+
since: "2.0.0",
|
|
1846
|
+
summary: "Increments the integer value of a field in a hash by a number. Uses 0 as initial value if the field doesn't exist.",
|
|
1847
|
+
syntax: "HINCRBY key field increment",
|
|
1848
|
+
parameters: [
|
|
1849
|
+
[8, 11],
|
|
1850
|
+
[12, 17],
|
|
1851
|
+
[18, 27]
|
|
1852
|
+
],
|
|
1853
|
+
tokens: []
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
name: "HINCRBYFLOAT",
|
|
1857
|
+
arity: 4,
|
|
1858
|
+
group: "hash",
|
|
1859
|
+
since: "2.6.0",
|
|
1860
|
+
summary: "Increments the floating point value of a field by a number. Uses 0 as initial value if the field doesn't exist.",
|
|
1861
|
+
syntax: "HINCRBYFLOAT key field increment",
|
|
1862
|
+
parameters: [
|
|
1863
|
+
[13, 16],
|
|
1864
|
+
[17, 22],
|
|
1865
|
+
[23, 32]
|
|
1866
|
+
],
|
|
1867
|
+
tokens: []
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
name: "HKEYS",
|
|
1871
|
+
arity: 2,
|
|
1872
|
+
group: "hash",
|
|
1873
|
+
since: "2.0.0",
|
|
1874
|
+
summary: "Returns all fields in a hash.",
|
|
1875
|
+
syntax: "HKEYS key",
|
|
1876
|
+
parameters: [[6, 9]],
|
|
1877
|
+
tokens: []
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
name: "HLEN",
|
|
1881
|
+
arity: 2,
|
|
1882
|
+
group: "hash",
|
|
1883
|
+
since: "2.0.0",
|
|
1884
|
+
summary: "Returns the number of fields in a hash.",
|
|
1885
|
+
syntax: "HLEN key",
|
|
1886
|
+
parameters: [[5, 8]],
|
|
1887
|
+
tokens: []
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
name: "HMGET",
|
|
1891
|
+
arity: -3,
|
|
1892
|
+
group: "hash",
|
|
1893
|
+
since: "2.0.0",
|
|
1894
|
+
summary: "Returns the values of all fields in a hash.",
|
|
1895
|
+
syntax: "HMGET key field [field ...]",
|
|
1896
|
+
parameters: [[6, 9], [10, 27]],
|
|
1897
|
+
tokens: []
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
name: "HMSET",
|
|
1901
|
+
arity: -4,
|
|
1902
|
+
group: "hash",
|
|
1903
|
+
since: "2.0.0",
|
|
1904
|
+
summary: "Sets the values of multiple fields.",
|
|
1905
|
+
syntax: "HMSET key field value [field value ...]",
|
|
1906
|
+
parameters: [[6, 9], [10, 39]],
|
|
1907
|
+
tokens: [],
|
|
1908
|
+
deprecated: "4.0.0"
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
name: "HRANDFIELD",
|
|
1912
|
+
arity: -2,
|
|
1913
|
+
group: "hash",
|
|
1914
|
+
since: "6.2.0",
|
|
1915
|
+
summary: "Returns one or more random fields from a hash.",
|
|
1916
|
+
syntax: "HRANDFIELD key [count [WITHVALUES]]",
|
|
1917
|
+
parameters: [[11, 14], [15, 35]],
|
|
1918
|
+
tokens: ["WITHVALUES"]
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
name: "HSCAN",
|
|
1922
|
+
arity: -3,
|
|
1923
|
+
group: "hash",
|
|
1924
|
+
since: "2.8.0",
|
|
1925
|
+
summary: "Iterates over fields and values of a hash.",
|
|
1926
|
+
syntax: "HSCAN key cursor [MATCH pattern] [COUNT count]",
|
|
1927
|
+
parameters: [
|
|
1928
|
+
[6, 9],
|
|
1929
|
+
[10, 16],
|
|
1930
|
+
[17, 32],
|
|
1931
|
+
[33, 46]
|
|
1932
|
+
],
|
|
1933
|
+
tokens: ["COUNT", "MATCH"]
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
name: "HSET",
|
|
1937
|
+
arity: -4,
|
|
1938
|
+
group: "hash",
|
|
1939
|
+
since: "2.0.0",
|
|
1940
|
+
summary: "Creates or modifies the value of a field in a hash.",
|
|
1941
|
+
syntax: "HSET key field value [field value ...]",
|
|
1942
|
+
parameters: [[5, 8], [9, 38]],
|
|
1943
|
+
tokens: []
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
name: "HSETNX",
|
|
1947
|
+
arity: 4,
|
|
1948
|
+
group: "hash",
|
|
1949
|
+
since: "2.0.0",
|
|
1950
|
+
summary: "Sets the value of a field in a hash only when the field doesn't exist.",
|
|
1951
|
+
syntax: "HSETNX key field value",
|
|
1952
|
+
parameters: [
|
|
1953
|
+
[7, 10],
|
|
1954
|
+
[11, 16],
|
|
1955
|
+
[17, 22]
|
|
1956
|
+
],
|
|
1957
|
+
tokens: []
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
name: "HSTRLEN",
|
|
1961
|
+
arity: 3,
|
|
1962
|
+
group: "hash",
|
|
1963
|
+
since: "3.2.0",
|
|
1964
|
+
summary: "Returns the length of the value of a field.",
|
|
1965
|
+
syntax: "HSTRLEN key field",
|
|
1966
|
+
parameters: [[8, 11], [12, 17]],
|
|
1967
|
+
tokens: []
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
name: "HVALS",
|
|
1971
|
+
arity: 2,
|
|
1972
|
+
group: "hash",
|
|
1973
|
+
since: "2.0.0",
|
|
1974
|
+
summary: "Returns all values in a hash.",
|
|
1975
|
+
syntax: "HVALS key",
|
|
1976
|
+
parameters: [[6, 9]],
|
|
1977
|
+
tokens: []
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
name: "INCR",
|
|
1981
|
+
arity: 2,
|
|
1982
|
+
group: "string",
|
|
1983
|
+
since: "1.0.0",
|
|
1984
|
+
summary: "Increments the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.",
|
|
1985
|
+
syntax: "INCR key",
|
|
1986
|
+
parameters: [[5, 8]],
|
|
1987
|
+
tokens: []
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
name: "INCRBY",
|
|
1991
|
+
arity: 3,
|
|
1992
|
+
group: "string",
|
|
1993
|
+
since: "1.0.0",
|
|
1994
|
+
summary: "Increments the integer value of a key by a number. Uses 0 as initial value if the key doesn't exist.",
|
|
1995
|
+
syntax: "INCRBY key increment",
|
|
1996
|
+
parameters: [[7, 10], [11, 20]],
|
|
1997
|
+
tokens: []
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
name: "INCRBYFLOAT",
|
|
2001
|
+
arity: 3,
|
|
2002
|
+
group: "string",
|
|
2003
|
+
since: "2.6.0",
|
|
2004
|
+
summary: "Increment the floating point value of a key by a number. Uses 0 as initial value if the key doesn't exist.",
|
|
2005
|
+
syntax: "INCRBYFLOAT key increment",
|
|
2006
|
+
parameters: [[12, 15], [16, 25]],
|
|
2007
|
+
tokens: []
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
name: "INFO",
|
|
2011
|
+
arity: -1,
|
|
2012
|
+
group: "server",
|
|
2013
|
+
since: "1.0.0",
|
|
2014
|
+
summary: "Returns information and statistics about the server.",
|
|
2015
|
+
syntax: "INFO [section [section ...]]",
|
|
2016
|
+
parameters: [[5, 28]],
|
|
2017
|
+
tokens: []
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
name: "KEYS",
|
|
2021
|
+
arity: 2,
|
|
2022
|
+
group: "generic",
|
|
2023
|
+
since: "1.0.0",
|
|
2024
|
+
summary: "Returns all key names that match a pattern.",
|
|
2025
|
+
syntax: "KEYS pattern",
|
|
2026
|
+
parameters: [[5, 12]],
|
|
2027
|
+
tokens: []
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
name: "LASTSAVE",
|
|
2031
|
+
arity: 1,
|
|
2032
|
+
group: "server",
|
|
2033
|
+
since: "1.0.0",
|
|
2034
|
+
summary: "Returns the Unix timestamp of the last successful save to disk.",
|
|
2035
|
+
syntax: "LASTSAVE",
|
|
2036
|
+
parameters: [],
|
|
2037
|
+
tokens: []
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
name: "LATENCY",
|
|
2041
|
+
arity: -2,
|
|
2042
|
+
group: "server",
|
|
2043
|
+
since: "2.8.13",
|
|
2044
|
+
summary: "A container for latency diagnostics commands.",
|
|
2045
|
+
syntax: "LATENCY",
|
|
2046
|
+
parameters: [],
|
|
2047
|
+
tokens: []
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
name: "LATENCY DOCTOR",
|
|
2051
|
+
arity: 2,
|
|
2052
|
+
group: "server",
|
|
2053
|
+
since: "2.8.13",
|
|
2054
|
+
summary: "Returns a human-readable latency analysis report.",
|
|
2055
|
+
syntax: "LATENCY DOCTOR",
|
|
2056
|
+
parameters: [],
|
|
2057
|
+
tokens: []
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
name: "LATENCY GRAPH",
|
|
2061
|
+
arity: 3,
|
|
2062
|
+
group: "server",
|
|
2063
|
+
since: "2.8.13",
|
|
2064
|
+
summary: "Returns a latency graph for an event.",
|
|
2065
|
+
syntax: "LATENCY GRAPH event",
|
|
2066
|
+
parameters: [[14, 19]],
|
|
2067
|
+
tokens: []
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
name: "LATENCY HELP",
|
|
2071
|
+
arity: 2,
|
|
2072
|
+
group: "server",
|
|
2073
|
+
since: "2.8.13",
|
|
2074
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
2075
|
+
syntax: "LATENCY HELP",
|
|
2076
|
+
parameters: [],
|
|
2077
|
+
tokens: []
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
name: "LATENCY HISTOGRAM",
|
|
2081
|
+
arity: -2,
|
|
2082
|
+
group: "server",
|
|
2083
|
+
since: "7.0.0",
|
|
2084
|
+
summary: "Returns the cumulative distribution of latencies of a subset or all commands.",
|
|
2085
|
+
syntax: "LATENCY HISTOGRAM [command [command ...]]",
|
|
2086
|
+
parameters: [[18, 41]],
|
|
2087
|
+
tokens: []
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
name: "LATENCY HISTORY",
|
|
2091
|
+
arity: 3,
|
|
2092
|
+
group: "server",
|
|
2093
|
+
since: "2.8.13",
|
|
2094
|
+
summary: "Returns timestamp-latency samples for an event.",
|
|
2095
|
+
syntax: "LATENCY HISTORY event",
|
|
2096
|
+
parameters: [[16, 21]],
|
|
2097
|
+
tokens: []
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
name: "LATENCY LATEST",
|
|
2101
|
+
arity: 2,
|
|
2102
|
+
group: "server",
|
|
2103
|
+
since: "2.8.13",
|
|
2104
|
+
summary: "Returns the latest latency samples for all events.",
|
|
2105
|
+
syntax: "LATENCY LATEST",
|
|
2106
|
+
parameters: [],
|
|
2107
|
+
tokens: []
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
name: "LATENCY RESET",
|
|
2111
|
+
arity: -2,
|
|
2112
|
+
group: "server",
|
|
2113
|
+
since: "2.8.13",
|
|
2114
|
+
summary: "Resets the latency data for one or more events.",
|
|
2115
|
+
syntax: "LATENCY RESET [event [event ...]]",
|
|
2116
|
+
parameters: [[14, 33]],
|
|
2117
|
+
tokens: []
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
name: "LCS",
|
|
2121
|
+
arity: -3,
|
|
2122
|
+
group: "string",
|
|
2123
|
+
since: "7.0.0",
|
|
2124
|
+
summary: "Finds the longest common substring.",
|
|
2125
|
+
syntax: "LCS key1 key2 [LEN] [IDX] [MINMATCHLEN min-match-len] [WITHMATCHLEN]",
|
|
2126
|
+
parameters: [
|
|
2127
|
+
[4, 8],
|
|
2128
|
+
[9, 13],
|
|
2129
|
+
[14, 19],
|
|
2130
|
+
[20, 25],
|
|
2131
|
+
[26, 53],
|
|
2132
|
+
[54, 68]
|
|
2133
|
+
],
|
|
2134
|
+
tokens: [
|
|
2135
|
+
"IDX",
|
|
2136
|
+
"LEN",
|
|
2137
|
+
"MINMATCHLEN",
|
|
2138
|
+
"WITHMATCHLEN"
|
|
2139
|
+
]
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
name: "LINDEX",
|
|
2143
|
+
arity: 3,
|
|
2144
|
+
group: "list",
|
|
2145
|
+
since: "1.0.0",
|
|
2146
|
+
summary: "Returns an element from a list by its index.",
|
|
2147
|
+
syntax: "LINDEX key index",
|
|
2148
|
+
parameters: [[7, 10], [11, 16]],
|
|
2149
|
+
tokens: []
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
name: "LINSERT",
|
|
2153
|
+
arity: 5,
|
|
2154
|
+
group: "list",
|
|
2155
|
+
since: "2.2.0",
|
|
2156
|
+
summary: "Inserts an element before or after another element in a list.",
|
|
2157
|
+
syntax: "LINSERT key <BEFORE | AFTER> pivot element",
|
|
2158
|
+
parameters: [
|
|
2159
|
+
[8, 11],
|
|
2160
|
+
[12, 28],
|
|
2161
|
+
[29, 34],
|
|
2162
|
+
[35, 42]
|
|
2163
|
+
],
|
|
2164
|
+
tokens: ["AFTER", "BEFORE"]
|
|
2165
|
+
},
|
|
2166
|
+
{
|
|
2167
|
+
name: "LLEN",
|
|
2168
|
+
arity: 2,
|
|
2169
|
+
group: "list",
|
|
2170
|
+
since: "1.0.0",
|
|
2171
|
+
summary: "Returns the length of a list.",
|
|
2172
|
+
syntax: "LLEN key",
|
|
2173
|
+
parameters: [[5, 8]],
|
|
2174
|
+
tokens: []
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
name: "LMOVE",
|
|
2178
|
+
arity: 5,
|
|
2179
|
+
group: "list",
|
|
2180
|
+
since: "6.2.0",
|
|
2181
|
+
summary: "Returns an element after popping it from one list and pushing it to another. Deletes the list if the last element was moved.",
|
|
2182
|
+
syntax: "LMOVE source destination <LEFT | RIGHT> <LEFT | RIGHT>",
|
|
2183
|
+
parameters: [
|
|
2184
|
+
[6, 12],
|
|
2185
|
+
[13, 24],
|
|
2186
|
+
[25, 39],
|
|
2187
|
+
[40, 54]
|
|
2188
|
+
],
|
|
2189
|
+
tokens: ["LEFT", "RIGHT"]
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
name: "LMPOP",
|
|
2193
|
+
arity: -4,
|
|
2194
|
+
group: "list",
|
|
2195
|
+
since: "7.0.0",
|
|
2196
|
+
summary: "Returns multiple elements from a list after removing them. Deletes the list if the last element was popped.",
|
|
2197
|
+
syntax: "LMPOP numkeys key [key ...] <LEFT | RIGHT> [COUNT count]",
|
|
2198
|
+
parameters: [
|
|
2199
|
+
[6, 13],
|
|
2200
|
+
[14, 27],
|
|
2201
|
+
[28, 42],
|
|
2202
|
+
[43, 56]
|
|
2203
|
+
],
|
|
2204
|
+
tokens: [
|
|
2205
|
+
"COUNT",
|
|
2206
|
+
"LEFT",
|
|
2207
|
+
"RIGHT"
|
|
2208
|
+
]
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
name: "LOLWUT",
|
|
2212
|
+
arity: -1,
|
|
2213
|
+
group: "server",
|
|
2214
|
+
since: "5.0.0",
|
|
2215
|
+
summary: "Displays computer art and the Redis version",
|
|
2216
|
+
syntax: "LOLWUT [VERSION version]",
|
|
2217
|
+
parameters: [[7, 24]],
|
|
2218
|
+
tokens: ["VERSION"]
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
name: "LPOP",
|
|
2222
|
+
arity: -2,
|
|
2223
|
+
group: "list",
|
|
2224
|
+
since: "1.0.0",
|
|
2225
|
+
summary: "Returns the first elements in a list after removing it. Deletes the list if the last element was popped.",
|
|
2226
|
+
syntax: "LPOP key [count]",
|
|
2227
|
+
parameters: [[5, 8], [9, 16]],
|
|
2228
|
+
tokens: []
|
|
2229
|
+
},
|
|
2230
|
+
{
|
|
2231
|
+
name: "LPOS",
|
|
2232
|
+
arity: -3,
|
|
2233
|
+
group: "list",
|
|
2234
|
+
since: "6.0.6",
|
|
2235
|
+
summary: "Returns the index of matching elements in a list.",
|
|
2236
|
+
syntax: "LPOS key element [RANK rank] [COUNT num-matches] [MAXLEN len]",
|
|
2237
|
+
parameters: [
|
|
2238
|
+
[5, 8],
|
|
2239
|
+
[9, 16],
|
|
2240
|
+
[17, 28],
|
|
2241
|
+
[29, 48],
|
|
2242
|
+
[49, 61]
|
|
2243
|
+
],
|
|
2244
|
+
tokens: [
|
|
2245
|
+
"COUNT",
|
|
2246
|
+
"MAXLEN",
|
|
2247
|
+
"RANK"
|
|
2248
|
+
]
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
name: "LPUSH",
|
|
2252
|
+
arity: -3,
|
|
2253
|
+
group: "list",
|
|
2254
|
+
since: "1.0.0",
|
|
2255
|
+
summary: "Prepends one or more elements to a list. Creates the key if it doesn't exist.",
|
|
2256
|
+
syntax: "LPUSH key element [element ...]",
|
|
2257
|
+
parameters: [[6, 9], [10, 31]],
|
|
2258
|
+
tokens: []
|
|
2259
|
+
},
|
|
2260
|
+
{
|
|
2261
|
+
name: "LPUSHX",
|
|
2262
|
+
arity: -3,
|
|
2263
|
+
group: "list",
|
|
2264
|
+
since: "2.2.0",
|
|
2265
|
+
summary: "Prepends one or more elements to a list only when the list exists.",
|
|
2266
|
+
syntax: "LPUSHX key element [element ...]",
|
|
2267
|
+
parameters: [[7, 10], [11, 32]],
|
|
2268
|
+
tokens: []
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
name: "LRANGE",
|
|
2272
|
+
arity: 4,
|
|
2273
|
+
group: "list",
|
|
2274
|
+
since: "1.0.0",
|
|
2275
|
+
summary: "Returns a range of elements from a list.",
|
|
2276
|
+
syntax: "LRANGE key start stop",
|
|
2277
|
+
parameters: [
|
|
2278
|
+
[7, 10],
|
|
2279
|
+
[11, 16],
|
|
2280
|
+
[17, 21]
|
|
2281
|
+
],
|
|
2282
|
+
tokens: []
|
|
2283
|
+
},
|
|
2284
|
+
{
|
|
2285
|
+
name: "LREM",
|
|
2286
|
+
arity: 4,
|
|
2287
|
+
group: "list",
|
|
2288
|
+
since: "1.0.0",
|
|
2289
|
+
summary: "Removes elements from a list. Deletes the list if the last element was removed.",
|
|
2290
|
+
syntax: "LREM key count element",
|
|
2291
|
+
parameters: [
|
|
2292
|
+
[5, 8],
|
|
2293
|
+
[9, 14],
|
|
2294
|
+
[15, 22]
|
|
2295
|
+
],
|
|
2296
|
+
tokens: []
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
name: "LSET",
|
|
2300
|
+
arity: 4,
|
|
2301
|
+
group: "list",
|
|
2302
|
+
since: "1.0.0",
|
|
2303
|
+
summary: "Sets the value of an element in a list by its index.",
|
|
2304
|
+
syntax: "LSET key index element",
|
|
2305
|
+
parameters: [
|
|
2306
|
+
[5, 8],
|
|
2307
|
+
[9, 14],
|
|
2308
|
+
[15, 22]
|
|
2309
|
+
],
|
|
2310
|
+
tokens: []
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
name: "LTRIM",
|
|
2314
|
+
arity: 4,
|
|
2315
|
+
group: "list",
|
|
2316
|
+
since: "1.0.0",
|
|
2317
|
+
summary: "Removes elements from both ends a list. Deletes the list if all elements were trimmed.",
|
|
2318
|
+
syntax: "LTRIM key start stop",
|
|
2319
|
+
parameters: [
|
|
2320
|
+
[6, 9],
|
|
2321
|
+
[10, 15],
|
|
2322
|
+
[16, 20]
|
|
2323
|
+
],
|
|
2324
|
+
tokens: []
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
name: "MEMORY",
|
|
2328
|
+
arity: -2,
|
|
2329
|
+
group: "server",
|
|
2330
|
+
since: "4.0.0",
|
|
2331
|
+
summary: "A container for memory diagnostics commands.",
|
|
2332
|
+
syntax: "MEMORY",
|
|
2333
|
+
parameters: [],
|
|
2334
|
+
tokens: []
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
name: "MEMORY DOCTOR",
|
|
2338
|
+
arity: 2,
|
|
2339
|
+
group: "server",
|
|
2340
|
+
since: "4.0.0",
|
|
2341
|
+
summary: "Outputs a memory problems report.",
|
|
2342
|
+
syntax: "MEMORY DOCTOR",
|
|
2343
|
+
parameters: [],
|
|
2344
|
+
tokens: []
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
name: "MEMORY HELP",
|
|
2348
|
+
arity: 2,
|
|
2349
|
+
group: "server",
|
|
2350
|
+
since: "4.0.0",
|
|
2351
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
2352
|
+
syntax: "MEMORY HELP",
|
|
2353
|
+
parameters: [],
|
|
2354
|
+
tokens: []
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
name: "MEMORY MALLOC-STATS",
|
|
2358
|
+
arity: 2,
|
|
2359
|
+
group: "server",
|
|
2360
|
+
since: "4.0.0",
|
|
2361
|
+
summary: "Returns the allocator statistics.",
|
|
2362
|
+
syntax: "MEMORY MALLOC-STATS",
|
|
2363
|
+
parameters: [],
|
|
2364
|
+
tokens: []
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
name: "MEMORY PURGE",
|
|
2368
|
+
arity: 2,
|
|
2369
|
+
group: "server",
|
|
2370
|
+
since: "4.0.0",
|
|
2371
|
+
summary: "Asks the allocator to release memory.",
|
|
2372
|
+
syntax: "MEMORY PURGE",
|
|
2373
|
+
parameters: [],
|
|
2374
|
+
tokens: []
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
name: "MEMORY STATS",
|
|
2378
|
+
arity: 2,
|
|
2379
|
+
group: "server",
|
|
2380
|
+
since: "4.0.0",
|
|
2381
|
+
summary: "Returns details about memory usage.",
|
|
2382
|
+
syntax: "MEMORY STATS",
|
|
2383
|
+
parameters: [],
|
|
2384
|
+
tokens: []
|
|
2385
|
+
},
|
|
2386
|
+
{
|
|
2387
|
+
name: "MEMORY USAGE",
|
|
2388
|
+
arity: -3,
|
|
2389
|
+
group: "server",
|
|
2390
|
+
since: "4.0.0",
|
|
2391
|
+
summary: "Estimates the memory usage of a key.",
|
|
2392
|
+
syntax: "MEMORY USAGE key [SAMPLES count]",
|
|
2393
|
+
parameters: [[13, 16], [17, 32]],
|
|
2394
|
+
tokens: ["SAMPLES"]
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
name: "MGET",
|
|
2398
|
+
arity: -2,
|
|
2399
|
+
group: "string",
|
|
2400
|
+
since: "1.0.0",
|
|
2401
|
+
summary: "Atomically returns the string values of one or more keys.",
|
|
2402
|
+
syntax: "MGET key [key ...]",
|
|
2403
|
+
parameters: [[5, 18]],
|
|
2404
|
+
tokens: []
|
|
2405
|
+
},
|
|
2406
|
+
{
|
|
2407
|
+
name: "MIGRATE",
|
|
2408
|
+
arity: -6,
|
|
2409
|
+
group: "generic",
|
|
2410
|
+
since: "2.6.0",
|
|
2411
|
+
summary: "Atomically transfers a key from one Redis instance to another.",
|
|
2412
|
+
syntax: "MIGRATE host port <key | > destination-db timeout [COPY] [REPLACE] [AUTH password | AUTH2 username password] [KEYS key [KEYS key ...]]",
|
|
2413
|
+
parameters: [
|
|
2414
|
+
[8, 12],
|
|
2415
|
+
[13, 17],
|
|
2416
|
+
[18, 26],
|
|
2417
|
+
[27, 41],
|
|
2418
|
+
[42, 49],
|
|
2419
|
+
[50, 56],
|
|
2420
|
+
[57, 66],
|
|
2421
|
+
[67, 108],
|
|
2422
|
+
[109, 134]
|
|
2423
|
+
],
|
|
2424
|
+
tokens: [
|
|
2425
|
+
"",
|
|
2426
|
+
"AUTH",
|
|
2427
|
+
"AUTH2",
|
|
2428
|
+
"COPY",
|
|
2429
|
+
"KEYS",
|
|
2430
|
+
"REPLACE"
|
|
2431
|
+
]
|
|
2432
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
name: "MODULE",
|
|
2435
|
+
arity: -2,
|
|
2436
|
+
group: "server",
|
|
2437
|
+
since: "4.0.0",
|
|
2438
|
+
summary: "A container for module commands.",
|
|
2439
|
+
syntax: "MODULE",
|
|
2440
|
+
parameters: [],
|
|
2441
|
+
tokens: []
|
|
2442
|
+
},
|
|
2443
|
+
{
|
|
2444
|
+
name: "MODULE HELP",
|
|
2445
|
+
arity: 2,
|
|
2446
|
+
group: "server",
|
|
2447
|
+
since: "5.0.0",
|
|
2448
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
2449
|
+
syntax: "MODULE HELP",
|
|
2450
|
+
parameters: [],
|
|
2451
|
+
tokens: []
|
|
2452
|
+
},
|
|
2453
|
+
{
|
|
2454
|
+
name: "MODULE LIST",
|
|
2455
|
+
arity: 2,
|
|
2456
|
+
group: "server",
|
|
2457
|
+
since: "4.0.0",
|
|
2458
|
+
summary: "Returns all loaded modules.",
|
|
2459
|
+
syntax: "MODULE LIST",
|
|
2460
|
+
parameters: [],
|
|
2461
|
+
tokens: []
|
|
2462
|
+
},
|
|
2463
|
+
{
|
|
2464
|
+
name: "MODULE LOAD",
|
|
2465
|
+
arity: -3,
|
|
2466
|
+
group: "server",
|
|
2467
|
+
since: "4.0.0",
|
|
2468
|
+
summary: "Loads a module.",
|
|
2469
|
+
syntax: "MODULE LOAD path [arg [arg ...]]",
|
|
2470
|
+
parameters: [[12, 16], [17, 32]],
|
|
2471
|
+
tokens: []
|
|
2472
|
+
},
|
|
2473
|
+
{
|
|
2474
|
+
name: "MODULE LOADEX",
|
|
2475
|
+
arity: -3,
|
|
2476
|
+
group: "server",
|
|
2477
|
+
since: "7.0.0",
|
|
2478
|
+
summary: "Loads a module using extended parameters.",
|
|
2479
|
+
syntax: "MODULE LOADEX path [CONFIG name value [CONFIG name value ...]] [ARGS args [ARGS args ...]]",
|
|
2480
|
+
parameters: [
|
|
2481
|
+
[14, 18],
|
|
2482
|
+
[19, 62],
|
|
2483
|
+
[63, 90]
|
|
2484
|
+
],
|
|
2485
|
+
tokens: ["ARGS", "CONFIG"]
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
name: "MODULE UNLOAD",
|
|
2489
|
+
arity: 3,
|
|
2490
|
+
group: "server",
|
|
2491
|
+
since: "4.0.0",
|
|
2492
|
+
summary: "Unloads a module.",
|
|
2493
|
+
syntax: "MODULE UNLOAD name",
|
|
2494
|
+
parameters: [[14, 18]],
|
|
2495
|
+
tokens: []
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
name: "MONITOR",
|
|
2499
|
+
arity: 1,
|
|
2500
|
+
group: "server",
|
|
2501
|
+
since: "1.0.0",
|
|
2502
|
+
summary: "Listens for all requests received by the server in real-time.",
|
|
2503
|
+
syntax: "MONITOR",
|
|
2504
|
+
parameters: [],
|
|
2505
|
+
tokens: []
|
|
2506
|
+
},
|
|
2507
|
+
{
|
|
2508
|
+
name: "MOVE",
|
|
2509
|
+
arity: 3,
|
|
2510
|
+
group: "generic",
|
|
2511
|
+
since: "1.0.0",
|
|
2512
|
+
summary: "Moves a key to another database.",
|
|
2513
|
+
syntax: "MOVE key db",
|
|
2514
|
+
parameters: [[5, 8], [9, 11]],
|
|
2515
|
+
tokens: []
|
|
2516
|
+
},
|
|
2517
|
+
{
|
|
2518
|
+
name: "MSET",
|
|
2519
|
+
arity: -3,
|
|
2520
|
+
group: "string",
|
|
2521
|
+
since: "1.0.1",
|
|
2522
|
+
summary: "Atomically creates or modifies the string values of one or more keys.",
|
|
2523
|
+
syntax: "MSET key value [key value ...]",
|
|
2524
|
+
parameters: [[5, 30]],
|
|
2525
|
+
tokens: []
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
name: "MSETNX",
|
|
2529
|
+
arity: -3,
|
|
2530
|
+
group: "string",
|
|
2531
|
+
since: "1.0.1",
|
|
2532
|
+
summary: "Atomically modifies the string values of one or more keys only when all keys don't exist.",
|
|
2533
|
+
syntax: "MSETNX key value [key value ...]",
|
|
2534
|
+
parameters: [[7, 32]],
|
|
2535
|
+
tokens: []
|
|
2536
|
+
},
|
|
2537
|
+
{
|
|
2538
|
+
name: "MULTI",
|
|
2539
|
+
arity: 1,
|
|
2540
|
+
group: "transactions",
|
|
2541
|
+
since: "1.2.0",
|
|
2542
|
+
summary: "Starts a transaction.",
|
|
2543
|
+
syntax: "MULTI",
|
|
2544
|
+
parameters: [],
|
|
2545
|
+
tokens: []
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
name: "OBJECT",
|
|
2549
|
+
arity: -2,
|
|
2550
|
+
group: "generic",
|
|
2551
|
+
since: "2.2.3",
|
|
2552
|
+
summary: "A container for object introspection commands.",
|
|
2553
|
+
syntax: "OBJECT",
|
|
2554
|
+
parameters: [],
|
|
2555
|
+
tokens: []
|
|
2556
|
+
},
|
|
2557
|
+
{
|
|
2558
|
+
name: "OBJECT ENCODING",
|
|
2559
|
+
arity: 3,
|
|
2560
|
+
group: "generic",
|
|
2561
|
+
since: "2.2.3",
|
|
2562
|
+
summary: "Returns the internal encoding of a Redis object.",
|
|
2563
|
+
syntax: "OBJECT ENCODING key",
|
|
2564
|
+
parameters: [[16, 19]],
|
|
2565
|
+
tokens: []
|
|
2566
|
+
},
|
|
2567
|
+
{
|
|
2568
|
+
name: "OBJECT FREQ",
|
|
2569
|
+
arity: 3,
|
|
2570
|
+
group: "generic",
|
|
2571
|
+
since: "4.0.0",
|
|
2572
|
+
summary: "Returns the logarithmic access frequency counter of a Redis object.",
|
|
2573
|
+
syntax: "OBJECT FREQ key",
|
|
2574
|
+
parameters: [[12, 15]],
|
|
2575
|
+
tokens: []
|
|
2576
|
+
},
|
|
2577
|
+
{
|
|
2578
|
+
name: "OBJECT HELP",
|
|
2579
|
+
arity: 2,
|
|
2580
|
+
group: "generic",
|
|
2581
|
+
since: "6.2.0",
|
|
2582
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
2583
|
+
syntax: "OBJECT HELP",
|
|
2584
|
+
parameters: [],
|
|
2585
|
+
tokens: []
|
|
2586
|
+
},
|
|
2587
|
+
{
|
|
2588
|
+
name: "OBJECT IDLETIME",
|
|
2589
|
+
arity: 3,
|
|
2590
|
+
group: "generic",
|
|
2591
|
+
since: "2.2.3",
|
|
2592
|
+
summary: "Returns the time since the last access to a Redis object.",
|
|
2593
|
+
syntax: "OBJECT IDLETIME key",
|
|
2594
|
+
parameters: [[16, 19]],
|
|
2595
|
+
tokens: []
|
|
2596
|
+
},
|
|
2597
|
+
{
|
|
2598
|
+
name: "OBJECT REFCOUNT",
|
|
2599
|
+
arity: 3,
|
|
2600
|
+
group: "generic",
|
|
2601
|
+
since: "2.2.3",
|
|
2602
|
+
summary: "Returns the reference count of a value of a key.",
|
|
2603
|
+
syntax: "OBJECT REFCOUNT key",
|
|
2604
|
+
parameters: [[16, 19]],
|
|
2605
|
+
tokens: []
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
name: "PERSIST",
|
|
2609
|
+
arity: 2,
|
|
2610
|
+
group: "generic",
|
|
2611
|
+
since: "2.2.0",
|
|
2612
|
+
summary: "Removes the expiration time of a key.",
|
|
2613
|
+
syntax: "PERSIST key",
|
|
2614
|
+
parameters: [[8, 11]],
|
|
2615
|
+
tokens: []
|
|
2616
|
+
},
|
|
2617
|
+
{
|
|
2618
|
+
name: "PEXPIRE",
|
|
2619
|
+
arity: -3,
|
|
2620
|
+
group: "generic",
|
|
2621
|
+
since: "2.6.0",
|
|
2622
|
+
summary: "Sets the expiration time of a key in milliseconds.",
|
|
2623
|
+
syntax: "PEXPIRE key milliseconds [NX | XX | GT | LT]",
|
|
2624
|
+
parameters: [
|
|
2625
|
+
[8, 11],
|
|
2626
|
+
[12, 24],
|
|
2627
|
+
[25, 44]
|
|
2628
|
+
],
|
|
2629
|
+
tokens: [
|
|
2630
|
+
"GT",
|
|
2631
|
+
"LT",
|
|
2632
|
+
"NX",
|
|
2633
|
+
"XX"
|
|
2634
|
+
]
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
name: "PEXPIREAT",
|
|
2638
|
+
arity: -3,
|
|
2639
|
+
group: "generic",
|
|
2640
|
+
since: "2.6.0",
|
|
2641
|
+
summary: "Sets the expiration time of a key to a Unix milliseconds timestamp.",
|
|
2642
|
+
syntax: "PEXPIREAT key unix-time-milliseconds [NX | XX | GT | LT]",
|
|
2643
|
+
parameters: [
|
|
2644
|
+
[10, 13],
|
|
2645
|
+
[14, 36],
|
|
2646
|
+
[37, 56]
|
|
2647
|
+
],
|
|
2648
|
+
tokens: [
|
|
2649
|
+
"GT",
|
|
2650
|
+
"LT",
|
|
2651
|
+
"NX",
|
|
2652
|
+
"XX"
|
|
2653
|
+
]
|
|
2654
|
+
},
|
|
2655
|
+
{
|
|
2656
|
+
name: "PEXPIRETIME",
|
|
2657
|
+
arity: 2,
|
|
2658
|
+
group: "generic",
|
|
2659
|
+
since: "7.0.0",
|
|
2660
|
+
summary: "Returns the expiration time of a key as a Unix milliseconds timestamp.",
|
|
2661
|
+
syntax: "PEXPIRETIME key",
|
|
2662
|
+
parameters: [[12, 15]],
|
|
2663
|
+
tokens: []
|
|
2664
|
+
},
|
|
2665
|
+
{
|
|
2666
|
+
name: "PFADD",
|
|
2667
|
+
arity: -2,
|
|
2668
|
+
group: "hyperloglog",
|
|
2669
|
+
since: "2.8.9",
|
|
2670
|
+
summary: "Adds elements to a HyperLogLog key. Creates the key if it doesn't exist.",
|
|
2671
|
+
syntax: "PFADD key [element [element ...]]",
|
|
2672
|
+
parameters: [[6, 9], [10, 33]],
|
|
2673
|
+
tokens: []
|
|
2674
|
+
},
|
|
2675
|
+
{
|
|
2676
|
+
name: "PFCOUNT",
|
|
2677
|
+
arity: -2,
|
|
2678
|
+
group: "hyperloglog",
|
|
2679
|
+
since: "2.8.9",
|
|
2680
|
+
summary: "Returns the approximated cardinality of the set(s) observed by the HyperLogLog key(s).",
|
|
2681
|
+
syntax: "PFCOUNT key [key ...]",
|
|
2682
|
+
parameters: [[8, 21]],
|
|
2683
|
+
tokens: []
|
|
2684
|
+
},
|
|
2685
|
+
{
|
|
2686
|
+
name: "PFDEBUG",
|
|
2687
|
+
arity: 3,
|
|
2688
|
+
group: "hyperloglog",
|
|
2689
|
+
since: "2.8.9",
|
|
2690
|
+
summary: "Internal commands for debugging HyperLogLog values.",
|
|
2691
|
+
syntax: "PFDEBUG subcommand key",
|
|
2692
|
+
parameters: [[8, 18], [19, 22]],
|
|
2693
|
+
tokens: []
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
name: "PFMERGE",
|
|
2697
|
+
arity: -2,
|
|
2698
|
+
group: "hyperloglog",
|
|
2699
|
+
since: "2.8.9",
|
|
2700
|
+
summary: "Merges one or more HyperLogLog values into a single key.",
|
|
2701
|
+
syntax: "PFMERGE destkey [sourcekey [sourcekey ...]]",
|
|
2702
|
+
parameters: [[8, 15], [16, 43]],
|
|
2703
|
+
tokens: []
|
|
2704
|
+
},
|
|
2705
|
+
{
|
|
2706
|
+
name: "PFSELFTEST",
|
|
2707
|
+
arity: 1,
|
|
2708
|
+
group: "hyperloglog",
|
|
2709
|
+
since: "2.8.9",
|
|
2710
|
+
summary: "An internal command for testing HyperLogLog values.",
|
|
2711
|
+
syntax: "PFSELFTEST",
|
|
2712
|
+
parameters: [],
|
|
2713
|
+
tokens: []
|
|
2714
|
+
},
|
|
2715
|
+
{
|
|
2716
|
+
name: "PING",
|
|
2717
|
+
arity: -1,
|
|
2718
|
+
group: "connection",
|
|
2719
|
+
since: "1.0.0",
|
|
2720
|
+
summary: "Returns the server's liveliness response.",
|
|
2721
|
+
syntax: "PING [message]",
|
|
2722
|
+
parameters: [[5, 14]],
|
|
2723
|
+
tokens: []
|
|
2724
|
+
},
|
|
2725
|
+
{
|
|
2726
|
+
name: "PSETEX",
|
|
2727
|
+
arity: 4,
|
|
2728
|
+
group: "string",
|
|
2729
|
+
since: "2.6.0",
|
|
2730
|
+
summary: "Sets both string value and expiration time in milliseconds of a key. The key is created if it doesn't exist.",
|
|
2731
|
+
syntax: "PSETEX key milliseconds value",
|
|
2732
|
+
parameters: [
|
|
2733
|
+
[7, 10],
|
|
2734
|
+
[11, 23],
|
|
2735
|
+
[24, 29]
|
|
2736
|
+
],
|
|
2737
|
+
tokens: [],
|
|
2738
|
+
deprecated: "2.6.12"
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
name: "PSUBSCRIBE",
|
|
2742
|
+
arity: -2,
|
|
2743
|
+
group: "pubsub",
|
|
2744
|
+
since: "2.0.0",
|
|
2745
|
+
summary: "Listens for messages published to channels that match one or more patterns.",
|
|
2746
|
+
syntax: "PSUBSCRIBE pattern [pattern ...]",
|
|
2747
|
+
parameters: [[11, 32]],
|
|
2748
|
+
tokens: []
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
name: "PSYNC",
|
|
2752
|
+
arity: -3,
|
|
2753
|
+
group: "server",
|
|
2754
|
+
since: "2.8.0",
|
|
2755
|
+
summary: "An internal command used in replication.",
|
|
2756
|
+
syntax: "PSYNC replicationid offset",
|
|
2757
|
+
parameters: [[6, 19], [20, 26]],
|
|
2758
|
+
tokens: []
|
|
2759
|
+
},
|
|
2760
|
+
{
|
|
2761
|
+
name: "PTTL",
|
|
2762
|
+
arity: 2,
|
|
2763
|
+
group: "generic",
|
|
2764
|
+
since: "2.6.0",
|
|
2765
|
+
summary: "Returns the expiration time in milliseconds of a key.",
|
|
2766
|
+
syntax: "PTTL key",
|
|
2767
|
+
parameters: [[5, 8]],
|
|
2768
|
+
tokens: []
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
name: "PUBLISH",
|
|
2772
|
+
arity: 3,
|
|
2773
|
+
group: "pubsub",
|
|
2774
|
+
since: "2.0.0",
|
|
2775
|
+
summary: "Posts a message to a channel.",
|
|
2776
|
+
syntax: "PUBLISH channel message",
|
|
2777
|
+
parameters: [[8, 15], [16, 23]],
|
|
2778
|
+
tokens: []
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
name: "PUBSUB",
|
|
2782
|
+
arity: -2,
|
|
2783
|
+
group: "pubsub",
|
|
2784
|
+
since: "2.8.0",
|
|
2785
|
+
summary: "A container for Pub/Sub commands.",
|
|
2786
|
+
syntax: "PUBSUB",
|
|
2787
|
+
parameters: [],
|
|
2788
|
+
tokens: []
|
|
2789
|
+
},
|
|
2790
|
+
{
|
|
2791
|
+
name: "PUBSUB CHANNELS",
|
|
2792
|
+
arity: -2,
|
|
2793
|
+
group: "pubsub",
|
|
2794
|
+
since: "2.8.0",
|
|
2795
|
+
summary: "Returns the active channels.",
|
|
2796
|
+
syntax: "PUBSUB CHANNELS [pattern]",
|
|
2797
|
+
parameters: [[16, 25]],
|
|
2798
|
+
tokens: []
|
|
2799
|
+
},
|
|
2800
|
+
{
|
|
2801
|
+
name: "PUBSUB HELP",
|
|
2802
|
+
arity: 2,
|
|
2803
|
+
group: "pubsub",
|
|
2804
|
+
since: "6.2.0",
|
|
2805
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
2806
|
+
syntax: "PUBSUB HELP",
|
|
2807
|
+
parameters: [],
|
|
2808
|
+
tokens: []
|
|
2809
|
+
},
|
|
2810
|
+
{
|
|
2811
|
+
name: "PUBSUB NUMPAT",
|
|
2812
|
+
arity: 2,
|
|
2813
|
+
group: "pubsub",
|
|
2814
|
+
since: "2.8.0",
|
|
2815
|
+
summary: "Returns a count of unique pattern subscriptions.",
|
|
2816
|
+
syntax: "PUBSUB NUMPAT",
|
|
2817
|
+
parameters: [],
|
|
2818
|
+
tokens: []
|
|
2819
|
+
},
|
|
2820
|
+
{
|
|
2821
|
+
name: "PUBSUB NUMSUB",
|
|
2822
|
+
arity: -2,
|
|
2823
|
+
group: "pubsub",
|
|
2824
|
+
since: "2.8.0",
|
|
2825
|
+
summary: "Returns a count of subscribers to channels.",
|
|
2826
|
+
syntax: "PUBSUB NUMSUB [channel [channel ...]]",
|
|
2827
|
+
parameters: [[14, 37]],
|
|
2828
|
+
tokens: []
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
name: "PUBSUB SHARDCHANNELS",
|
|
2832
|
+
arity: -2,
|
|
2833
|
+
group: "pubsub",
|
|
2834
|
+
since: "7.0.0",
|
|
2835
|
+
summary: "Returns the active shard channels.",
|
|
2836
|
+
syntax: "PUBSUB SHARDCHANNELS [pattern]",
|
|
2837
|
+
parameters: [[21, 30]],
|
|
2838
|
+
tokens: []
|
|
2839
|
+
},
|
|
2840
|
+
{
|
|
2841
|
+
name: "PUBSUB SHARDNUMSUB",
|
|
2842
|
+
arity: -2,
|
|
2843
|
+
group: "pubsub",
|
|
2844
|
+
since: "7.0.0",
|
|
2845
|
+
summary: "Returns the count of subscribers of shard channels.",
|
|
2846
|
+
syntax: "PUBSUB SHARDNUMSUB [shardchannel [shardchannel ...]]",
|
|
2847
|
+
parameters: [[19, 52]],
|
|
2848
|
+
tokens: []
|
|
2849
|
+
},
|
|
2850
|
+
{
|
|
2851
|
+
name: "PUNSUBSCRIBE",
|
|
2852
|
+
arity: -1,
|
|
2853
|
+
group: "pubsub",
|
|
2854
|
+
since: "2.0.0",
|
|
2855
|
+
summary: "Stops listening to messages published to channels that match one or more patterns.",
|
|
2856
|
+
syntax: "PUNSUBSCRIBE [pattern [pattern ...]]",
|
|
2857
|
+
parameters: [[13, 36]],
|
|
2858
|
+
tokens: []
|
|
2859
|
+
},
|
|
2860
|
+
{
|
|
2861
|
+
name: "QUIT",
|
|
2862
|
+
arity: -1,
|
|
2863
|
+
group: "connection",
|
|
2864
|
+
since: "1.0.0",
|
|
2865
|
+
summary: "Closes the connection.",
|
|
2866
|
+
syntax: "QUIT",
|
|
2867
|
+
parameters: [],
|
|
2868
|
+
tokens: [],
|
|
2869
|
+
deprecated: "7.2.0"
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
name: "RANDOMKEY",
|
|
2873
|
+
arity: 1,
|
|
2874
|
+
group: "generic",
|
|
2875
|
+
since: "1.0.0",
|
|
2876
|
+
summary: "Returns a random key name from the database.",
|
|
2877
|
+
syntax: "RANDOMKEY",
|
|
2878
|
+
parameters: [],
|
|
2879
|
+
tokens: []
|
|
2880
|
+
},
|
|
2881
|
+
{
|
|
2882
|
+
name: "READONLY",
|
|
2883
|
+
arity: 1,
|
|
2884
|
+
group: "cluster",
|
|
2885
|
+
since: "3.0.0",
|
|
2886
|
+
summary: "Enables read-only queries for a connection to a Redis Cluster replica node.",
|
|
2887
|
+
syntax: "READONLY",
|
|
2888
|
+
parameters: [],
|
|
2889
|
+
tokens: []
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
name: "READWRITE",
|
|
2893
|
+
arity: 1,
|
|
2894
|
+
group: "cluster",
|
|
2895
|
+
since: "3.0.0",
|
|
2896
|
+
summary: "Enables read-write queries for a connection to a Reids Cluster replica node.",
|
|
2897
|
+
syntax: "READWRITE",
|
|
2898
|
+
parameters: [],
|
|
2899
|
+
tokens: []
|
|
2900
|
+
},
|
|
2901
|
+
{
|
|
2902
|
+
name: "RENAME",
|
|
2903
|
+
arity: 3,
|
|
2904
|
+
group: "generic",
|
|
2905
|
+
since: "1.0.0",
|
|
2906
|
+
summary: "Renames a key and overwrites the destination.",
|
|
2907
|
+
syntax: "RENAME key newkey",
|
|
2908
|
+
parameters: [[7, 10], [11, 17]],
|
|
2909
|
+
tokens: []
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
name: "RENAMENX",
|
|
2913
|
+
arity: 3,
|
|
2914
|
+
group: "generic",
|
|
2915
|
+
since: "1.0.0",
|
|
2916
|
+
summary: "Renames a key only when the target key name doesn't exist.",
|
|
2917
|
+
syntax: "RENAMENX key newkey",
|
|
2918
|
+
parameters: [[9, 12], [13, 19]],
|
|
2919
|
+
tokens: []
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
name: "REPLCONF",
|
|
2923
|
+
arity: -1,
|
|
2924
|
+
group: "server",
|
|
2925
|
+
since: "3.0.0",
|
|
2926
|
+
summary: "An internal command for configuring the replication stream.",
|
|
2927
|
+
syntax: "REPLCONF",
|
|
2928
|
+
parameters: [],
|
|
2929
|
+
tokens: []
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
name: "REPLICAOF",
|
|
2933
|
+
arity: 3,
|
|
2934
|
+
group: "server",
|
|
2935
|
+
since: "5.0.0",
|
|
2936
|
+
summary: "Configures a server as replica of another, or promotes it to a master.",
|
|
2937
|
+
syntax: "REPLICAOF <host port | NO ONE>",
|
|
2938
|
+
parameters: [[10, 30]],
|
|
2939
|
+
tokens: ["NO", "ONE"]
|
|
2940
|
+
},
|
|
2941
|
+
{
|
|
2942
|
+
name: "RESET",
|
|
2943
|
+
arity: 1,
|
|
2944
|
+
group: "connection",
|
|
2945
|
+
since: "6.2.0",
|
|
2946
|
+
summary: "Resets the connection.",
|
|
2947
|
+
syntax: "RESET",
|
|
2948
|
+
parameters: [],
|
|
2949
|
+
tokens: []
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
name: "RESTORE",
|
|
2953
|
+
arity: -4,
|
|
2954
|
+
group: "generic",
|
|
2955
|
+
since: "2.6.0",
|
|
2956
|
+
summary: "Creates a key from the serialized representation of a value.",
|
|
2957
|
+
syntax: "RESTORE key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME seconds] [FREQ frequency]",
|
|
2958
|
+
parameters: [
|
|
2959
|
+
[8, 11],
|
|
2960
|
+
[12, 15],
|
|
2961
|
+
[16, 32],
|
|
2962
|
+
[33, 42],
|
|
2963
|
+
[43, 51],
|
|
2964
|
+
[52, 70],
|
|
2965
|
+
[71, 87]
|
|
2966
|
+
],
|
|
2967
|
+
tokens: [
|
|
2968
|
+
"ABSTTL",
|
|
2969
|
+
"FREQ",
|
|
2970
|
+
"IDLETIME",
|
|
2971
|
+
"REPLACE"
|
|
2972
|
+
]
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
name: "RESTORE-ASKING",
|
|
2976
|
+
arity: -4,
|
|
2977
|
+
group: "server",
|
|
2978
|
+
since: "3.0.0",
|
|
2979
|
+
summary: "An internal command for migrating keys in a cluster.",
|
|
2980
|
+
syntax: "RESTORE-ASKING key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME seconds] [FREQ frequency]",
|
|
2981
|
+
parameters: [
|
|
2982
|
+
[15, 18],
|
|
2983
|
+
[19, 22],
|
|
2984
|
+
[23, 39],
|
|
2985
|
+
[40, 49],
|
|
2986
|
+
[50, 58],
|
|
2987
|
+
[59, 77],
|
|
2988
|
+
[78, 94]
|
|
2989
|
+
],
|
|
2990
|
+
tokens: [
|
|
2991
|
+
"ABSTTL",
|
|
2992
|
+
"FREQ",
|
|
2993
|
+
"IDLETIME",
|
|
2994
|
+
"REPLACE"
|
|
2995
|
+
]
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
name: "ROLE",
|
|
2999
|
+
arity: 1,
|
|
3000
|
+
group: "server",
|
|
3001
|
+
since: "2.8.12",
|
|
3002
|
+
summary: "Returns the replication role.",
|
|
3003
|
+
syntax: "ROLE",
|
|
3004
|
+
parameters: [],
|
|
3005
|
+
tokens: []
|
|
3006
|
+
},
|
|
3007
|
+
{
|
|
3008
|
+
name: "RPOP",
|
|
3009
|
+
arity: -2,
|
|
3010
|
+
group: "list",
|
|
3011
|
+
since: "1.0.0",
|
|
3012
|
+
summary: "Returns and removes the last elements of a list. Deletes the list if the last element was popped.",
|
|
3013
|
+
syntax: "RPOP key [count]",
|
|
3014
|
+
parameters: [[5, 8], [9, 16]],
|
|
3015
|
+
tokens: []
|
|
3016
|
+
},
|
|
3017
|
+
{
|
|
3018
|
+
name: "RPOPLPUSH",
|
|
3019
|
+
arity: 3,
|
|
3020
|
+
group: "list",
|
|
3021
|
+
since: "1.2.0",
|
|
3022
|
+
summary: "Returns the last element of a list after removing and pushing it to another list. Deletes the list if the last element was popped.",
|
|
3023
|
+
syntax: "RPOPLPUSH source destination",
|
|
3024
|
+
parameters: [[10, 16], [17, 28]],
|
|
3025
|
+
tokens: [],
|
|
3026
|
+
deprecated: "6.2.0"
|
|
3027
|
+
},
|
|
3028
|
+
{
|
|
3029
|
+
name: "RPUSH",
|
|
3030
|
+
arity: -3,
|
|
3031
|
+
group: "list",
|
|
3032
|
+
since: "1.0.0",
|
|
3033
|
+
summary: "Appends one or more elements to a list. Creates the key if it doesn't exist.",
|
|
3034
|
+
syntax: "RPUSH key element [element ...]",
|
|
3035
|
+
parameters: [[6, 9], [10, 31]],
|
|
3036
|
+
tokens: []
|
|
3037
|
+
},
|
|
3038
|
+
{
|
|
3039
|
+
name: "RPUSHX",
|
|
3040
|
+
arity: -3,
|
|
3041
|
+
group: "list",
|
|
3042
|
+
since: "2.2.0",
|
|
3043
|
+
summary: "Appends an element to a list only when the list exists.",
|
|
3044
|
+
syntax: "RPUSHX key element [element ...]",
|
|
3045
|
+
parameters: [[7, 10], [11, 32]],
|
|
3046
|
+
tokens: []
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
name: "SADD",
|
|
3050
|
+
arity: -3,
|
|
3051
|
+
group: "set",
|
|
3052
|
+
since: "1.0.0",
|
|
3053
|
+
summary: "Adds one or more members to a set. Creates the key if it doesn't exist.",
|
|
3054
|
+
syntax: "SADD key member [member ...]",
|
|
3055
|
+
parameters: [[5, 8], [9, 28]],
|
|
3056
|
+
tokens: []
|
|
3057
|
+
},
|
|
3058
|
+
{
|
|
3059
|
+
name: "SAVE",
|
|
3060
|
+
arity: 1,
|
|
3061
|
+
group: "server",
|
|
3062
|
+
since: "1.0.0",
|
|
3063
|
+
summary: "Synchronously saves the database(s) to disk.",
|
|
3064
|
+
syntax: "SAVE",
|
|
3065
|
+
parameters: [],
|
|
3066
|
+
tokens: []
|
|
3067
|
+
},
|
|
3068
|
+
{
|
|
3069
|
+
name: "SCAN",
|
|
3070
|
+
arity: -2,
|
|
3071
|
+
group: "generic",
|
|
3072
|
+
since: "2.8.0",
|
|
3073
|
+
summary: "Iterates over the key names in the database.",
|
|
3074
|
+
syntax: "SCAN cursor [MATCH pattern] [COUNT count] [TYPE type]",
|
|
3075
|
+
parameters: [
|
|
3076
|
+
[5, 11],
|
|
3077
|
+
[12, 27],
|
|
3078
|
+
[28, 41],
|
|
3079
|
+
[42, 53]
|
|
3080
|
+
],
|
|
3081
|
+
tokens: [
|
|
3082
|
+
"COUNT",
|
|
3083
|
+
"MATCH",
|
|
3084
|
+
"TYPE"
|
|
3085
|
+
]
|
|
3086
|
+
},
|
|
3087
|
+
{
|
|
3088
|
+
name: "SCARD",
|
|
3089
|
+
arity: 2,
|
|
3090
|
+
group: "set",
|
|
3091
|
+
since: "1.0.0",
|
|
3092
|
+
summary: "Returns the number of members in a set.",
|
|
3093
|
+
syntax: "SCARD key",
|
|
3094
|
+
parameters: [[6, 9]],
|
|
3095
|
+
tokens: []
|
|
3096
|
+
},
|
|
3097
|
+
{
|
|
3098
|
+
name: "SCRIPT",
|
|
3099
|
+
arity: -2,
|
|
3100
|
+
group: "scripting",
|
|
3101
|
+
since: "2.6.0",
|
|
3102
|
+
summary: "A container for Lua scripts management commands.",
|
|
3103
|
+
syntax: "SCRIPT",
|
|
3104
|
+
parameters: [],
|
|
3105
|
+
tokens: []
|
|
3106
|
+
},
|
|
3107
|
+
{
|
|
3108
|
+
name: "SCRIPT DEBUG",
|
|
3109
|
+
arity: 3,
|
|
3110
|
+
group: "scripting",
|
|
3111
|
+
since: "3.2.0",
|
|
3112
|
+
summary: "Sets the debug mode of server-side Lua scripts.",
|
|
3113
|
+
syntax: "SCRIPT DEBUG <YES | SYNC | NO>",
|
|
3114
|
+
parameters: [[13, 30]],
|
|
3115
|
+
tokens: [
|
|
3116
|
+
"NO",
|
|
3117
|
+
"SYNC",
|
|
3118
|
+
"YES"
|
|
3119
|
+
]
|
|
3120
|
+
},
|
|
3121
|
+
{
|
|
3122
|
+
name: "SCRIPT EXISTS",
|
|
3123
|
+
arity: -3,
|
|
3124
|
+
group: "scripting",
|
|
3125
|
+
since: "2.6.0",
|
|
3126
|
+
summary: "Determines whether server-side Lua scripts exist in the script cache.",
|
|
3127
|
+
syntax: "SCRIPT EXISTS sha1 [sha1 ...]",
|
|
3128
|
+
parameters: [[14, 29]],
|
|
3129
|
+
tokens: []
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
name: "SCRIPT FLUSH",
|
|
3133
|
+
arity: -2,
|
|
3134
|
+
group: "scripting",
|
|
3135
|
+
since: "2.6.0",
|
|
3136
|
+
summary: "Removes all server-side Lua scripts from the script cache.",
|
|
3137
|
+
syntax: "SCRIPT FLUSH [ASYNC | SYNC]",
|
|
3138
|
+
parameters: [[13, 27]],
|
|
3139
|
+
tokens: ["ASYNC", "SYNC"]
|
|
3140
|
+
},
|
|
3141
|
+
{
|
|
3142
|
+
name: "SCRIPT HELP",
|
|
3143
|
+
arity: 2,
|
|
3144
|
+
group: "scripting",
|
|
3145
|
+
since: "5.0.0",
|
|
3146
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
3147
|
+
syntax: "SCRIPT HELP",
|
|
3148
|
+
parameters: [],
|
|
3149
|
+
tokens: []
|
|
3150
|
+
},
|
|
3151
|
+
{
|
|
3152
|
+
name: "SCRIPT KILL",
|
|
3153
|
+
arity: 2,
|
|
3154
|
+
group: "scripting",
|
|
3155
|
+
since: "2.6.0",
|
|
3156
|
+
summary: "Terminates a server-side Lua script during execution.",
|
|
3157
|
+
syntax: "SCRIPT KILL",
|
|
3158
|
+
parameters: [],
|
|
3159
|
+
tokens: []
|
|
3160
|
+
},
|
|
3161
|
+
{
|
|
3162
|
+
name: "SCRIPT LOAD",
|
|
3163
|
+
arity: 3,
|
|
3164
|
+
group: "scripting",
|
|
3165
|
+
since: "2.6.0",
|
|
3166
|
+
summary: "Loads a server-side Lua script to the script cache.",
|
|
3167
|
+
syntax: "SCRIPT LOAD script",
|
|
3168
|
+
parameters: [[12, 18]],
|
|
3169
|
+
tokens: []
|
|
3170
|
+
},
|
|
3171
|
+
{
|
|
3172
|
+
name: "SDIFF",
|
|
3173
|
+
arity: -2,
|
|
3174
|
+
group: "set",
|
|
3175
|
+
since: "1.0.0",
|
|
3176
|
+
summary: "Returns the difference of multiple sets.",
|
|
3177
|
+
syntax: "SDIFF key [key ...]",
|
|
3178
|
+
parameters: [[6, 19]],
|
|
3179
|
+
tokens: []
|
|
3180
|
+
},
|
|
3181
|
+
{
|
|
3182
|
+
name: "SDIFFSTORE",
|
|
3183
|
+
arity: -3,
|
|
3184
|
+
group: "set",
|
|
3185
|
+
since: "1.0.0",
|
|
3186
|
+
summary: "Stores the difference of multiple sets in a key.",
|
|
3187
|
+
syntax: "SDIFFSTORE destination key [key ...]",
|
|
3188
|
+
parameters: [[11, 22], [23, 36]],
|
|
3189
|
+
tokens: []
|
|
3190
|
+
},
|
|
3191
|
+
{
|
|
3192
|
+
name: "SELECT",
|
|
3193
|
+
arity: 2,
|
|
3194
|
+
group: "connection",
|
|
3195
|
+
since: "1.0.0",
|
|
3196
|
+
summary: "Changes the selected database.",
|
|
3197
|
+
syntax: "SELECT index",
|
|
3198
|
+
parameters: [[7, 12]],
|
|
3199
|
+
tokens: []
|
|
3200
|
+
},
|
|
3201
|
+
{
|
|
3202
|
+
name: "SET",
|
|
3203
|
+
arity: -3,
|
|
3204
|
+
group: "string",
|
|
3205
|
+
since: "1.0.0",
|
|
3206
|
+
summary: "Sets the string value of a key, ignoring its type. The key is created if it doesn't exist.",
|
|
3207
|
+
syntax: "SET key value [NX | XX] [GET] [EX seconds | PX milliseconds | EXAT unix-time-seconds | PXAT unix-time-milliseconds | KEEPTTL]",
|
|
3208
|
+
parameters: [
|
|
3209
|
+
[4, 7],
|
|
3210
|
+
[8, 13],
|
|
3211
|
+
[14, 23],
|
|
3212
|
+
[24, 29],
|
|
3213
|
+
[30, 125]
|
|
3214
|
+
],
|
|
3215
|
+
tokens: [
|
|
3216
|
+
"EX",
|
|
3217
|
+
"EXAT",
|
|
3218
|
+
"GET",
|
|
3219
|
+
"KEEPTTL",
|
|
3220
|
+
"NX",
|
|
3221
|
+
"PX",
|
|
3222
|
+
"PXAT",
|
|
3223
|
+
"XX"
|
|
3224
|
+
]
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
name: "SETBIT",
|
|
3228
|
+
arity: 4,
|
|
3229
|
+
group: "bitmap",
|
|
3230
|
+
since: "2.2.0",
|
|
3231
|
+
summary: "Sets or clears the bit at offset of the string value. Creates the key if it doesn't exist.",
|
|
3232
|
+
syntax: "SETBIT key offset value",
|
|
3233
|
+
parameters: [
|
|
3234
|
+
[7, 10],
|
|
3235
|
+
[11, 17],
|
|
3236
|
+
[18, 23]
|
|
3237
|
+
],
|
|
3238
|
+
tokens: []
|
|
3239
|
+
},
|
|
3240
|
+
{
|
|
3241
|
+
name: "SETEX",
|
|
3242
|
+
arity: 4,
|
|
3243
|
+
group: "string",
|
|
3244
|
+
since: "2.0.0",
|
|
3245
|
+
summary: "Sets the string value and expiration time of a key. Creates the key if it doesn't exist.",
|
|
3246
|
+
syntax: "SETEX key seconds value",
|
|
3247
|
+
parameters: [
|
|
3248
|
+
[6, 9],
|
|
3249
|
+
[10, 17],
|
|
3250
|
+
[18, 23]
|
|
3251
|
+
],
|
|
3252
|
+
tokens: [],
|
|
3253
|
+
deprecated: "2.6.12"
|
|
3254
|
+
},
|
|
3255
|
+
{
|
|
3256
|
+
name: "SETNX",
|
|
3257
|
+
arity: 3,
|
|
3258
|
+
group: "string",
|
|
3259
|
+
since: "1.0.0",
|
|
3260
|
+
summary: "Set the string value of a key only when the key doesn't exist.",
|
|
3261
|
+
syntax: "SETNX key value",
|
|
3262
|
+
parameters: [[6, 9], [10, 15]],
|
|
3263
|
+
tokens: [],
|
|
3264
|
+
deprecated: "2.6.12"
|
|
3265
|
+
},
|
|
3266
|
+
{
|
|
3267
|
+
name: "SETRANGE",
|
|
3268
|
+
arity: 4,
|
|
3269
|
+
group: "string",
|
|
3270
|
+
since: "2.2.0",
|
|
3271
|
+
summary: "Overwrites a part of a string value with another by an offset. Creates the key if it doesn't exist.",
|
|
3272
|
+
syntax: "SETRANGE key offset value",
|
|
3273
|
+
parameters: [
|
|
3274
|
+
[9, 12],
|
|
3275
|
+
[13, 19],
|
|
3276
|
+
[20, 25]
|
|
3277
|
+
],
|
|
3278
|
+
tokens: []
|
|
3279
|
+
},
|
|
3280
|
+
{
|
|
3281
|
+
name: "SHUTDOWN",
|
|
3282
|
+
arity: -1,
|
|
3283
|
+
group: "server",
|
|
3284
|
+
since: "1.0.0",
|
|
3285
|
+
summary: "Synchronously saves the database(s) to disk and shuts down the Redis server.",
|
|
3286
|
+
syntax: "SHUTDOWN [NOSAVE | SAVE] [NOW] [FORCE] [ABORT]",
|
|
3287
|
+
parameters: [
|
|
3288
|
+
[9, 24],
|
|
3289
|
+
[25, 30],
|
|
3290
|
+
[31, 38],
|
|
3291
|
+
[39, 46]
|
|
3292
|
+
],
|
|
3293
|
+
tokens: [
|
|
3294
|
+
"ABORT",
|
|
3295
|
+
"FORCE",
|
|
3296
|
+
"NOSAVE",
|
|
3297
|
+
"NOW",
|
|
3298
|
+
"SAVE"
|
|
3299
|
+
]
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
name: "SINTER",
|
|
3303
|
+
arity: -2,
|
|
3304
|
+
group: "set",
|
|
3305
|
+
since: "1.0.0",
|
|
3306
|
+
summary: "Returns the intersect of multiple sets.",
|
|
3307
|
+
syntax: "SINTER key [key ...]",
|
|
3308
|
+
parameters: [[7, 20]],
|
|
3309
|
+
tokens: []
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
name: "SINTERCARD",
|
|
3313
|
+
arity: -3,
|
|
3314
|
+
group: "set",
|
|
3315
|
+
since: "7.0.0",
|
|
3316
|
+
summary: "Returns the number of members of the intersect of multiple sets.",
|
|
3317
|
+
syntax: "SINTERCARD numkeys key [key ...] [LIMIT limit]",
|
|
3318
|
+
parameters: [
|
|
3319
|
+
[11, 18],
|
|
3320
|
+
[19, 32],
|
|
3321
|
+
[33, 46]
|
|
3322
|
+
],
|
|
3323
|
+
tokens: ["LIMIT"]
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
name: "SINTERSTORE",
|
|
3327
|
+
arity: -3,
|
|
3328
|
+
group: "set",
|
|
3329
|
+
since: "1.0.0",
|
|
3330
|
+
summary: "Stores the intersect of multiple sets in a key.",
|
|
3331
|
+
syntax: "SINTERSTORE destination key [key ...]",
|
|
3332
|
+
parameters: [[12, 23], [24, 37]],
|
|
3333
|
+
tokens: []
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
name: "SISMEMBER",
|
|
3337
|
+
arity: 3,
|
|
3338
|
+
group: "set",
|
|
3339
|
+
since: "1.0.0",
|
|
3340
|
+
summary: "Determines whether a member belongs to a set.",
|
|
3341
|
+
syntax: "SISMEMBER key member",
|
|
3342
|
+
parameters: [[10, 13], [14, 20]],
|
|
3343
|
+
tokens: []
|
|
3344
|
+
},
|
|
3345
|
+
{
|
|
3346
|
+
name: "SLAVEOF",
|
|
3347
|
+
arity: 3,
|
|
3348
|
+
group: "server",
|
|
3349
|
+
since: "1.0.0",
|
|
3350
|
+
summary: "Sets a Redis server as a replica of another, or promotes it to being a master.",
|
|
3351
|
+
syntax: "SLAVEOF <host port | NO ONE>",
|
|
3352
|
+
parameters: [[8, 28]],
|
|
3353
|
+
tokens: ["NO", "ONE"],
|
|
3354
|
+
deprecated: "5.0.0"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
name: "SLOWLOG",
|
|
3358
|
+
arity: -2,
|
|
3359
|
+
group: "server",
|
|
3360
|
+
since: "2.2.12",
|
|
3361
|
+
summary: "A container for slow log commands.",
|
|
3362
|
+
syntax: "SLOWLOG",
|
|
3363
|
+
parameters: [],
|
|
3364
|
+
tokens: []
|
|
3365
|
+
},
|
|
3366
|
+
{
|
|
3367
|
+
name: "SLOWLOG GET",
|
|
3368
|
+
arity: -2,
|
|
3369
|
+
group: "server",
|
|
3370
|
+
since: "2.2.12",
|
|
3371
|
+
summary: "Returns the slow log's entries.",
|
|
3372
|
+
syntax: "SLOWLOG GET [count]",
|
|
3373
|
+
parameters: [[12, 19]],
|
|
3374
|
+
tokens: []
|
|
3375
|
+
},
|
|
3376
|
+
{
|
|
3377
|
+
name: "SLOWLOG HELP",
|
|
3378
|
+
arity: 2,
|
|
3379
|
+
group: "server",
|
|
3380
|
+
since: "6.2.0",
|
|
3381
|
+
summary: "Show helpful text about the different subcommands",
|
|
3382
|
+
syntax: "SLOWLOG HELP",
|
|
3383
|
+
parameters: [],
|
|
3384
|
+
tokens: []
|
|
3385
|
+
},
|
|
3386
|
+
{
|
|
3387
|
+
name: "SLOWLOG LEN",
|
|
3388
|
+
arity: 2,
|
|
3389
|
+
group: "server",
|
|
3390
|
+
since: "2.2.12",
|
|
3391
|
+
summary: "Returns the number of entries in the slow log.",
|
|
3392
|
+
syntax: "SLOWLOG LEN",
|
|
3393
|
+
parameters: [],
|
|
3394
|
+
tokens: []
|
|
3395
|
+
},
|
|
3396
|
+
{
|
|
3397
|
+
name: "SLOWLOG RESET",
|
|
3398
|
+
arity: 2,
|
|
3399
|
+
group: "server",
|
|
3400
|
+
since: "2.2.12",
|
|
3401
|
+
summary: "Clears all entries from the slow log.",
|
|
3402
|
+
syntax: "SLOWLOG RESET",
|
|
3403
|
+
parameters: [],
|
|
3404
|
+
tokens: []
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
name: "SMEMBERS",
|
|
3408
|
+
arity: 2,
|
|
3409
|
+
group: "set",
|
|
3410
|
+
since: "1.0.0",
|
|
3411
|
+
summary: "Returns all members of a set.",
|
|
3412
|
+
syntax: "SMEMBERS key",
|
|
3413
|
+
parameters: [[9, 12]],
|
|
3414
|
+
tokens: []
|
|
3415
|
+
},
|
|
3416
|
+
{
|
|
3417
|
+
name: "SMISMEMBER",
|
|
3418
|
+
arity: -3,
|
|
3419
|
+
group: "set",
|
|
3420
|
+
since: "6.2.0",
|
|
3421
|
+
summary: "Determines whether multiple members belong to a set.",
|
|
3422
|
+
syntax: "SMISMEMBER key member [member ...]",
|
|
3423
|
+
parameters: [[11, 14], [15, 34]],
|
|
3424
|
+
tokens: []
|
|
3425
|
+
},
|
|
3426
|
+
{
|
|
3427
|
+
name: "SMOVE",
|
|
3428
|
+
arity: 4,
|
|
3429
|
+
group: "set",
|
|
3430
|
+
since: "1.0.0",
|
|
3431
|
+
summary: "Moves a member from one set to another.",
|
|
3432
|
+
syntax: "SMOVE source destination member",
|
|
3433
|
+
parameters: [
|
|
3434
|
+
[6, 12],
|
|
3435
|
+
[13, 24],
|
|
3436
|
+
[25, 31]
|
|
3437
|
+
],
|
|
3438
|
+
tokens: []
|
|
3439
|
+
},
|
|
3440
|
+
{
|
|
3441
|
+
name: "SORT",
|
|
3442
|
+
arity: -2,
|
|
3443
|
+
group: "generic",
|
|
3444
|
+
since: "1.0.0",
|
|
3445
|
+
summary: "Sorts the elements in a list, a set, or a sorted set, optionally storing the result.",
|
|
3446
|
+
syntax: "SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC | DESC] [ALPHA] [STORE destination]",
|
|
3447
|
+
parameters: [
|
|
3448
|
+
[5, 8],
|
|
3449
|
+
[9, 21],
|
|
3450
|
+
[22, 42],
|
|
3451
|
+
[43, 74],
|
|
3452
|
+
[75, 87],
|
|
3453
|
+
[88, 95],
|
|
3454
|
+
[96, 115]
|
|
3455
|
+
],
|
|
3456
|
+
tokens: [
|
|
3457
|
+
"ALPHA",
|
|
3458
|
+
"ASC",
|
|
3459
|
+
"BY",
|
|
3460
|
+
"DESC",
|
|
3461
|
+
"GET",
|
|
3462
|
+
"LIMIT",
|
|
3463
|
+
"STORE"
|
|
3464
|
+
]
|
|
3465
|
+
},
|
|
3466
|
+
{
|
|
3467
|
+
name: "SORT_RO",
|
|
3468
|
+
arity: -2,
|
|
3469
|
+
group: "generic",
|
|
3470
|
+
since: "7.0.0",
|
|
3471
|
+
summary: "Returns the sorted elements of a list, a set, or a sorted set.",
|
|
3472
|
+
syntax: "SORT_RO key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC | DESC] [ALPHA]",
|
|
3473
|
+
parameters: [
|
|
3474
|
+
[8, 11],
|
|
3475
|
+
[12, 24],
|
|
3476
|
+
[25, 45],
|
|
3477
|
+
[46, 77],
|
|
3478
|
+
[78, 90],
|
|
3479
|
+
[91, 98]
|
|
3480
|
+
],
|
|
3481
|
+
tokens: [
|
|
3482
|
+
"ALPHA",
|
|
3483
|
+
"ASC",
|
|
3484
|
+
"BY",
|
|
3485
|
+
"DESC",
|
|
3486
|
+
"GET",
|
|
3487
|
+
"LIMIT"
|
|
3488
|
+
]
|
|
3489
|
+
},
|
|
3490
|
+
{
|
|
3491
|
+
name: "SPOP",
|
|
3492
|
+
arity: -2,
|
|
3493
|
+
group: "set",
|
|
3494
|
+
since: "1.0.0",
|
|
3495
|
+
summary: "Returns one or more random members from a set after removing them. Deletes the set if the last member was popped.",
|
|
3496
|
+
syntax: "SPOP key [count]",
|
|
3497
|
+
parameters: [[5, 8], [9, 16]],
|
|
3498
|
+
tokens: []
|
|
3499
|
+
},
|
|
3500
|
+
{
|
|
3501
|
+
name: "SPUBLISH",
|
|
3502
|
+
arity: 3,
|
|
3503
|
+
group: "pubsub",
|
|
3504
|
+
since: "7.0.0",
|
|
3505
|
+
summary: "Post a message to a shard channel",
|
|
3506
|
+
syntax: "SPUBLISH shardchannel message",
|
|
3507
|
+
parameters: [[9, 21], [22, 29]],
|
|
3508
|
+
tokens: []
|
|
3509
|
+
},
|
|
3510
|
+
{
|
|
3511
|
+
name: "SRANDMEMBER",
|
|
3512
|
+
arity: -2,
|
|
3513
|
+
group: "set",
|
|
3514
|
+
since: "1.0.0",
|
|
3515
|
+
summary: "Get one or multiple random members from a set",
|
|
3516
|
+
syntax: "SRANDMEMBER key [count]",
|
|
3517
|
+
parameters: [[12, 15], [16, 23]],
|
|
3518
|
+
tokens: []
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
name: "SREM",
|
|
3522
|
+
arity: -3,
|
|
3523
|
+
group: "set",
|
|
3524
|
+
since: "1.0.0",
|
|
3525
|
+
summary: "Removes one or more members from a set. Deletes the set if the last member was removed.",
|
|
3526
|
+
syntax: "SREM key member [member ...]",
|
|
3527
|
+
parameters: [[5, 8], [9, 28]],
|
|
3528
|
+
tokens: []
|
|
3529
|
+
},
|
|
3530
|
+
{
|
|
3531
|
+
name: "SSCAN",
|
|
3532
|
+
arity: -3,
|
|
3533
|
+
group: "set",
|
|
3534
|
+
since: "2.8.0",
|
|
3535
|
+
summary: "Iterates over members of a set.",
|
|
3536
|
+
syntax: "SSCAN key cursor [MATCH pattern] [COUNT count]",
|
|
3537
|
+
parameters: [
|
|
3538
|
+
[6, 9],
|
|
3539
|
+
[10, 16],
|
|
3540
|
+
[17, 32],
|
|
3541
|
+
[33, 46]
|
|
3542
|
+
],
|
|
3543
|
+
tokens: ["COUNT", "MATCH"]
|
|
3544
|
+
},
|
|
3545
|
+
{
|
|
3546
|
+
name: "SSUBSCRIBE",
|
|
3547
|
+
arity: -2,
|
|
3548
|
+
group: "pubsub",
|
|
3549
|
+
since: "7.0.0",
|
|
3550
|
+
summary: "Listens for messages published to shard channels.",
|
|
3551
|
+
syntax: "SSUBSCRIBE shardchannel [shardchannel ...]",
|
|
3552
|
+
parameters: [[11, 42]],
|
|
3553
|
+
tokens: []
|
|
3554
|
+
},
|
|
3555
|
+
{
|
|
3556
|
+
name: "STRLEN",
|
|
3557
|
+
arity: 2,
|
|
3558
|
+
group: "string",
|
|
3559
|
+
since: "2.2.0",
|
|
3560
|
+
summary: "Returns the length of a string value.",
|
|
3561
|
+
syntax: "STRLEN key",
|
|
3562
|
+
parameters: [[7, 10]],
|
|
3563
|
+
tokens: []
|
|
3564
|
+
},
|
|
3565
|
+
{
|
|
3566
|
+
name: "SUBSCRIBE",
|
|
3567
|
+
arity: -2,
|
|
3568
|
+
group: "pubsub",
|
|
3569
|
+
since: "2.0.0",
|
|
3570
|
+
summary: "Listens for messages published to channels.",
|
|
3571
|
+
syntax: "SUBSCRIBE channel [channel ...]",
|
|
3572
|
+
parameters: [[10, 31]],
|
|
3573
|
+
tokens: []
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
name: "SUBSTR",
|
|
3577
|
+
arity: 4,
|
|
3578
|
+
group: "string",
|
|
3579
|
+
since: "1.0.0",
|
|
3580
|
+
summary: "Returns a substring from a string value.",
|
|
3581
|
+
syntax: "SUBSTR key start end",
|
|
3582
|
+
parameters: [
|
|
3583
|
+
[7, 10],
|
|
3584
|
+
[11, 16],
|
|
3585
|
+
[17, 20]
|
|
3586
|
+
],
|
|
3587
|
+
tokens: [],
|
|
3588
|
+
deprecated: "2.0.0"
|
|
3589
|
+
},
|
|
3590
|
+
{
|
|
3591
|
+
name: "SUNION",
|
|
3592
|
+
arity: -2,
|
|
3593
|
+
group: "set",
|
|
3594
|
+
since: "1.0.0",
|
|
3595
|
+
summary: "Returns the union of multiple sets.",
|
|
3596
|
+
syntax: "SUNION key [key ...]",
|
|
3597
|
+
parameters: [[7, 20]],
|
|
3598
|
+
tokens: []
|
|
3599
|
+
},
|
|
3600
|
+
{
|
|
3601
|
+
name: "SUNIONSTORE",
|
|
3602
|
+
arity: -3,
|
|
3603
|
+
group: "set",
|
|
3604
|
+
since: "1.0.0",
|
|
3605
|
+
summary: "Stores the union of multiple sets in a key.",
|
|
3606
|
+
syntax: "SUNIONSTORE destination key [key ...]",
|
|
3607
|
+
parameters: [[12, 23], [24, 37]],
|
|
3608
|
+
tokens: []
|
|
3609
|
+
},
|
|
3610
|
+
{
|
|
3611
|
+
name: "SUNSUBSCRIBE",
|
|
3612
|
+
arity: -1,
|
|
3613
|
+
group: "pubsub",
|
|
3614
|
+
since: "7.0.0",
|
|
3615
|
+
summary: "Stops listening to messages posted to shard channels.",
|
|
3616
|
+
syntax: "SUNSUBSCRIBE [shardchannel [shardchannel ...]]",
|
|
3617
|
+
parameters: [[13, 46]],
|
|
3618
|
+
tokens: []
|
|
3619
|
+
},
|
|
3620
|
+
{
|
|
3621
|
+
name: "SWAPDB",
|
|
3622
|
+
arity: 3,
|
|
3623
|
+
group: "server",
|
|
3624
|
+
since: "4.0.0",
|
|
3625
|
+
summary: "Swaps two Redis databases.",
|
|
3626
|
+
syntax: "SWAPDB index1 index2",
|
|
3627
|
+
parameters: [[7, 13], [14, 20]],
|
|
3628
|
+
tokens: []
|
|
3629
|
+
},
|
|
3630
|
+
{
|
|
3631
|
+
name: "SYNC",
|
|
3632
|
+
arity: 1,
|
|
3633
|
+
group: "server",
|
|
3634
|
+
since: "1.0.0",
|
|
3635
|
+
summary: "An internal command used in replication.",
|
|
3636
|
+
syntax: "SYNC",
|
|
3637
|
+
parameters: [],
|
|
3638
|
+
tokens: []
|
|
3639
|
+
},
|
|
3640
|
+
{
|
|
3641
|
+
name: "TIME",
|
|
3642
|
+
arity: 1,
|
|
3643
|
+
group: "server",
|
|
3644
|
+
since: "2.6.0",
|
|
3645
|
+
summary: "Returns the server time.",
|
|
3646
|
+
syntax: "TIME",
|
|
3647
|
+
parameters: [],
|
|
3648
|
+
tokens: []
|
|
3649
|
+
},
|
|
3650
|
+
{
|
|
3651
|
+
name: "TOUCH",
|
|
3652
|
+
arity: -2,
|
|
3653
|
+
group: "generic",
|
|
3654
|
+
since: "3.2.1",
|
|
3655
|
+
summary: "Returns the number of existing keys out of those specified after updating the time they were last accessed.",
|
|
3656
|
+
syntax: "TOUCH key [key ...]",
|
|
3657
|
+
parameters: [[6, 19]],
|
|
3658
|
+
tokens: []
|
|
3659
|
+
},
|
|
3660
|
+
{
|
|
3661
|
+
name: "TTL",
|
|
3662
|
+
arity: 2,
|
|
3663
|
+
group: "generic",
|
|
3664
|
+
since: "1.0.0",
|
|
3665
|
+
summary: "Returns the expiration time in seconds of a key.",
|
|
3666
|
+
syntax: "TTL key",
|
|
3667
|
+
parameters: [[4, 7]],
|
|
3668
|
+
tokens: []
|
|
3669
|
+
},
|
|
3670
|
+
{
|
|
3671
|
+
name: "TYPE",
|
|
3672
|
+
arity: 2,
|
|
3673
|
+
group: "generic",
|
|
3674
|
+
since: "1.0.0",
|
|
3675
|
+
summary: "Determines the type of value stored at a key.",
|
|
3676
|
+
syntax: "TYPE key",
|
|
3677
|
+
parameters: [[5, 8]],
|
|
3678
|
+
tokens: []
|
|
3679
|
+
},
|
|
3680
|
+
{
|
|
3681
|
+
name: "UNLINK",
|
|
3682
|
+
arity: -2,
|
|
3683
|
+
group: "generic",
|
|
3684
|
+
since: "4.0.0",
|
|
3685
|
+
summary: "Asynchronously deletes one or more keys.",
|
|
3686
|
+
syntax: "UNLINK key [key ...]",
|
|
3687
|
+
parameters: [[7, 20]],
|
|
3688
|
+
tokens: []
|
|
3689
|
+
},
|
|
3690
|
+
{
|
|
3691
|
+
name: "UNSUBSCRIBE",
|
|
3692
|
+
arity: -1,
|
|
3693
|
+
group: "pubsub",
|
|
3694
|
+
since: "2.0.0",
|
|
3695
|
+
summary: "Stops listening to messages posted to channels.",
|
|
3696
|
+
syntax: "UNSUBSCRIBE [channel [channel ...]]",
|
|
3697
|
+
parameters: [[12, 35]],
|
|
3698
|
+
tokens: []
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
name: "UNWATCH",
|
|
3702
|
+
arity: 1,
|
|
3703
|
+
group: "transactions",
|
|
3704
|
+
since: "2.2.0",
|
|
3705
|
+
summary: "Forgets about watched keys of a transaction.",
|
|
3706
|
+
syntax: "UNWATCH",
|
|
3707
|
+
parameters: [],
|
|
3708
|
+
tokens: []
|
|
3709
|
+
},
|
|
3710
|
+
{
|
|
3711
|
+
name: "WAIT",
|
|
3712
|
+
arity: 3,
|
|
3713
|
+
group: "generic",
|
|
3714
|
+
since: "3.0.0",
|
|
3715
|
+
summary: "Blocks until the asynchronous replication of all preceding write commands sent by the connection is completed.",
|
|
3716
|
+
syntax: "WAIT numreplicas timeout",
|
|
3717
|
+
parameters: [[5, 16], [17, 24]],
|
|
3718
|
+
tokens: []
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
name: "WAITAOF",
|
|
3722
|
+
arity: 4,
|
|
3723
|
+
group: "generic",
|
|
3724
|
+
since: "7.2.0",
|
|
3725
|
+
summary: "Blocks until all of the preceding write commands sent by the connection are written to the append-only file of the master and/or replicas.",
|
|
3726
|
+
syntax: "WAITAOF numlocal numreplicas timeout",
|
|
3727
|
+
parameters: [
|
|
3728
|
+
[8, 16],
|
|
3729
|
+
[17, 28],
|
|
3730
|
+
[29, 36]
|
|
3731
|
+
],
|
|
3732
|
+
tokens: []
|
|
3733
|
+
},
|
|
3734
|
+
{
|
|
3735
|
+
name: "WATCH",
|
|
3736
|
+
arity: -2,
|
|
3737
|
+
group: "transactions",
|
|
3738
|
+
since: "2.2.0",
|
|
3739
|
+
summary: "Monitors changes to keys to determine the execution of a transaction.",
|
|
3740
|
+
syntax: "WATCH key [key ...]",
|
|
3741
|
+
parameters: [[6, 19]],
|
|
3742
|
+
tokens: []
|
|
3743
|
+
},
|
|
3744
|
+
{
|
|
3745
|
+
name: "XACK",
|
|
3746
|
+
arity: -4,
|
|
3747
|
+
group: "stream",
|
|
3748
|
+
since: "5.0.0",
|
|
3749
|
+
summary: "Returns the number of messages that were successfully acknowledged by the consumer group member of a stream.",
|
|
3750
|
+
syntax: "XACK key group id [id ...]",
|
|
3751
|
+
parameters: [
|
|
3752
|
+
[5, 8],
|
|
3753
|
+
[9, 14],
|
|
3754
|
+
[15, 26]
|
|
3755
|
+
],
|
|
3756
|
+
tokens: []
|
|
3757
|
+
},
|
|
3758
|
+
{
|
|
3759
|
+
name: "XADD",
|
|
3760
|
+
arity: -5,
|
|
3761
|
+
group: "stream",
|
|
3762
|
+
since: "5.0.0",
|
|
3763
|
+
summary: "Appends a new message to a stream. Creates the key if it doesn't exist.",
|
|
3764
|
+
syntax: "XADD key [NOMKSTREAM] [<MAXLEN | MINID> [= | ~] threshold [LIMIT count]] <* | id> field value [field value ...]",
|
|
3765
|
+
parameters: [
|
|
3766
|
+
[5, 8],
|
|
3767
|
+
[9, 21],
|
|
3768
|
+
[22, 72],
|
|
3769
|
+
[73, 81],
|
|
3770
|
+
[82, 111]
|
|
3771
|
+
],
|
|
3772
|
+
tokens: [
|
|
3773
|
+
"*",
|
|
3774
|
+
"=",
|
|
3775
|
+
"LIMIT",
|
|
3776
|
+
"MAXLEN",
|
|
3777
|
+
"MINID",
|
|
3778
|
+
"NOMKSTREAM",
|
|
3779
|
+
"~"
|
|
3780
|
+
]
|
|
3781
|
+
},
|
|
3782
|
+
{
|
|
3783
|
+
name: "XAUTOCLAIM",
|
|
3784
|
+
arity: -6,
|
|
3785
|
+
group: "stream",
|
|
3786
|
+
since: "6.2.0",
|
|
3787
|
+
summary: "Changes, or acquires, ownership of messages in a consumer group, as if the messages were delivered to as consumer group member.",
|
|
3788
|
+
syntax: "XAUTOCLAIM key group consumer min-idle-time start [COUNT count] [JUSTID]",
|
|
3789
|
+
parameters: [
|
|
3790
|
+
[11, 14],
|
|
3791
|
+
[15, 20],
|
|
3792
|
+
[21, 29],
|
|
3793
|
+
[30, 43],
|
|
3794
|
+
[44, 49],
|
|
3795
|
+
[50, 63],
|
|
3796
|
+
[64, 72]
|
|
3797
|
+
],
|
|
3798
|
+
tokens: ["COUNT", "JUSTID"]
|
|
3799
|
+
},
|
|
3800
|
+
{
|
|
3801
|
+
name: "XCLAIM",
|
|
3802
|
+
arity: -6,
|
|
3803
|
+
group: "stream",
|
|
3804
|
+
since: "5.0.0",
|
|
3805
|
+
summary: "Changes, or acquires, ownership of a message in a consumer group, as if the message was delivered a consumer group member.",
|
|
3806
|
+
syntax: "XCLAIM key group consumer min-idle-time id [id ...] [IDLE ms] [TIME unix-time-milliseconds] [RETRYCOUNT count] [FORCE] [JUSTID] [LASTID lastid]",
|
|
3807
|
+
parameters: [
|
|
3808
|
+
[7, 10],
|
|
3809
|
+
[11, 16],
|
|
3810
|
+
[17, 25],
|
|
3811
|
+
[26, 39],
|
|
3812
|
+
[40, 51],
|
|
3813
|
+
[52, 61],
|
|
3814
|
+
[62, 91],
|
|
3815
|
+
[92, 110],
|
|
3816
|
+
[111, 118],
|
|
3817
|
+
[119, 127],
|
|
3818
|
+
[128, 143]
|
|
3819
|
+
],
|
|
3820
|
+
tokens: [
|
|
3821
|
+
"FORCE",
|
|
3822
|
+
"IDLE",
|
|
3823
|
+
"JUSTID",
|
|
3824
|
+
"LASTID",
|
|
3825
|
+
"RETRYCOUNT",
|
|
3826
|
+
"TIME"
|
|
3827
|
+
]
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
name: "XDEL",
|
|
3831
|
+
arity: -3,
|
|
3832
|
+
group: "stream",
|
|
3833
|
+
since: "5.0.0",
|
|
3834
|
+
summary: "Returns the number of messages after removing them from a stream.",
|
|
3835
|
+
syntax: "XDEL key id [id ...]",
|
|
3836
|
+
parameters: [[5, 8], [9, 20]],
|
|
3837
|
+
tokens: []
|
|
3838
|
+
},
|
|
3839
|
+
{
|
|
3840
|
+
name: "XGROUP",
|
|
3841
|
+
arity: -2,
|
|
3842
|
+
group: "stream",
|
|
3843
|
+
since: "5.0.0",
|
|
3844
|
+
summary: "A container for consumer groups commands.",
|
|
3845
|
+
syntax: "XGROUP",
|
|
3846
|
+
parameters: [],
|
|
3847
|
+
tokens: []
|
|
3848
|
+
},
|
|
3849
|
+
{
|
|
3850
|
+
name: "XGROUP CREATE",
|
|
3851
|
+
arity: -5,
|
|
3852
|
+
group: "stream",
|
|
3853
|
+
since: "5.0.0",
|
|
3854
|
+
summary: "Creates a consumer group.",
|
|
3855
|
+
syntax: "XGROUP CREATE key group <id | $> [MKSTREAM] [ENTRIESREAD entries-read]",
|
|
3856
|
+
parameters: [
|
|
3857
|
+
[14, 17],
|
|
3858
|
+
[18, 23],
|
|
3859
|
+
[24, 32],
|
|
3860
|
+
[33, 43],
|
|
3861
|
+
[44, 70]
|
|
3862
|
+
],
|
|
3863
|
+
tokens: [
|
|
3864
|
+
"$",
|
|
3865
|
+
"ENTRIESREAD",
|
|
3866
|
+
"MKSTREAM"
|
|
3867
|
+
]
|
|
3868
|
+
},
|
|
3869
|
+
{
|
|
3870
|
+
name: "XGROUP CREATECONSUMER",
|
|
3871
|
+
arity: 5,
|
|
3872
|
+
group: "stream",
|
|
3873
|
+
since: "6.2.0",
|
|
3874
|
+
summary: "Creates a consumer in a consumer group.",
|
|
3875
|
+
syntax: "XGROUP CREATECONSUMER key group consumer",
|
|
3876
|
+
parameters: [
|
|
3877
|
+
[22, 25],
|
|
3878
|
+
[26, 31],
|
|
3879
|
+
[32, 40]
|
|
3880
|
+
],
|
|
3881
|
+
tokens: []
|
|
3882
|
+
},
|
|
3883
|
+
{
|
|
3884
|
+
name: "XGROUP DELCONSUMER",
|
|
3885
|
+
arity: 5,
|
|
3886
|
+
group: "stream",
|
|
3887
|
+
since: "5.0.0",
|
|
3888
|
+
summary: "Deletes a consumer from a consumer group.",
|
|
3889
|
+
syntax: "XGROUP DELCONSUMER key group consumer",
|
|
3890
|
+
parameters: [
|
|
3891
|
+
[19, 22],
|
|
3892
|
+
[23, 28],
|
|
3893
|
+
[29, 37]
|
|
3894
|
+
],
|
|
3895
|
+
tokens: []
|
|
3896
|
+
},
|
|
3897
|
+
{
|
|
3898
|
+
name: "XGROUP DESTROY",
|
|
3899
|
+
arity: 4,
|
|
3900
|
+
group: "stream",
|
|
3901
|
+
since: "5.0.0",
|
|
3902
|
+
summary: "Destroys a consumer group.",
|
|
3903
|
+
syntax: "XGROUP DESTROY key group",
|
|
3904
|
+
parameters: [[15, 18], [19, 24]],
|
|
3905
|
+
tokens: []
|
|
3906
|
+
},
|
|
3907
|
+
{
|
|
3908
|
+
name: "XGROUP HELP",
|
|
3909
|
+
arity: 2,
|
|
3910
|
+
group: "stream",
|
|
3911
|
+
since: "5.0.0",
|
|
3912
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
3913
|
+
syntax: "XGROUP HELP",
|
|
3914
|
+
parameters: [],
|
|
3915
|
+
tokens: []
|
|
3916
|
+
},
|
|
3917
|
+
{
|
|
3918
|
+
name: "XGROUP SETID",
|
|
3919
|
+
arity: -5,
|
|
3920
|
+
group: "stream",
|
|
3921
|
+
since: "5.0.0",
|
|
3922
|
+
summary: "Sets the last-delivered ID of a consumer group.",
|
|
3923
|
+
syntax: "XGROUP SETID key group <id | $> [ENTRIESREAD entries-read]",
|
|
3924
|
+
parameters: [
|
|
3925
|
+
[13, 16],
|
|
3926
|
+
[17, 22],
|
|
3927
|
+
[23, 31],
|
|
3928
|
+
[32, 58]
|
|
3929
|
+
],
|
|
3930
|
+
tokens: ["$", "ENTRIESREAD"]
|
|
3931
|
+
},
|
|
3932
|
+
{
|
|
3933
|
+
name: "XINFO",
|
|
3934
|
+
arity: -2,
|
|
3935
|
+
group: "stream",
|
|
3936
|
+
since: "5.0.0",
|
|
3937
|
+
summary: "A container for stream introspection commands.",
|
|
3938
|
+
syntax: "XINFO",
|
|
3939
|
+
parameters: [],
|
|
3940
|
+
tokens: []
|
|
3941
|
+
},
|
|
3942
|
+
{
|
|
3943
|
+
name: "XINFO CONSUMERS",
|
|
3944
|
+
arity: 4,
|
|
3945
|
+
group: "stream",
|
|
3946
|
+
since: "5.0.0",
|
|
3947
|
+
summary: "Returns a list of the consumers in a consumer group.",
|
|
3948
|
+
syntax: "XINFO CONSUMERS key group",
|
|
3949
|
+
parameters: [[16, 19], [20, 25]],
|
|
3950
|
+
tokens: []
|
|
3951
|
+
},
|
|
3952
|
+
{
|
|
3953
|
+
name: "XINFO GROUPS",
|
|
3954
|
+
arity: 3,
|
|
3955
|
+
group: "stream",
|
|
3956
|
+
since: "5.0.0",
|
|
3957
|
+
summary: "Returns a list of the consumer groups of a stream.",
|
|
3958
|
+
syntax: "XINFO GROUPS key",
|
|
3959
|
+
parameters: [[13, 16]],
|
|
3960
|
+
tokens: []
|
|
3961
|
+
},
|
|
3962
|
+
{
|
|
3963
|
+
name: "XINFO HELP",
|
|
3964
|
+
arity: 2,
|
|
3965
|
+
group: "stream",
|
|
3966
|
+
since: "5.0.0",
|
|
3967
|
+
summary: "Returns helpful text about the different subcommands.",
|
|
3968
|
+
syntax: "XINFO HELP",
|
|
3969
|
+
parameters: [],
|
|
3970
|
+
tokens: []
|
|
3971
|
+
},
|
|
3972
|
+
{
|
|
3973
|
+
name: "XINFO STREAM",
|
|
3974
|
+
arity: -3,
|
|
3975
|
+
group: "stream",
|
|
3976
|
+
since: "5.0.0",
|
|
3977
|
+
summary: "Returns information about a stream.",
|
|
3978
|
+
syntax: "XINFO STREAM key [FULL [COUNT count]]",
|
|
3979
|
+
parameters: [[13, 16], [17, 37]],
|
|
3980
|
+
tokens: ["COUNT", "FULL"]
|
|
3981
|
+
},
|
|
3982
|
+
{
|
|
3983
|
+
name: "XLEN",
|
|
3984
|
+
arity: 2,
|
|
3985
|
+
group: "stream",
|
|
3986
|
+
since: "5.0.0",
|
|
3987
|
+
summary: "Return the number of messages in a stream.",
|
|
3988
|
+
syntax: "XLEN key",
|
|
3989
|
+
parameters: [[5, 8]],
|
|
3990
|
+
tokens: []
|
|
3991
|
+
},
|
|
3992
|
+
{
|
|
3993
|
+
name: "XPENDING",
|
|
3994
|
+
arity: -3,
|
|
3995
|
+
group: "stream",
|
|
3996
|
+
since: "5.0.0",
|
|
3997
|
+
summary: "Returns the information and entries from a stream consumer group's pending entries list.",
|
|
3998
|
+
syntax: "XPENDING key group [[IDLE min-idle-time] start end count [consumer]]",
|
|
3999
|
+
parameters: [
|
|
4000
|
+
[9, 12],
|
|
4001
|
+
[13, 18],
|
|
4002
|
+
[19, 68]
|
|
4003
|
+
],
|
|
4004
|
+
tokens: ["IDLE"]
|
|
4005
|
+
},
|
|
4006
|
+
{
|
|
4007
|
+
name: "XRANGE",
|
|
4008
|
+
arity: -4,
|
|
4009
|
+
group: "stream",
|
|
4010
|
+
since: "5.0.0",
|
|
4011
|
+
summary: "Returns the messages from a stream within a range of IDs.",
|
|
4012
|
+
syntax: "XRANGE key start end [COUNT count]",
|
|
4013
|
+
parameters: [
|
|
4014
|
+
[7, 10],
|
|
4015
|
+
[11, 16],
|
|
4016
|
+
[17, 20],
|
|
4017
|
+
[21, 34]
|
|
4018
|
+
],
|
|
4019
|
+
tokens: ["COUNT"]
|
|
4020
|
+
},
|
|
4021
|
+
{
|
|
4022
|
+
name: "XREAD",
|
|
4023
|
+
arity: -4,
|
|
4024
|
+
group: "stream",
|
|
4025
|
+
since: "5.0.0",
|
|
4026
|
+
summary: "Returns messages from multiple streams with IDs greater than the ones requested. Blocks until a message is available otherwise.",
|
|
4027
|
+
syntax: "XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] id [id ...]",
|
|
4028
|
+
parameters: [
|
|
4029
|
+
[6, 19],
|
|
4030
|
+
[20, 40],
|
|
4031
|
+
[41, 74]
|
|
4032
|
+
],
|
|
4033
|
+
tokens: [
|
|
4034
|
+
"BLOCK",
|
|
4035
|
+
"COUNT",
|
|
4036
|
+
"STREAMS"
|
|
4037
|
+
]
|
|
4038
|
+
},
|
|
4039
|
+
{
|
|
4040
|
+
name: "XREADGROUP",
|
|
4041
|
+
arity: -7,
|
|
4042
|
+
group: "stream",
|
|
4043
|
+
since: "5.0.0",
|
|
4044
|
+
summary: "Returns new or historical messages from a stream for a consumer in a group. Blocks until a message is available otherwise.",
|
|
4045
|
+
syntax: "XREADGROUP GROUP group consumer [COUNT count] [BLOCK milliseconds] [NOACK] STREAMS key [key ...] id [id ...]",
|
|
4046
|
+
parameters: [
|
|
4047
|
+
[11, 31],
|
|
4048
|
+
[32, 45],
|
|
4049
|
+
[46, 66],
|
|
4050
|
+
[67, 74],
|
|
4051
|
+
[75, 108]
|
|
4052
|
+
],
|
|
4053
|
+
tokens: [
|
|
4054
|
+
"BLOCK",
|
|
4055
|
+
"COUNT",
|
|
4056
|
+
"GROUP",
|
|
4057
|
+
"NOACK",
|
|
4058
|
+
"STREAMS"
|
|
4059
|
+
]
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
name: "XREVRANGE",
|
|
4063
|
+
arity: -4,
|
|
4064
|
+
group: "stream",
|
|
4065
|
+
since: "5.0.0",
|
|
4066
|
+
summary: "Returns the messages from a stream within a range of IDs in reverse order.",
|
|
4067
|
+
syntax: "XREVRANGE key end start [COUNT count]",
|
|
4068
|
+
parameters: [
|
|
4069
|
+
[10, 13],
|
|
4070
|
+
[14, 17],
|
|
4071
|
+
[18, 23],
|
|
4072
|
+
[24, 37]
|
|
4073
|
+
],
|
|
4074
|
+
tokens: ["COUNT"]
|
|
4075
|
+
},
|
|
4076
|
+
{
|
|
4077
|
+
name: "XSETID",
|
|
4078
|
+
arity: -3,
|
|
4079
|
+
group: "stream",
|
|
4080
|
+
since: "5.0.0",
|
|
4081
|
+
summary: "An internal command for replicating stream values.",
|
|
4082
|
+
syntax: "XSETID key last-id [ENTRIESADDED entries-added] [MAXDELETEDID max-deleted-id]",
|
|
4083
|
+
parameters: [
|
|
4084
|
+
[7, 10],
|
|
4085
|
+
[11, 18],
|
|
4086
|
+
[19, 47],
|
|
4087
|
+
[48, 77]
|
|
4088
|
+
],
|
|
4089
|
+
tokens: ["ENTRIESADDED", "MAXDELETEDID"]
|
|
4090
|
+
},
|
|
4091
|
+
{
|
|
4092
|
+
name: "XTRIM",
|
|
4093
|
+
arity: -4,
|
|
4094
|
+
group: "stream",
|
|
4095
|
+
since: "5.0.0",
|
|
4096
|
+
summary: "Deletes messages from the beginning of a stream.",
|
|
4097
|
+
syntax: "XTRIM key <MAXLEN | MINID> [= | ~] threshold [LIMIT count]",
|
|
4098
|
+
parameters: [[6, 9], [10, 58]],
|
|
4099
|
+
tokens: [
|
|
4100
|
+
"=",
|
|
4101
|
+
"LIMIT",
|
|
4102
|
+
"MAXLEN",
|
|
4103
|
+
"MINID",
|
|
4104
|
+
"~"
|
|
4105
|
+
]
|
|
4106
|
+
},
|
|
4107
|
+
{
|
|
4108
|
+
name: "ZADD",
|
|
4109
|
+
arity: -4,
|
|
4110
|
+
group: "sorted-set",
|
|
4111
|
+
since: "1.2.0",
|
|
4112
|
+
summary: "Adds one or more members to a sorted set, or updates their scores. Creates the key if it doesn't exist.",
|
|
4113
|
+
syntax: "ZADD key [NX | XX] [GT | LT] [CH] [INCR] score member [score member ...]",
|
|
4114
|
+
parameters: [
|
|
4115
|
+
[5, 8],
|
|
4116
|
+
[9, 18],
|
|
4117
|
+
[19, 28],
|
|
4118
|
+
[29, 33],
|
|
4119
|
+
[34, 40],
|
|
4120
|
+
[41, 72]
|
|
4121
|
+
],
|
|
4122
|
+
tokens: [
|
|
4123
|
+
"CH",
|
|
4124
|
+
"GT",
|
|
4125
|
+
"INCR",
|
|
4126
|
+
"LT",
|
|
4127
|
+
"NX",
|
|
4128
|
+
"XX"
|
|
4129
|
+
]
|
|
4130
|
+
},
|
|
4131
|
+
{
|
|
4132
|
+
name: "ZCARD",
|
|
4133
|
+
arity: 2,
|
|
4134
|
+
group: "sorted-set",
|
|
4135
|
+
since: "1.2.0",
|
|
4136
|
+
summary: "Returns the number of members in a sorted set.",
|
|
4137
|
+
syntax: "ZCARD key",
|
|
4138
|
+
parameters: [[6, 9]],
|
|
4139
|
+
tokens: []
|
|
4140
|
+
},
|
|
4141
|
+
{
|
|
4142
|
+
name: "ZCOUNT",
|
|
4143
|
+
arity: 4,
|
|
4144
|
+
group: "sorted-set",
|
|
4145
|
+
since: "2.0.0",
|
|
4146
|
+
summary: "Returns the count of members in a sorted set that have scores within a range.",
|
|
4147
|
+
syntax: "ZCOUNT key min max",
|
|
4148
|
+
parameters: [
|
|
4149
|
+
[7, 10],
|
|
4150
|
+
[11, 14],
|
|
4151
|
+
[15, 18]
|
|
4152
|
+
],
|
|
4153
|
+
tokens: []
|
|
4154
|
+
},
|
|
4155
|
+
{
|
|
4156
|
+
name: "ZDIFF",
|
|
4157
|
+
arity: -3,
|
|
4158
|
+
group: "sorted-set",
|
|
4159
|
+
since: "6.2.0",
|
|
4160
|
+
summary: "Returns the difference between multiple sorted sets.",
|
|
4161
|
+
syntax: "ZDIFF numkeys key [key ...] [WITHSCORES]",
|
|
4162
|
+
parameters: [
|
|
4163
|
+
[6, 13],
|
|
4164
|
+
[14, 27],
|
|
4165
|
+
[28, 40]
|
|
4166
|
+
],
|
|
4167
|
+
tokens: ["WITHSCORES"]
|
|
4168
|
+
},
|
|
4169
|
+
{
|
|
4170
|
+
name: "ZDIFFSTORE",
|
|
4171
|
+
arity: -4,
|
|
4172
|
+
group: "sorted-set",
|
|
4173
|
+
since: "6.2.0",
|
|
4174
|
+
summary: "Stores the difference of multiple sorted sets in a key.",
|
|
4175
|
+
syntax: "ZDIFFSTORE destination numkeys key [key ...]",
|
|
4176
|
+
parameters: [
|
|
4177
|
+
[11, 22],
|
|
4178
|
+
[23, 30],
|
|
4179
|
+
[31, 44]
|
|
4180
|
+
],
|
|
4181
|
+
tokens: []
|
|
4182
|
+
},
|
|
4183
|
+
{
|
|
4184
|
+
name: "ZINCRBY",
|
|
4185
|
+
arity: 4,
|
|
4186
|
+
group: "sorted-set",
|
|
4187
|
+
since: "1.2.0",
|
|
4188
|
+
summary: "Increments the score of a member in a sorted set.",
|
|
4189
|
+
syntax: "ZINCRBY key increment member",
|
|
4190
|
+
parameters: [
|
|
4191
|
+
[8, 11],
|
|
4192
|
+
[12, 21],
|
|
4193
|
+
[22, 28]
|
|
4194
|
+
],
|
|
4195
|
+
tokens: []
|
|
4196
|
+
},
|
|
4197
|
+
{
|
|
4198
|
+
name: "ZINTER",
|
|
4199
|
+
arity: -3,
|
|
4200
|
+
group: "sorted-set",
|
|
4201
|
+
since: "6.2.0",
|
|
4202
|
+
summary: "Returns the intersect of multiple sorted sets.",
|
|
4203
|
+
syntax: "ZINTER numkeys key [key ...] [WEIGHTS weight [WEIGHTS weight ...]] [AGGREGATE <SUM | MIN | MAX>] [WITHSCORES]",
|
|
4204
|
+
parameters: [
|
|
4205
|
+
[7, 14],
|
|
4206
|
+
[15, 28],
|
|
4207
|
+
[29, 66],
|
|
4208
|
+
[67, 96],
|
|
4209
|
+
[97, 109]
|
|
4210
|
+
],
|
|
4211
|
+
tokens: [
|
|
4212
|
+
"AGGREGATE",
|
|
4213
|
+
"MAX",
|
|
4214
|
+
"MIN",
|
|
4215
|
+
"SUM",
|
|
4216
|
+
"WEIGHTS",
|
|
4217
|
+
"WITHSCORES"
|
|
4218
|
+
]
|
|
4219
|
+
},
|
|
4220
|
+
{
|
|
4221
|
+
name: "ZINTERCARD",
|
|
4222
|
+
arity: -3,
|
|
4223
|
+
group: "sorted-set",
|
|
4224
|
+
since: "7.0.0",
|
|
4225
|
+
summary: "Returns the number of members of the intersect of multiple sorted sets.",
|
|
4226
|
+
syntax: "ZINTERCARD numkeys key [key ...] [LIMIT limit]",
|
|
4227
|
+
parameters: [
|
|
4228
|
+
[11, 18],
|
|
4229
|
+
[19, 32],
|
|
4230
|
+
[33, 46]
|
|
4231
|
+
],
|
|
4232
|
+
tokens: ["LIMIT"]
|
|
4233
|
+
},
|
|
4234
|
+
{
|
|
4235
|
+
name: "ZINTERSTORE",
|
|
4236
|
+
arity: -4,
|
|
4237
|
+
group: "sorted-set",
|
|
4238
|
+
since: "2.0.0",
|
|
4239
|
+
summary: "Stores the intersect of multiple sorted sets in a key.",
|
|
4240
|
+
syntax: "ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight [WEIGHTS weight ...]] [AGGREGATE <SUM | MIN | MAX>]",
|
|
4241
|
+
parameters: [
|
|
4242
|
+
[12, 23],
|
|
4243
|
+
[24, 31],
|
|
4244
|
+
[32, 45],
|
|
4245
|
+
[46, 83],
|
|
4246
|
+
[84, 113]
|
|
4247
|
+
],
|
|
4248
|
+
tokens: [
|
|
4249
|
+
"AGGREGATE",
|
|
4250
|
+
"MAX",
|
|
4251
|
+
"MIN",
|
|
4252
|
+
"SUM",
|
|
4253
|
+
"WEIGHTS"
|
|
4254
|
+
]
|
|
4255
|
+
},
|
|
4256
|
+
{
|
|
4257
|
+
name: "ZLEXCOUNT",
|
|
4258
|
+
arity: 4,
|
|
4259
|
+
group: "sorted-set",
|
|
4260
|
+
since: "2.8.9",
|
|
4261
|
+
summary: "Returns the number of members in a sorted set within a lexicographical range.",
|
|
4262
|
+
syntax: "ZLEXCOUNT key min max",
|
|
4263
|
+
parameters: [
|
|
4264
|
+
[10, 13],
|
|
4265
|
+
[14, 17],
|
|
4266
|
+
[18, 21]
|
|
4267
|
+
],
|
|
4268
|
+
tokens: []
|
|
4269
|
+
},
|
|
4270
|
+
{
|
|
4271
|
+
name: "ZMPOP",
|
|
4272
|
+
arity: -4,
|
|
4273
|
+
group: "sorted-set",
|
|
4274
|
+
since: "7.0.0",
|
|
4275
|
+
summary: "Returns the highest- or lowest-scoring members from one or more sorted sets after removing them. Deletes the sorted set if the last member was popped.",
|
|
4276
|
+
syntax: "ZMPOP numkeys key [key ...] <MIN | MAX> [COUNT count]",
|
|
4277
|
+
parameters: [
|
|
4278
|
+
[6, 13],
|
|
4279
|
+
[14, 27],
|
|
4280
|
+
[28, 39],
|
|
4281
|
+
[40, 53]
|
|
4282
|
+
],
|
|
4283
|
+
tokens: [
|
|
4284
|
+
"COUNT",
|
|
4285
|
+
"MAX",
|
|
4286
|
+
"MIN"
|
|
4287
|
+
]
|
|
4288
|
+
},
|
|
4289
|
+
{
|
|
4290
|
+
name: "ZMSCORE",
|
|
4291
|
+
arity: -3,
|
|
4292
|
+
group: "sorted-set",
|
|
4293
|
+
since: "6.2.0",
|
|
4294
|
+
summary: "Returns the score of one or more members in a sorted set.",
|
|
4295
|
+
syntax: "ZMSCORE key member [member ...]",
|
|
4296
|
+
parameters: [[8, 11], [12, 31]],
|
|
4297
|
+
tokens: []
|
|
4298
|
+
},
|
|
4299
|
+
{
|
|
4300
|
+
name: "ZPOPMAX",
|
|
4301
|
+
arity: -2,
|
|
4302
|
+
group: "sorted-set",
|
|
4303
|
+
since: "5.0.0",
|
|
4304
|
+
summary: "Returns the highest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped.",
|
|
4305
|
+
syntax: "ZPOPMAX key [count]",
|
|
4306
|
+
parameters: [[8, 11], [12, 19]],
|
|
4307
|
+
tokens: []
|
|
4308
|
+
},
|
|
4309
|
+
{
|
|
4310
|
+
name: "ZPOPMIN",
|
|
4311
|
+
arity: -2,
|
|
4312
|
+
group: "sorted-set",
|
|
4313
|
+
since: "5.0.0",
|
|
4314
|
+
summary: "Returns the lowest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped.",
|
|
4315
|
+
syntax: "ZPOPMIN key [count]",
|
|
4316
|
+
parameters: [[8, 11], [12, 19]],
|
|
4317
|
+
tokens: []
|
|
4318
|
+
},
|
|
4319
|
+
{
|
|
4320
|
+
name: "ZRANDMEMBER",
|
|
4321
|
+
arity: -2,
|
|
4322
|
+
group: "sorted-set",
|
|
4323
|
+
since: "6.2.0",
|
|
4324
|
+
summary: "Returns one or more random members from a sorted set.",
|
|
4325
|
+
syntax: "ZRANDMEMBER key [count [WITHSCORES]]",
|
|
4326
|
+
parameters: [[12, 15], [16, 36]],
|
|
4327
|
+
tokens: ["WITHSCORES"]
|
|
4328
|
+
},
|
|
4329
|
+
{
|
|
4330
|
+
name: "ZRANGE",
|
|
4331
|
+
arity: -4,
|
|
4332
|
+
group: "sorted-set",
|
|
4333
|
+
since: "1.2.0",
|
|
4334
|
+
summary: "Returns members in a sorted set within a range of indexes.",
|
|
4335
|
+
syntax: "ZRANGE key start stop [BYSCORE | BYLEX] [REV] [LIMIT offset count] [WITHSCORES]",
|
|
4336
|
+
parameters: [
|
|
4337
|
+
[7, 10],
|
|
4338
|
+
[11, 16],
|
|
4339
|
+
[17, 21],
|
|
4340
|
+
[22, 39],
|
|
4341
|
+
[40, 45],
|
|
4342
|
+
[46, 66],
|
|
4343
|
+
[67, 79]
|
|
4344
|
+
],
|
|
4345
|
+
tokens: [
|
|
4346
|
+
"BYLEX",
|
|
4347
|
+
"BYSCORE",
|
|
4348
|
+
"LIMIT",
|
|
4349
|
+
"REV",
|
|
4350
|
+
"WITHSCORES"
|
|
4351
|
+
]
|
|
4352
|
+
},
|
|
4353
|
+
{
|
|
4354
|
+
name: "ZRANGEBYLEX",
|
|
4355
|
+
arity: -4,
|
|
4356
|
+
group: "sorted-set",
|
|
4357
|
+
since: "2.8.9",
|
|
4358
|
+
summary: "Returns members in a sorted set within a lexicographical range.",
|
|
4359
|
+
syntax: "ZRANGEBYLEX key min max [LIMIT offset count]",
|
|
4360
|
+
parameters: [
|
|
4361
|
+
[12, 15],
|
|
4362
|
+
[16, 19],
|
|
4363
|
+
[20, 23],
|
|
4364
|
+
[24, 44]
|
|
4365
|
+
],
|
|
4366
|
+
tokens: ["LIMIT"],
|
|
4367
|
+
deprecated: "6.2.0"
|
|
4368
|
+
},
|
|
4369
|
+
{
|
|
4370
|
+
name: "ZRANGEBYSCORE",
|
|
4371
|
+
arity: -4,
|
|
4372
|
+
group: "sorted-set",
|
|
4373
|
+
since: "1.0.5",
|
|
4374
|
+
summary: "Returns members in a sorted set within a range of scores.",
|
|
4375
|
+
syntax: "ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]",
|
|
4376
|
+
parameters: [
|
|
4377
|
+
[14, 17],
|
|
4378
|
+
[18, 21],
|
|
4379
|
+
[22, 25],
|
|
4380
|
+
[26, 38],
|
|
4381
|
+
[39, 59]
|
|
4382
|
+
],
|
|
4383
|
+
tokens: ["LIMIT", "WITHSCORES"],
|
|
4384
|
+
deprecated: "6.2.0"
|
|
4385
|
+
},
|
|
4386
|
+
{
|
|
4387
|
+
name: "ZRANGESTORE",
|
|
4388
|
+
arity: -5,
|
|
4389
|
+
group: "sorted-set",
|
|
4390
|
+
since: "6.2.0",
|
|
4391
|
+
summary: "Stores a range of members from sorted set in a key.",
|
|
4392
|
+
syntax: "ZRANGESTORE dst src min max [BYSCORE | BYLEX] [REV] [LIMIT offset count]",
|
|
4393
|
+
parameters: [
|
|
4394
|
+
[12, 15],
|
|
4395
|
+
[16, 19],
|
|
4396
|
+
[20, 23],
|
|
4397
|
+
[24, 27],
|
|
4398
|
+
[28, 45],
|
|
4399
|
+
[46, 51],
|
|
4400
|
+
[52, 72]
|
|
4401
|
+
],
|
|
4402
|
+
tokens: [
|
|
4403
|
+
"BYLEX",
|
|
4404
|
+
"BYSCORE",
|
|
4405
|
+
"LIMIT",
|
|
4406
|
+
"REV"
|
|
4407
|
+
]
|
|
4408
|
+
},
|
|
4409
|
+
{
|
|
4410
|
+
name: "ZRANK",
|
|
4411
|
+
arity: -3,
|
|
4412
|
+
group: "sorted-set",
|
|
4413
|
+
since: "2.0.0",
|
|
4414
|
+
summary: "Returns the index of a member in a sorted set ordered by ascending scores.",
|
|
4415
|
+
syntax: "ZRANK key member [WITHSCORE]",
|
|
4416
|
+
parameters: [
|
|
4417
|
+
[6, 9],
|
|
4418
|
+
[10, 16],
|
|
4419
|
+
[17, 28]
|
|
4420
|
+
],
|
|
4421
|
+
tokens: ["WITHSCORE"]
|
|
4422
|
+
},
|
|
4423
|
+
{
|
|
4424
|
+
name: "ZREM",
|
|
4425
|
+
arity: -3,
|
|
4426
|
+
group: "sorted-set",
|
|
4427
|
+
since: "1.2.0",
|
|
4428
|
+
summary: "Removes one or more members from a sorted set. Deletes the sorted set if all members were removed.",
|
|
4429
|
+
syntax: "ZREM key member [member ...]",
|
|
4430
|
+
parameters: [[5, 8], [9, 28]],
|
|
4431
|
+
tokens: []
|
|
4432
|
+
},
|
|
4433
|
+
{
|
|
4434
|
+
name: "ZREMRANGEBYLEX",
|
|
4435
|
+
arity: 4,
|
|
4436
|
+
group: "sorted-set",
|
|
4437
|
+
since: "2.8.9",
|
|
4438
|
+
summary: "Removes members in a sorted set within a lexicographical range. Deletes the sorted set if all members were removed.",
|
|
4439
|
+
syntax: "ZREMRANGEBYLEX key min max",
|
|
4440
|
+
parameters: [
|
|
4441
|
+
[15, 18],
|
|
4442
|
+
[19, 22],
|
|
4443
|
+
[23, 26]
|
|
4444
|
+
],
|
|
4445
|
+
tokens: []
|
|
4446
|
+
},
|
|
4447
|
+
{
|
|
4448
|
+
name: "ZREMRANGEBYRANK",
|
|
4449
|
+
arity: 4,
|
|
4450
|
+
group: "sorted-set",
|
|
4451
|
+
since: "2.0.0",
|
|
4452
|
+
summary: "Removes members in a sorted set within a range of indexes. Deletes the sorted set if all members were removed.",
|
|
4453
|
+
syntax: "ZREMRANGEBYRANK key start stop",
|
|
4454
|
+
parameters: [
|
|
4455
|
+
[16, 19],
|
|
4456
|
+
[20, 25],
|
|
4457
|
+
[26, 30]
|
|
4458
|
+
],
|
|
4459
|
+
tokens: []
|
|
4460
|
+
},
|
|
4461
|
+
{
|
|
4462
|
+
name: "ZREMRANGEBYSCORE",
|
|
4463
|
+
arity: 4,
|
|
4464
|
+
group: "sorted-set",
|
|
4465
|
+
since: "1.2.0",
|
|
4466
|
+
summary: "Removes members in a sorted set within a range of scores. Deletes the sorted set if all members were removed.",
|
|
4467
|
+
syntax: "ZREMRANGEBYSCORE key min max",
|
|
4468
|
+
parameters: [
|
|
4469
|
+
[17, 20],
|
|
4470
|
+
[21, 24],
|
|
4471
|
+
[25, 28]
|
|
4472
|
+
],
|
|
4473
|
+
tokens: []
|
|
4474
|
+
},
|
|
4475
|
+
{
|
|
4476
|
+
name: "ZREVRANGE",
|
|
4477
|
+
arity: -4,
|
|
4478
|
+
group: "sorted-set",
|
|
4479
|
+
since: "1.2.0",
|
|
4480
|
+
summary: "Returns members in a sorted set within a range of indexes in reverse order.",
|
|
4481
|
+
syntax: "ZREVRANGE key start stop [WITHSCORES]",
|
|
4482
|
+
parameters: [
|
|
4483
|
+
[10, 13],
|
|
4484
|
+
[14, 19],
|
|
4485
|
+
[20, 24],
|
|
4486
|
+
[25, 37]
|
|
4487
|
+
],
|
|
4488
|
+
tokens: ["WITHSCORES"],
|
|
4489
|
+
deprecated: "6.2.0"
|
|
4490
|
+
},
|
|
4491
|
+
{
|
|
4492
|
+
name: "ZREVRANGEBYLEX",
|
|
4493
|
+
arity: -4,
|
|
4494
|
+
group: "sorted-set",
|
|
4495
|
+
since: "2.8.9",
|
|
4496
|
+
summary: "Returns members in a sorted set within a lexicographical range in reverse order.",
|
|
4497
|
+
syntax: "ZREVRANGEBYLEX key max min [LIMIT offset count]",
|
|
4498
|
+
parameters: [
|
|
4499
|
+
[15, 18],
|
|
4500
|
+
[19, 22],
|
|
4501
|
+
[23, 26],
|
|
4502
|
+
[27, 47]
|
|
4503
|
+
],
|
|
4504
|
+
tokens: ["LIMIT"],
|
|
4505
|
+
deprecated: "6.2.0"
|
|
4506
|
+
},
|
|
4507
|
+
{
|
|
4508
|
+
name: "ZREVRANGEBYSCORE",
|
|
4509
|
+
arity: -4,
|
|
4510
|
+
group: "sorted-set",
|
|
4511
|
+
since: "2.2.0",
|
|
4512
|
+
summary: "Returns members in a sorted set within a range of scores in reverse order.",
|
|
4513
|
+
syntax: "ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]",
|
|
4514
|
+
parameters: [
|
|
4515
|
+
[17, 20],
|
|
4516
|
+
[21, 24],
|
|
4517
|
+
[25, 28],
|
|
4518
|
+
[29, 41],
|
|
4519
|
+
[42, 62]
|
|
4520
|
+
],
|
|
4521
|
+
tokens: ["LIMIT", "WITHSCORES"],
|
|
4522
|
+
deprecated: "6.2.0"
|
|
4523
|
+
},
|
|
4524
|
+
{
|
|
4525
|
+
name: "ZREVRANK",
|
|
4526
|
+
arity: -3,
|
|
4527
|
+
group: "sorted-set",
|
|
4528
|
+
since: "2.0.0",
|
|
4529
|
+
summary: "Returns the index of a member in a sorted set ordered by descending scores.",
|
|
4530
|
+
syntax: "ZREVRANK key member [WITHSCORE]",
|
|
4531
|
+
parameters: [
|
|
4532
|
+
[9, 12],
|
|
4533
|
+
[13, 19],
|
|
4534
|
+
[20, 31]
|
|
4535
|
+
],
|
|
4536
|
+
tokens: ["WITHSCORE"]
|
|
4537
|
+
},
|
|
4538
|
+
{
|
|
4539
|
+
name: "ZSCAN",
|
|
4540
|
+
arity: -3,
|
|
4541
|
+
group: "sorted-set",
|
|
4542
|
+
since: "2.8.0",
|
|
4543
|
+
summary: "Iterates over members and scores of a sorted set.",
|
|
4544
|
+
syntax: "ZSCAN key cursor [MATCH pattern] [COUNT count]",
|
|
4545
|
+
parameters: [
|
|
4546
|
+
[6, 9],
|
|
4547
|
+
[10, 16],
|
|
4548
|
+
[17, 32],
|
|
4549
|
+
[33, 46]
|
|
4550
|
+
],
|
|
4551
|
+
tokens: ["COUNT", "MATCH"]
|
|
4552
|
+
},
|
|
4553
|
+
{
|
|
4554
|
+
name: "ZSCORE",
|
|
4555
|
+
arity: 3,
|
|
4556
|
+
group: "sorted-set",
|
|
4557
|
+
since: "1.2.0",
|
|
4558
|
+
summary: "Returns the score of a member in a sorted set.",
|
|
4559
|
+
syntax: "ZSCORE key member",
|
|
4560
|
+
parameters: [[7, 10], [11, 17]],
|
|
4561
|
+
tokens: []
|
|
4562
|
+
},
|
|
4563
|
+
{
|
|
4564
|
+
name: "ZUNION",
|
|
4565
|
+
arity: -3,
|
|
4566
|
+
group: "sorted-set",
|
|
4567
|
+
since: "6.2.0",
|
|
4568
|
+
summary: "Returns the union of multiple sorted sets.",
|
|
4569
|
+
syntax: "ZUNION numkeys key [key ...] [WEIGHTS weight [WEIGHTS weight ...]] [AGGREGATE <SUM | MIN | MAX>] [WITHSCORES]",
|
|
4570
|
+
parameters: [
|
|
4571
|
+
[7, 14],
|
|
4572
|
+
[15, 28],
|
|
4573
|
+
[29, 66],
|
|
4574
|
+
[67, 96],
|
|
4575
|
+
[97, 109]
|
|
4576
|
+
],
|
|
4577
|
+
tokens: [
|
|
4578
|
+
"AGGREGATE",
|
|
4579
|
+
"MAX",
|
|
4580
|
+
"MIN",
|
|
4581
|
+
"SUM",
|
|
4582
|
+
"WEIGHTS",
|
|
4583
|
+
"WITHSCORES"
|
|
4584
|
+
]
|
|
4585
|
+
},
|
|
4586
|
+
{
|
|
4587
|
+
name: "ZUNIONSTORE",
|
|
4588
|
+
arity: -4,
|
|
4589
|
+
group: "sorted-set",
|
|
4590
|
+
since: "2.0.0",
|
|
4591
|
+
summary: "Stores the union of multiple sorted sets in a key.",
|
|
4592
|
+
syntax: "ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [WEIGHTS weight ...]] [AGGREGATE <SUM | MIN | MAX>]",
|
|
4593
|
+
parameters: [
|
|
4594
|
+
[12, 23],
|
|
4595
|
+
[24, 31],
|
|
4596
|
+
[32, 45],
|
|
4597
|
+
[46, 83],
|
|
4598
|
+
[84, 113]
|
|
4599
|
+
],
|
|
4600
|
+
tokens: [
|
|
4601
|
+
"AGGREGATE",
|
|
4602
|
+
"MAX",
|
|
4603
|
+
"MIN",
|
|
4604
|
+
"SUM",
|
|
4605
|
+
"WEIGHTS"
|
|
4606
|
+
]
|
|
4607
|
+
}
|
|
4608
|
+
];
|
|
4609
|
+
//#endregion
|
|
4610
|
+
export { REDIS_VERSION as n, REDIS_COMMANDS as t };
|