1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import { Callback } from "../types";
|
8 | export declare type RedisKey = string | Buffer;
|
9 | export declare type RedisValue = string | Buffer | number;
|
10 | export interface ResultTypes<Result, Context> {
|
11 | default: Promise<Result>;
|
12 | pipeline: ChainableCommander;
|
13 | }
|
14 | export interface ChainableCommander extends RedisCommander<{
|
15 | type: "pipeline";
|
16 | }> {
|
17 | length: number;
|
18 | }
|
19 | export declare type ClientContext = {
|
20 | type: keyof ResultTypes<unknown, unknown>;
|
21 | };
|
22 | export declare type Result<T, Context extends ClientContext> = ResultTypes<T, Context>[Context["type"]];
|
23 | interface RedisCommander<Context extends ClientContext = {
|
24 | type: "default";
|
25 | }> {
|
26 | |
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | call(command: string, callback?: Callback<unknown>): Result<unknown, Context>;
|
41 | call(command: string, args: (string | Buffer | number)[], callback?: Callback<unknown>): Result<unknown, Context>;
|
42 | call(...args: [
|
43 | command: string,
|
44 | ...args: (string | Buffer | number)[],
|
45 | callback: Callback<unknown>
|
46 | ]): Result<unknown, Context>;
|
47 | call(...args: [command: string, ...args: (string | Buffer | number)[]]): Result<unknown, Context>;
|
48 | callBuffer(command: string, callback?: Callback<unknown>): Result<unknown, Context>;
|
49 | callBuffer(command: string, args: (string | Buffer | number)[], callback?: Callback<unknown>): Result<unknown, Context>;
|
50 | callBuffer(...args: [
|
51 | command: string,
|
52 | ...args: (string | Buffer | number)[],
|
53 | callback: Callback<unknown>
|
54 | ]): Result<unknown, Context>;
|
55 | callBuffer(...args: [command: string, ...args: (string | Buffer | number)[]]): Result<unknown, Context>;
|
56 | |
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 | acl(subcommand: "CAT", callback?: Callback<unknown>): Result<unknown, Context>;
|
63 | acl(subcommand: "CAT", categoryname: string | Buffer, callback?: Callback<unknown>): Result<unknown, Context>;
|
64 | |
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | acl(...args: [
|
71 | subcommand: "DELUSER",
|
72 | ...usernames: (string | Buffer)[],
|
73 | callback: Callback<number>
|
74 | ]): Result<number, Context>;
|
75 | acl(...args: [subcommand: "DELUSER", ...usernames: (string | Buffer)[]]): Result<number, Context>;
|
76 | |
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 | acl(subcommand: "DRYRUN", username: string | Buffer, command: string | Buffer, callback?: Callback<string>): Result<string, Context>;
|
83 | aclBuffer(subcommand: "DRYRUN", username: string | Buffer, command: string | Buffer, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
84 | acl(...args: [
|
85 | subcommand: "DRYRUN",
|
86 | username: string | Buffer,
|
87 | command: string | Buffer,
|
88 | ...args: (string | Buffer | number)[],
|
89 | callback: Callback<string>
|
90 | ]): Result<string, Context>;
|
91 | aclBuffer(...args: [
|
92 | subcommand: "DRYRUN",
|
93 | username: string | Buffer,
|
94 | command: string | Buffer,
|
95 | ...args: (string | Buffer | number)[],
|
96 | callback: Callback<Buffer>
|
97 | ]): Result<Buffer, Context>;
|
98 | acl(...args: [
|
99 | subcommand: "DRYRUN",
|
100 | username: string | Buffer,
|
101 | command: string | Buffer,
|
102 | ...args: (string | Buffer | number)[]
|
103 | ]): Result<string, Context>;
|
104 | aclBuffer(...args: [
|
105 | subcommand: "DRYRUN",
|
106 | username: string | Buffer,
|
107 | command: string | Buffer,
|
108 | ...args: (string | Buffer | number)[]
|
109 | ]): Result<Buffer, Context>;
|
110 | |
111 |
|
112 |
|
113 |
|
114 |
|
115 |
|
116 | acl(subcommand: "GENPASS", callback?: Callback<string>): Result<string, Context>;
|
117 | aclBuffer(subcommand: "GENPASS", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
118 | acl(subcommand: "GENPASS", bits: number | string, callback?: Callback<string>): Result<string, Context>;
|
119 | aclBuffer(subcommand: "GENPASS", bits: number | string, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
120 | |
121 |
|
122 |
|
123 |
|
124 |
|
125 |
|
126 | acl(subcommand: "GETUSER", username: string | Buffer, callback?: Callback<string[] | null>): Result<string[] | null, Context>;
|
127 | aclBuffer(subcommand: "GETUSER", username: string | Buffer, callback?: Callback<Buffer[] | null>): Result<Buffer[] | null, Context>;
|
128 | |
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 | acl(subcommand: "HELP", callback?: Callback<unknown>): Result<unknown, Context>;
|
135 | |
136 |
|
137 |
|
138 |
|
139 |
|
140 |
|
141 | acl(subcommand: "LIST", callback?: Callback<string[]>): Result<string[], Context>;
|
142 | aclBuffer(subcommand: "LIST", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
143 | |
144 |
|
145 |
|
146 |
|
147 |
|
148 |
|
149 | acl(subcommand: "LOAD", callback?: Callback<"OK">): Result<"OK", Context>;
|
150 | |
151 |
|
152 |
|
153 |
|
154 |
|
155 |
|
156 | acl(subcommand: "LOG", callback?: Callback<unknown>): Result<unknown, Context>;
|
157 | acl(subcommand: "LOG", count: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
158 | acl(subcommand: "LOG", reset: "RESET", callback?: Callback<unknown>): Result<unknown, Context>;
|
159 | |
160 |
|
161 |
|
162 |
|
163 |
|
164 |
|
165 | acl(subcommand: "SAVE", callback?: Callback<"OK">): Result<"OK", Context>;
|
166 | |
167 |
|
168 |
|
169 |
|
170 |
|
171 |
|
172 | acl(subcommand: "SETUSER", username: string | Buffer, callback?: Callback<"OK">): Result<"OK", Context>;
|
173 | acl(...args: [
|
174 | subcommand: "SETUSER",
|
175 | username: string | Buffer,
|
176 | ...rules: (string | Buffer)[],
|
177 | callback: Callback<"OK">
|
178 | ]): Result<"OK", Context>;
|
179 | acl(...args: [
|
180 | subcommand: "SETUSER",
|
181 | username: string | Buffer,
|
182 | ...rules: (string | Buffer)[]
|
183 | ]): Result<"OK", Context>;
|
184 | |
185 |
|
186 |
|
187 |
|
188 |
|
189 |
|
190 | acl(subcommand: "USERS", callback?: Callback<string[]>): Result<string[], Context>;
|
191 | aclBuffer(subcommand: "USERS", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
192 | |
193 |
|
194 |
|
195 |
|
196 |
|
197 |
|
198 | acl(subcommand: "WHOAMI", callback?: Callback<string>): Result<string, Context>;
|
199 | aclBuffer(subcommand: "WHOAMI", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
200 | |
201 |
|
202 |
|
203 |
|
204 |
|
205 |
|
206 | append(key: RedisKey, value: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
207 | |
208 |
|
209 |
|
210 |
|
211 |
|
212 |
|
213 | asking(callback?: Callback<"OK">): Result<"OK", Context>;
|
214 | |
215 |
|
216 |
|
217 |
|
218 |
|
219 |
|
220 | auth(password: string | Buffer, callback?: Callback<"OK">): Result<"OK", Context>;
|
221 | auth(username: string | Buffer, password: string | Buffer, callback?: Callback<"OK">): Result<"OK", Context>;
|
222 | |
223 |
|
224 |
|
225 |
|
226 |
|
227 |
|
228 | bgrewriteaof(callback?: Callback<string>): Result<string, Context>;
|
229 | bgrewriteaofBuffer(callback?: Callback<Buffer>): Result<Buffer, Context>;
|
230 | |
231 |
|
232 |
|
233 |
|
234 |
|
235 |
|
236 | bgsave(callback?: Callback<"OK">): Result<"OK", Context>;
|
237 | bgsave(schedule: "SCHEDULE", callback?: Callback<"OK">): Result<"OK", Context>;
|
238 | |
239 |
|
240 |
|
241 |
|
242 |
|
243 |
|
244 | bitcount(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
245 | bitcount(key: RedisKey, start: number | string, end: number | string, callback?: Callback<number>): Result<number, Context>;
|
246 | bitcount(key: RedisKey, start: number | string, end: number | string, byte: "BYTE", callback?: Callback<number>): Result<number, Context>;
|
247 | bitcount(key: RedisKey, start: number | string, end: number | string, bit: "BIT", callback?: Callback<number>): Result<number, Context>;
|
248 | |
249 |
|
250 |
|
251 |
|
252 |
|
253 |
|
254 | bitfield(key: RedisKey, encodingOffsetToken: "GET", encoding: string | Buffer, offset: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
255 | bitfield(key: RedisKey, encodingOffsetValueToken: "SET", encoding: string | Buffer, offset: number | string, value: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
256 | bitfield(key: RedisKey, encodingOffsetIncrementToken: "INCRBY", encoding: string | Buffer, offset: number | string, increment: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
257 | bitfield(key: RedisKey, overflow: "OVERFLOW", wrap: "WRAP", encodingOffsetValueToken: "SET", encoding: string | Buffer, offset: number | string, value: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
258 | bitfield(key: RedisKey, overflow: "OVERFLOW", wrap: "WRAP", encodingOffsetIncrementToken: "INCRBY", encoding: string | Buffer, offset: number | string, increment: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
259 | bitfield(key: RedisKey, overflow: "OVERFLOW", sat: "SAT", encodingOffsetValueToken: "SET", encoding: string | Buffer, offset: number | string, value: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
260 | bitfield(key: RedisKey, overflow: "OVERFLOW", sat: "SAT", encodingOffsetIncrementToken: "INCRBY", encoding: string | Buffer, offset: number | string, increment: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
261 | bitfield(key: RedisKey, overflow: "OVERFLOW", fail: "FAIL", encodingOffsetValueToken: "SET", encoding: string | Buffer, offset: number | string, value: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
262 | bitfield(key: RedisKey, overflow: "OVERFLOW", fail: "FAIL", encodingOffsetIncrementToken: "INCRBY", encoding: string | Buffer, offset: number | string, increment: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
263 | |
264 |
|
265 |
|
266 |
|
267 |
|
268 |
|
269 | bitfield_ro(...args: [
|
270 | key: RedisKey,
|
271 | encodingOffsetToken: "GET",
|
272 | ...encodingOffsets: (string | Buffer | number)[],
|
273 | callback: Callback<unknown[]>
|
274 | ]): Result<unknown[], Context>;
|
275 | bitfield_ro(...args: [
|
276 | key: RedisKey,
|
277 | encodingOffsetToken: "GET",
|
278 | ...encodingOffsets: (string | Buffer | number)[]
|
279 | ]): Result<unknown[], Context>;
|
280 | |
281 |
|
282 |
|
283 |
|
284 |
|
285 |
|
286 | bitop(...args: [
|
287 | operation: string | Buffer,
|
288 | destkey: RedisKey,
|
289 | ...keys: RedisKey[],
|
290 | callback: Callback<number>
|
291 | ]): Result<number, Context>;
|
292 | bitop(...args: [
|
293 | operation: string | Buffer,
|
294 | destkey: RedisKey,
|
295 | keys: RedisKey[],
|
296 | callback: Callback<number>
|
297 | ]): Result<number, Context>;
|
298 | bitop(...args: [
|
299 | operation: string | Buffer,
|
300 | destkey: RedisKey,
|
301 | ...keys: RedisKey[]
|
302 | ]): Result<number, Context>;
|
303 | bitop(...args: [operation: string | Buffer, destkey: RedisKey, keys: RedisKey[]]): Result<number, Context>;
|
304 | |
305 |
|
306 |
|
307 |
|
308 |
|
309 |
|
310 | bitpos(key: RedisKey, bit: number | string, callback?: Callback<number>): Result<number, Context>;
|
311 | bitpos(key: RedisKey, bit: number | string, start: number | string, callback?: Callback<number>): Result<number, Context>;
|
312 | bitpos(key: RedisKey, bit: number | string, start: number | string, end: number | string, callback?: Callback<number>): Result<number, Context>;
|
313 | bitpos(key: RedisKey, bit: number | string, start: number | string, end: number | string, byte: "BYTE", callback?: Callback<number>): Result<number, Context>;
|
314 | bitpos(key: RedisKey, bit: number | string, start: number | string, end: number | string, bit1: "BIT", callback?: Callback<number>): Result<number, Context>;
|
315 | |
316 |
|
317 |
|
318 |
|
319 |
|
320 |
|
321 | blmove(source: RedisKey, destination: RedisKey, left: "LEFT", left1: "LEFT", timeout: number | string, callback?: Callback<string | null>): Result<string | null, Context>;
|
322 | blmoveBuffer(source: RedisKey, destination: RedisKey, left: "LEFT", left1: "LEFT", timeout: number | string, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
323 | blmove(source: RedisKey, destination: RedisKey, left: "LEFT", right: "RIGHT", timeout: number | string, callback?: Callback<string | null>): Result<string | null, Context>;
|
324 | blmoveBuffer(source: RedisKey, destination: RedisKey, left: "LEFT", right: "RIGHT", timeout: number | string, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
325 | blmove(source: RedisKey, destination: RedisKey, right: "RIGHT", left: "LEFT", timeout: number | string, callback?: Callback<string | null>): Result<string | null, Context>;
|
326 | blmoveBuffer(source: RedisKey, destination: RedisKey, right: "RIGHT", left: "LEFT", timeout: number | string, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
327 | blmove(source: RedisKey, destination: RedisKey, right: "RIGHT", right1: "RIGHT", timeout: number | string, callback?: Callback<string | null>): Result<string | null, Context>;
|
328 | blmoveBuffer(source: RedisKey, destination: RedisKey, right: "RIGHT", right1: "RIGHT", timeout: number | string, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
329 | |
330 |
|
331 |
|
332 |
|
333 |
|
334 |
|
335 | blmpop(...args: [
|
336 | timeout: number | string,
|
337 | numkeys: number | string,
|
338 | ...keys: RedisKey[],
|
339 | left: "LEFT",
|
340 | callback: Callback<[key: string, members: string[]] | null>
|
341 | ]): Result<[key: string, members: string[]] | null, Context>;
|
342 | blmpopBuffer(...args: [
|
343 | timeout: number | string,
|
344 | numkeys: number | string,
|
345 | ...keys: RedisKey[],
|
346 | left: "LEFT",
|
347 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
348 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
349 | blmpop(...args: [
|
350 | timeout: number | string,
|
351 | numkeys: number | string,
|
352 | keys: RedisKey[],
|
353 | left: "LEFT",
|
354 | callback: Callback<[key: string, members: string[]] | null>
|
355 | ]): Result<[key: string, members: string[]] | null, Context>;
|
356 | blmpopBuffer(...args: [
|
357 | timeout: number | string,
|
358 | numkeys: number | string,
|
359 | keys: RedisKey[],
|
360 | left: "LEFT",
|
361 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
362 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
363 | blmpop(...args: [
|
364 | timeout: number | string,
|
365 | numkeys: number | string,
|
366 | ...keys: RedisKey[],
|
367 | left: "LEFT"
|
368 | ]): Result<[key: string, members: string[]] | null, Context>;
|
369 | blmpopBuffer(...args: [
|
370 | timeout: number | string,
|
371 | numkeys: number | string,
|
372 | ...keys: RedisKey[],
|
373 | left: "LEFT"
|
374 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
375 | blmpop(...args: [
|
376 | timeout: number | string,
|
377 | numkeys: number | string,
|
378 | keys: RedisKey[],
|
379 | left: "LEFT"
|
380 | ]): Result<[key: string, members: string[]] | null, Context>;
|
381 | blmpopBuffer(...args: [
|
382 | timeout: number | string,
|
383 | numkeys: number | string,
|
384 | keys: RedisKey[],
|
385 | left: "LEFT"
|
386 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
387 | blmpop(...args: [
|
388 | timeout: number | string,
|
389 | numkeys: number | string,
|
390 | ...keys: RedisKey[],
|
391 | left: "LEFT",
|
392 | countToken: "COUNT",
|
393 | count: number | string,
|
394 | callback: Callback<[key: string, members: string[]] | null>
|
395 | ]): Result<[key: string, members: string[]] | null, Context>;
|
396 | blmpopBuffer(...args: [
|
397 | timeout: number | string,
|
398 | numkeys: number | string,
|
399 | ...keys: RedisKey[],
|
400 | left: "LEFT",
|
401 | countToken: "COUNT",
|
402 | count: number | string,
|
403 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
404 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
405 | blmpop(...args: [
|
406 | timeout: number | string,
|
407 | numkeys: number | string,
|
408 | keys: RedisKey[],
|
409 | left: "LEFT",
|
410 | countToken: "COUNT",
|
411 | count: number | string,
|
412 | callback: Callback<[key: string, members: string[]] | null>
|
413 | ]): Result<[key: string, members: string[]] | null, Context>;
|
414 | blmpopBuffer(...args: [
|
415 | timeout: number | string,
|
416 | numkeys: number | string,
|
417 | keys: RedisKey[],
|
418 | left: "LEFT",
|
419 | countToken: "COUNT",
|
420 | count: number | string,
|
421 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
422 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
423 | blmpop(...args: [
|
424 | timeout: number | string,
|
425 | numkeys: number | string,
|
426 | ...keys: RedisKey[],
|
427 | left: "LEFT",
|
428 | countToken: "COUNT",
|
429 | count: number | string
|
430 | ]): Result<[key: string, members: string[]] | null, Context>;
|
431 | blmpopBuffer(...args: [
|
432 | timeout: number | string,
|
433 | numkeys: number | string,
|
434 | ...keys: RedisKey[],
|
435 | left: "LEFT",
|
436 | countToken: "COUNT",
|
437 | count: number | string
|
438 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
439 | blmpop(...args: [
|
440 | timeout: number | string,
|
441 | numkeys: number | string,
|
442 | keys: RedisKey[],
|
443 | left: "LEFT",
|
444 | countToken: "COUNT",
|
445 | count: number | string
|
446 | ]): Result<[key: string, members: string[]] | null, Context>;
|
447 | blmpopBuffer(...args: [
|
448 | timeout: number | string,
|
449 | numkeys: number | string,
|
450 | keys: RedisKey[],
|
451 | left: "LEFT",
|
452 | countToken: "COUNT",
|
453 | count: number | string
|
454 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
455 | blmpop(...args: [
|
456 | timeout: number | string,
|
457 | numkeys: number | string,
|
458 | ...keys: RedisKey[],
|
459 | right: "RIGHT",
|
460 | callback: Callback<[key: string, members: string[]] | null>
|
461 | ]): Result<[key: string, members: string[]] | null, Context>;
|
462 | blmpopBuffer(...args: [
|
463 | timeout: number | string,
|
464 | numkeys: number | string,
|
465 | ...keys: RedisKey[],
|
466 | right: "RIGHT",
|
467 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
468 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
469 | blmpop(...args: [
|
470 | timeout: number | string,
|
471 | numkeys: number | string,
|
472 | keys: RedisKey[],
|
473 | right: "RIGHT",
|
474 | callback: Callback<[key: string, members: string[]] | null>
|
475 | ]): Result<[key: string, members: string[]] | null, Context>;
|
476 | blmpopBuffer(...args: [
|
477 | timeout: number | string,
|
478 | numkeys: number | string,
|
479 | keys: RedisKey[],
|
480 | right: "RIGHT",
|
481 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
482 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
483 | blmpop(...args: [
|
484 | timeout: number | string,
|
485 | numkeys: number | string,
|
486 | ...keys: RedisKey[],
|
487 | right: "RIGHT"
|
488 | ]): Result<[key: string, members: string[]] | null, Context>;
|
489 | blmpopBuffer(...args: [
|
490 | timeout: number | string,
|
491 | numkeys: number | string,
|
492 | ...keys: RedisKey[],
|
493 | right: "RIGHT"
|
494 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
495 | blmpop(...args: [
|
496 | timeout: number | string,
|
497 | numkeys: number | string,
|
498 | keys: RedisKey[],
|
499 | right: "RIGHT"
|
500 | ]): Result<[key: string, members: string[]] | null, Context>;
|
501 | blmpopBuffer(...args: [
|
502 | timeout: number | string,
|
503 | numkeys: number | string,
|
504 | keys: RedisKey[],
|
505 | right: "RIGHT"
|
506 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
507 | blmpop(...args: [
|
508 | timeout: number | string,
|
509 | numkeys: number | string,
|
510 | ...keys: RedisKey[],
|
511 | right: "RIGHT",
|
512 | countToken: "COUNT",
|
513 | count: number | string,
|
514 | callback: Callback<[key: string, members: string[]] | null>
|
515 | ]): Result<[key: string, members: string[]] | null, Context>;
|
516 | blmpopBuffer(...args: [
|
517 | timeout: number | string,
|
518 | numkeys: number | string,
|
519 | ...keys: RedisKey[],
|
520 | right: "RIGHT",
|
521 | countToken: "COUNT",
|
522 | count: number | string,
|
523 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
524 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
525 | blmpop(...args: [
|
526 | timeout: number | string,
|
527 | numkeys: number | string,
|
528 | keys: RedisKey[],
|
529 | right: "RIGHT",
|
530 | countToken: "COUNT",
|
531 | count: number | string,
|
532 | callback: Callback<[key: string, members: string[]] | null>
|
533 | ]): Result<[key: string, members: string[]] | null, Context>;
|
534 | blmpopBuffer(...args: [
|
535 | timeout: number | string,
|
536 | numkeys: number | string,
|
537 | keys: RedisKey[],
|
538 | right: "RIGHT",
|
539 | countToken: "COUNT",
|
540 | count: number | string,
|
541 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
542 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
543 | blmpop(...args: [
|
544 | timeout: number | string,
|
545 | numkeys: number | string,
|
546 | ...keys: RedisKey[],
|
547 | right: "RIGHT",
|
548 | countToken: "COUNT",
|
549 | count: number | string
|
550 | ]): Result<[key: string, members: string[]] | null, Context>;
|
551 | blmpopBuffer(...args: [
|
552 | timeout: number | string,
|
553 | numkeys: number | string,
|
554 | ...keys: RedisKey[],
|
555 | right: "RIGHT",
|
556 | countToken: "COUNT",
|
557 | count: number | string
|
558 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
559 | blmpop(...args: [
|
560 | timeout: number | string,
|
561 | numkeys: number | string,
|
562 | keys: RedisKey[],
|
563 | right: "RIGHT",
|
564 | countToken: "COUNT",
|
565 | count: number | string
|
566 | ]): Result<[key: string, members: string[]] | null, Context>;
|
567 | blmpopBuffer(...args: [
|
568 | timeout: number | string,
|
569 | numkeys: number | string,
|
570 | keys: RedisKey[],
|
571 | right: "RIGHT",
|
572 | countToken: "COUNT",
|
573 | count: number | string
|
574 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
575 | |
576 |
|
577 |
|
578 |
|
579 |
|
580 |
|
581 | blpop(...args: [
|
582 | ...keys: RedisKey[],
|
583 | timeout: number | string,
|
584 | callback: Callback<[string, string] | null>
|
585 | ]): Result<[string, string] | null, Context>;
|
586 | blpopBuffer(...args: [
|
587 | ...keys: RedisKey[],
|
588 | timeout: number | string,
|
589 | callback: Callback<[Buffer, Buffer] | null>
|
590 | ]): Result<[Buffer, Buffer] | null, Context>;
|
591 | blpop(...args: [
|
592 | keys: RedisKey[],
|
593 | timeout: number | string,
|
594 | callback: Callback<[string, string] | null>
|
595 | ]): Result<[string, string] | null, Context>;
|
596 | blpopBuffer(...args: [
|
597 | keys: RedisKey[],
|
598 | timeout: number | string,
|
599 | callback: Callback<[Buffer, Buffer] | null>
|
600 | ]): Result<[Buffer, Buffer] | null, Context>;
|
601 | blpop(...args: [...keys: RedisKey[], timeout: number | string]): Result<[string, string] | null, Context>;
|
602 | blpopBuffer(...args: [...keys: RedisKey[], timeout: number | string]): Result<[Buffer, Buffer] | null, Context>;
|
603 | blpop(...args: [keys: RedisKey[], timeout: number | string]): Result<[string, string] | null, Context>;
|
604 | blpopBuffer(...args: [keys: RedisKey[], timeout: number | string]): Result<[Buffer, Buffer] | null, Context>;
|
605 | |
606 |
|
607 |
|
608 |
|
609 |
|
610 |
|
611 | brpop(...args: [
|
612 | ...keys: RedisKey[],
|
613 | timeout: number | string,
|
614 | callback: Callback<[string, string] | null>
|
615 | ]): Result<[string, string] | null, Context>;
|
616 | brpopBuffer(...args: [
|
617 | ...keys: RedisKey[],
|
618 | timeout: number | string,
|
619 | callback: Callback<[Buffer, Buffer] | null>
|
620 | ]): Result<[Buffer, Buffer] | null, Context>;
|
621 | brpop(...args: [
|
622 | keys: RedisKey[],
|
623 | timeout: number | string,
|
624 | callback: Callback<[string, string] | null>
|
625 | ]): Result<[string, string] | null, Context>;
|
626 | brpopBuffer(...args: [
|
627 | keys: RedisKey[],
|
628 | timeout: number | string,
|
629 | callback: Callback<[Buffer, Buffer] | null>
|
630 | ]): Result<[Buffer, Buffer] | null, Context>;
|
631 | brpop(...args: [...keys: RedisKey[], timeout: number | string]): Result<[string, string] | null, Context>;
|
632 | brpopBuffer(...args: [...keys: RedisKey[], timeout: number | string]): Result<[Buffer, Buffer] | null, Context>;
|
633 | brpop(...args: [keys: RedisKey[], timeout: number | string]): Result<[string, string] | null, Context>;
|
634 | brpopBuffer(...args: [keys: RedisKey[], timeout: number | string]): Result<[Buffer, Buffer] | null, Context>;
|
635 | |
636 |
|
637 |
|
638 |
|
639 |
|
640 |
|
641 | brpoplpush(source: RedisKey, destination: RedisKey, timeout: number | string, callback?: Callback<string | null>): Result<string | null, Context>;
|
642 | brpoplpushBuffer(source: RedisKey, destination: RedisKey, timeout: number | string, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
643 | |
644 |
|
645 |
|
646 |
|
647 |
|
648 |
|
649 | bzmpop(...args: [
|
650 | timeout: number | string,
|
651 | numkeys: number | string,
|
652 | ...keys: RedisKey[],
|
653 | min: "MIN",
|
654 | callback: Callback<unknown>
|
655 | ]): Result<unknown, Context>;
|
656 | bzmpop(...args: [
|
657 | timeout: number | string,
|
658 | numkeys: number | string,
|
659 | keys: RedisKey[],
|
660 | min: "MIN",
|
661 | callback: Callback<unknown>
|
662 | ]): Result<unknown, Context>;
|
663 | bzmpop(...args: [
|
664 | timeout: number | string,
|
665 | numkeys: number | string,
|
666 | ...keys: RedisKey[],
|
667 | min: "MIN"
|
668 | ]): Result<unknown, Context>;
|
669 | bzmpop(...args: [
|
670 | timeout: number | string,
|
671 | numkeys: number | string,
|
672 | keys: RedisKey[],
|
673 | min: "MIN"
|
674 | ]): Result<unknown, Context>;
|
675 | bzmpop(...args: [
|
676 | timeout: number | string,
|
677 | numkeys: number | string,
|
678 | ...keys: RedisKey[],
|
679 | min: "MIN",
|
680 | countToken: "COUNT",
|
681 | count: number | string,
|
682 | callback: Callback<unknown>
|
683 | ]): Result<unknown, Context>;
|
684 | bzmpop(...args: [
|
685 | timeout: number | string,
|
686 | numkeys: number | string,
|
687 | keys: RedisKey[],
|
688 | min: "MIN",
|
689 | countToken: "COUNT",
|
690 | count: number | string,
|
691 | callback: Callback<unknown>
|
692 | ]): Result<unknown, Context>;
|
693 | bzmpop(...args: [
|
694 | timeout: number | string,
|
695 | numkeys: number | string,
|
696 | ...keys: RedisKey[],
|
697 | min: "MIN",
|
698 | countToken: "COUNT",
|
699 | count: number | string
|
700 | ]): Result<unknown, Context>;
|
701 | bzmpop(...args: [
|
702 | timeout: number | string,
|
703 | numkeys: number | string,
|
704 | keys: RedisKey[],
|
705 | min: "MIN",
|
706 | countToken: "COUNT",
|
707 | count: number | string
|
708 | ]): Result<unknown, Context>;
|
709 | bzmpop(...args: [
|
710 | timeout: number | string,
|
711 | numkeys: number | string,
|
712 | ...keys: RedisKey[],
|
713 | max: "MAX",
|
714 | callback: Callback<unknown>
|
715 | ]): Result<unknown, Context>;
|
716 | bzmpop(...args: [
|
717 | timeout: number | string,
|
718 | numkeys: number | string,
|
719 | keys: RedisKey[],
|
720 | max: "MAX",
|
721 | callback: Callback<unknown>
|
722 | ]): Result<unknown, Context>;
|
723 | bzmpop(...args: [
|
724 | timeout: number | string,
|
725 | numkeys: number | string,
|
726 | ...keys: RedisKey[],
|
727 | max: "MAX"
|
728 | ]): Result<unknown, Context>;
|
729 | bzmpop(...args: [
|
730 | timeout: number | string,
|
731 | numkeys: number | string,
|
732 | keys: RedisKey[],
|
733 | max: "MAX"
|
734 | ]): Result<unknown, Context>;
|
735 | bzmpop(...args: [
|
736 | timeout: number | string,
|
737 | numkeys: number | string,
|
738 | ...keys: RedisKey[],
|
739 | max: "MAX",
|
740 | countToken: "COUNT",
|
741 | count: number | string,
|
742 | callback: Callback<unknown>
|
743 | ]): Result<unknown, Context>;
|
744 | bzmpop(...args: [
|
745 | timeout: number | string,
|
746 | numkeys: number | string,
|
747 | keys: RedisKey[],
|
748 | max: "MAX",
|
749 | countToken: "COUNT",
|
750 | count: number | string,
|
751 | callback: Callback<unknown>
|
752 | ]): Result<unknown, Context>;
|
753 | bzmpop(...args: [
|
754 | timeout: number | string,
|
755 | numkeys: number | string,
|
756 | ...keys: RedisKey[],
|
757 | max: "MAX",
|
758 | countToken: "COUNT",
|
759 | count: number | string
|
760 | ]): Result<unknown, Context>;
|
761 | bzmpop(...args: [
|
762 | timeout: number | string,
|
763 | numkeys: number | string,
|
764 | keys: RedisKey[],
|
765 | max: "MAX",
|
766 | countToken: "COUNT",
|
767 | count: number | string
|
768 | ]): Result<unknown, Context>;
|
769 | |
770 |
|
771 |
|
772 |
|
773 |
|
774 |
|
775 | bzpopmax(...args: [
|
776 | ...keys: RedisKey[],
|
777 | timeout: number | string,
|
778 | callback: Callback<[key: string, member: string, score: string] | null>
|
779 | ]): Result<[key: string, member: string, score: string] | null, Context>;
|
780 | bzpopmaxBuffer(...args: [
|
781 | ...keys: RedisKey[],
|
782 | timeout: number | string,
|
783 | callback: Callback<[key: Buffer, member: Buffer, score: Buffer] | null>
|
784 | ]): Result<[key: Buffer, member: Buffer, score: Buffer] | null, Context>;
|
785 | bzpopmax(...args: [
|
786 | keys: RedisKey[],
|
787 | timeout: number | string,
|
788 | callback: Callback<[key: string, member: string, score: string] | null>
|
789 | ]): Result<[key: string, member: string, score: string] | null, Context>;
|
790 | bzpopmaxBuffer(...args: [
|
791 | keys: RedisKey[],
|
792 | timeout: number | string,
|
793 | callback: Callback<[key: Buffer, member: Buffer, score: Buffer] | null>
|
794 | ]): Result<[key: Buffer, member: Buffer, score: Buffer] | null, Context>;
|
795 | bzpopmax(...args: [...keys: RedisKey[], timeout: number | string]): Result<[key: string, member: string, score: string] | null, Context>;
|
796 | bzpopmaxBuffer(...args: [...keys: RedisKey[], timeout: number | string]): Result<[key: Buffer, member: Buffer, score: Buffer] | null, Context>;
|
797 | bzpopmax(...args: [keys: RedisKey[], timeout: number | string]): Result<[key: string, member: string, score: string] | null, Context>;
|
798 | bzpopmaxBuffer(...args: [keys: RedisKey[], timeout: number | string]): Result<[key: Buffer, member: Buffer, score: Buffer] | null, Context>;
|
799 | |
800 |
|
801 |
|
802 |
|
803 |
|
804 |
|
805 | bzpopmin(...args: [
|
806 | ...keys: RedisKey[],
|
807 | timeout: number | string,
|
808 | callback: Callback<[key: string, member: string, score: string] | null>
|
809 | ]): Result<[key: string, member: string, score: string] | null, Context>;
|
810 | bzpopminBuffer(...args: [
|
811 | ...keys: RedisKey[],
|
812 | timeout: number | string,
|
813 | callback: Callback<[key: Buffer, member: Buffer, score: Buffer] | null>
|
814 | ]): Result<[key: Buffer, member: Buffer, score: Buffer] | null, Context>;
|
815 | bzpopmin(...args: [
|
816 | keys: RedisKey[],
|
817 | timeout: number | string,
|
818 | callback: Callback<[key: string, member: string, score: string] | null>
|
819 | ]): Result<[key: string, member: string, score: string] | null, Context>;
|
820 | bzpopminBuffer(...args: [
|
821 | keys: RedisKey[],
|
822 | timeout: number | string,
|
823 | callback: Callback<[key: Buffer, member: Buffer, score: Buffer] | null>
|
824 | ]): Result<[key: Buffer, member: Buffer, score: Buffer] | null, Context>;
|
825 | bzpopmin(...args: [...keys: RedisKey[], timeout: number | string]): Result<[key: string, member: string, score: string] | null, Context>;
|
826 | bzpopminBuffer(...args: [...keys: RedisKey[], timeout: number | string]): Result<[key: Buffer, member: Buffer, score: Buffer] | null, Context>;
|
827 | bzpopmin(...args: [keys: RedisKey[], timeout: number | string]): Result<[key: string, member: string, score: string] | null, Context>;
|
828 | bzpopminBuffer(...args: [keys: RedisKey[], timeout: number | string]): Result<[key: Buffer, member: Buffer, score: Buffer] | null, Context>;
|
829 | |
830 |
|
831 |
|
832 |
|
833 |
|
834 |
|
835 | client(subcommand: "CACHING", yes: "YES", callback?: Callback<"OK">): Result<"OK", Context>;
|
836 | client(subcommand: "CACHING", no: "NO", callback?: Callback<"OK">): Result<"OK", Context>;
|
837 | |
838 |
|
839 |
|
840 |
|
841 |
|
842 |
|
843 | client(subcommand: "GETNAME", callback?: Callback<string | null>): Result<string | null, Context>;
|
844 | clientBuffer(subcommand: "GETNAME", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
845 | |
846 |
|
847 |
|
848 |
|
849 |
|
850 |
|
851 | client(subcommand: "GETREDIR", callback?: Callback<number>): Result<number, Context>;
|
852 | |
853 |
|
854 |
|
855 |
|
856 |
|
857 |
|
858 | client(subcommand: "HELP", callback?: Callback<unknown>): Result<unknown, Context>;
|
859 | |
860 |
|
861 |
|
862 |
|
863 |
|
864 |
|
865 | client(subcommand: "ID", callback?: Callback<number>): Result<number, Context>;
|
866 | |
867 |
|
868 |
|
869 |
|
870 |
|
871 |
|
872 | client(subcommand: "INFO", callback?: Callback<string>): Result<string, Context>;
|
873 | clientBuffer(subcommand: "INFO", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
874 | |
875 |
|
876 |
|
877 |
|
878 |
|
879 |
|
880 | client(...args: [
|
881 | subcommand: "KILL",
|
882 | ...args: RedisValue[],
|
883 | callback: Callback<unknown>
|
884 | ]): Result<unknown, Context>;
|
885 | client(...args: [subcommand: "KILL", ...args: RedisValue[]]): Result<unknown, Context>;
|
886 | |
887 |
|
888 |
|
889 |
|
890 |
|
891 |
|
892 | client(subcommand: "LIST", callback?: Callback<unknown>): Result<unknown, Context>;
|
893 | client(...args: [
|
894 | subcommand: "LIST",
|
895 | idToken: "ID",
|
896 | ...clientIds: (number | string)[],
|
897 | callback: Callback<unknown>
|
898 | ]): Result<unknown, Context>;
|
899 | client(...args: [
|
900 | subcommand: "LIST",
|
901 | idToken: "ID",
|
902 | ...clientIds: (number | string)[]
|
903 | ]): Result<unknown, Context>;
|
904 | client(subcommand: "LIST", type: "TYPE", normal: "NORMAL", callback?: Callback<unknown>): Result<unknown, Context>;
|
905 | client(...args: [
|
906 | subcommand: "LIST",
|
907 | type: "TYPE",
|
908 | normal: "NORMAL",
|
909 | idToken: "ID",
|
910 | ...clientIds: (number | string)[],
|
911 | callback: Callback<unknown>
|
912 | ]): Result<unknown, Context>;
|
913 | client(...args: [
|
914 | subcommand: "LIST",
|
915 | type: "TYPE",
|
916 | normal: "NORMAL",
|
917 | idToken: "ID",
|
918 | ...clientIds: (number | string)[]
|
919 | ]): Result<unknown, Context>;
|
920 | client(subcommand: "LIST", type: "TYPE", master: "MASTER", callback?: Callback<unknown>): Result<unknown, Context>;
|
921 | client(...args: [
|
922 | subcommand: "LIST",
|
923 | type: "TYPE",
|
924 | master: "MASTER",
|
925 | idToken: "ID",
|
926 | ...clientIds: (number | string)[],
|
927 | callback: Callback<unknown>
|
928 | ]): Result<unknown, Context>;
|
929 | client(...args: [
|
930 | subcommand: "LIST",
|
931 | type: "TYPE",
|
932 | master: "MASTER",
|
933 | idToken: "ID",
|
934 | ...clientIds: (number | string)[]
|
935 | ]): Result<unknown, Context>;
|
936 | client(subcommand: "LIST", type: "TYPE", replica: "REPLICA", callback?: Callback<unknown>): Result<unknown, Context>;
|
937 | client(...args: [
|
938 | subcommand: "LIST",
|
939 | type: "TYPE",
|
940 | replica: "REPLICA",
|
941 | idToken: "ID",
|
942 | ...clientIds: (number | string)[],
|
943 | callback: Callback<unknown>
|
944 | ]): Result<unknown, Context>;
|
945 | client(...args: [
|
946 | subcommand: "LIST",
|
947 | type: "TYPE",
|
948 | replica: "REPLICA",
|
949 | idToken: "ID",
|
950 | ...clientIds: (number | string)[]
|
951 | ]): Result<unknown, Context>;
|
952 | client(subcommand: "LIST", type: "TYPE", pubsub: "PUBSUB", callback?: Callback<unknown>): Result<unknown, Context>;
|
953 | client(...args: [
|
954 | subcommand: "LIST",
|
955 | type: "TYPE",
|
956 | pubsub: "PUBSUB",
|
957 | idToken: "ID",
|
958 | ...clientIds: (number | string)[],
|
959 | callback: Callback<unknown>
|
960 | ]): Result<unknown, Context>;
|
961 | client(...args: [
|
962 | subcommand: "LIST",
|
963 | type: "TYPE",
|
964 | pubsub: "PUBSUB",
|
965 | idToken: "ID",
|
966 | ...clientIds: (number | string)[]
|
967 | ]): Result<unknown, Context>;
|
968 | |
969 |
|
970 |
|
971 |
|
972 |
|
973 |
|
974 | client(subcommand: "NO-EVICT", on: "ON", callback?: Callback<unknown>): Result<unknown, Context>;
|
975 | client(subcommand: "NO-EVICT", off: "OFF", callback?: Callback<unknown>): Result<unknown, Context>;
|
976 | |
977 |
|
978 |
|
979 |
|
980 |
|
981 |
|
982 | client(subcommand: "PAUSE", timeout: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
983 | client(subcommand: "PAUSE", timeout: number | string, write: "WRITE", callback?: Callback<"OK">): Result<"OK", Context>;
|
984 | client(subcommand: "PAUSE", timeout: number | string, all: "ALL", callback?: Callback<"OK">): Result<"OK", Context>;
|
985 | |
986 |
|
987 |
|
988 |
|
989 |
|
990 |
|
991 | client(subcommand: "REPLY", on: "ON", callback?: Callback<unknown>): Result<unknown, Context>;
|
992 | client(subcommand: "REPLY", off: "OFF", callback?: Callback<unknown>): Result<unknown, Context>;
|
993 | client(subcommand: "REPLY", skip: "SKIP", callback?: Callback<unknown>): Result<unknown, Context>;
|
994 | |
995 |
|
996 |
|
997 |
|
998 |
|
999 |
|
1000 | client(subcommand: "SETNAME", connectionName: string | Buffer, callback?: Callback<"OK">): Result<"OK", Context>;
|
1001 | |
1002 |
|
1003 |
|
1004 |
|
1005 |
|
1006 |
|
1007 | client(...args: [
|
1008 | subcommand: "TRACKING",
|
1009 | ...args: RedisValue[],
|
1010 | callback: Callback<unknown>
|
1011 | ]): Result<unknown, Context>;
|
1012 | client(...args: [subcommand: "TRACKING", ...args: RedisValue[]]): Result<unknown, Context>;
|
1013 | |
1014 |
|
1015 |
|
1016 |
|
1017 |
|
1018 |
|
1019 | client(subcommand: "TRACKINGINFO", callback?: Callback<string>): Result<string, Context>;
|
1020 | clientBuffer(subcommand: "TRACKINGINFO", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1021 | |
1022 |
|
1023 |
|
1024 |
|
1025 |
|
1026 |
|
1027 | client(subcommand: "UNBLOCK", clientId: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
1028 | client(subcommand: "UNBLOCK", clientId: number | string, timeout: "TIMEOUT", callback?: Callback<unknown>): Result<unknown, Context>;
|
1029 | client(subcommand: "UNBLOCK", clientId: number | string, error: "ERROR", callback?: Callback<unknown>): Result<unknown, Context>;
|
1030 | |
1031 |
|
1032 |
|
1033 |
|
1034 |
|
1035 |
|
1036 | client(subcommand: "UNPAUSE", callback?: Callback<"OK">): Result<"OK", Context>;
|
1037 | |
1038 |
|
1039 |
|
1040 |
|
1041 |
|
1042 |
|
1043 | cluster(...args: [
|
1044 | subcommand: "ADDSLOTS",
|
1045 | ...slots: (number | string)[],
|
1046 | callback: Callback<[
|
1047 | startSlotRange: number,
|
1048 | endSlotRange: number,
|
1049 | ...nodes: [
|
1050 | host: string,
|
1051 | port: number,
|
1052 | nodeId: string,
|
1053 | info: unknown[]
|
1054 | ][]
|
1055 | ][]>
|
1056 | ]): Result<[
|
1057 | startSlotRange: number,
|
1058 | endSlotRange: number,
|
1059 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1060 | ][], Context>;
|
1061 | cluster(...args: [
|
1062 | subcommand: "ADDSLOTS",
|
1063 | slots: (number | string)[],
|
1064 | callback: Callback<[
|
1065 | startSlotRange: number,
|
1066 | endSlotRange: number,
|
1067 | ...nodes: [
|
1068 | host: string,
|
1069 | port: number,
|
1070 | nodeId: string,
|
1071 | info: unknown[]
|
1072 | ][]
|
1073 | ][]>
|
1074 | ]): Result<[
|
1075 | startSlotRange: number,
|
1076 | endSlotRange: number,
|
1077 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1078 | ][], Context>;
|
1079 | cluster(...args: [subcommand: "ADDSLOTS", ...slots: (number | string)[]]): Result<[
|
1080 | startSlotRange: number,
|
1081 | endSlotRange: number,
|
1082 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1083 | ][], Context>;
|
1084 | cluster(...args: [subcommand: "ADDSLOTS", slots: (number | string)[]]): Result<[
|
1085 | startSlotRange: number,
|
1086 | endSlotRange: number,
|
1087 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1088 | ][], Context>;
|
1089 | |
1090 |
|
1091 |
|
1092 |
|
1093 |
|
1094 |
|
1095 | cluster(...args: [
|
1096 | subcommand: "ADDSLOTSRANGE",
|
1097 | ...startSlotEndSlots: (string | number)[],
|
1098 | callback: Callback<[
|
1099 | startSlotRange: number,
|
1100 | endSlotRange: number,
|
1101 | ...nodes: [
|
1102 | host: string,
|
1103 | port: number,
|
1104 | nodeId: string,
|
1105 | info: unknown[]
|
1106 | ][]
|
1107 | ][]>
|
1108 | ]): Result<[
|
1109 | startSlotRange: number,
|
1110 | endSlotRange: number,
|
1111 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1112 | ][], Context>;
|
1113 | cluster(...args: [
|
1114 | subcommand: "ADDSLOTSRANGE",
|
1115 | ...startSlotEndSlots: (string | number)[]
|
1116 | ]): Result<[
|
1117 | startSlotRange: number,
|
1118 | endSlotRange: number,
|
1119 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1120 | ][], Context>;
|
1121 | |
1122 |
|
1123 |
|
1124 |
|
1125 |
|
1126 |
|
1127 | cluster(subcommand: "BUMPEPOCH", callback?: Callback<"BUMPED" | "STILL">): Result<"BUMPED" | "STILL", Context>;
|
1128 | |
1129 |
|
1130 |
|
1131 |
|
1132 |
|
1133 |
|
1134 | cluster(subcommand: "COUNT-FAILURE-REPORTS", nodeId: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
1135 | |
1136 |
|
1137 |
|
1138 |
|
1139 |
|
1140 |
|
1141 | cluster(subcommand: "COUNTKEYSINSLOT", slot: number | string, callback?: Callback<number>): Result<number, Context>;
|
1142 | |
1143 |
|
1144 |
|
1145 |
|
1146 |
|
1147 |
|
1148 | cluster(...args: [
|
1149 | subcommand: "DELSLOTS",
|
1150 | ...slots: (number | string)[],
|
1151 | callback: Callback<[
|
1152 | startSlotRange: number,
|
1153 | endSlotRange: number,
|
1154 | ...nodes: [
|
1155 | host: string,
|
1156 | port: number,
|
1157 | nodeId: string,
|
1158 | info: unknown[]
|
1159 | ][]
|
1160 | ][]>
|
1161 | ]): Result<[
|
1162 | startSlotRange: number,
|
1163 | endSlotRange: number,
|
1164 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1165 | ][], Context>;
|
1166 | cluster(...args: [
|
1167 | subcommand: "DELSLOTS",
|
1168 | slots: (number | string)[],
|
1169 | callback: Callback<[
|
1170 | startSlotRange: number,
|
1171 | endSlotRange: number,
|
1172 | ...nodes: [
|
1173 | host: string,
|
1174 | port: number,
|
1175 | nodeId: string,
|
1176 | info: unknown[]
|
1177 | ][]
|
1178 | ][]>
|
1179 | ]): Result<[
|
1180 | startSlotRange: number,
|
1181 | endSlotRange: number,
|
1182 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1183 | ][], Context>;
|
1184 | cluster(...args: [subcommand: "DELSLOTS", ...slots: (number | string)[]]): Result<[
|
1185 | startSlotRange: number,
|
1186 | endSlotRange: number,
|
1187 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1188 | ][], Context>;
|
1189 | cluster(...args: [subcommand: "DELSLOTS", slots: (number | string)[]]): Result<[
|
1190 | startSlotRange: number,
|
1191 | endSlotRange: number,
|
1192 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1193 | ][], Context>;
|
1194 | |
1195 |
|
1196 |
|
1197 |
|
1198 |
|
1199 |
|
1200 | cluster(...args: [
|
1201 | subcommand: "DELSLOTSRANGE",
|
1202 | ...startSlotEndSlots: (string | number)[],
|
1203 | callback: Callback<[
|
1204 | startSlotRange: number,
|
1205 | endSlotRange: number,
|
1206 | ...nodes: [
|
1207 | host: string,
|
1208 | port: number,
|
1209 | nodeId: string,
|
1210 | info: unknown[]
|
1211 | ][]
|
1212 | ][]>
|
1213 | ]): Result<[
|
1214 | startSlotRange: number,
|
1215 | endSlotRange: number,
|
1216 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1217 | ][], Context>;
|
1218 | cluster(...args: [
|
1219 | subcommand: "DELSLOTSRANGE",
|
1220 | ...startSlotEndSlots: (string | number)[]
|
1221 | ]): Result<[
|
1222 | startSlotRange: number,
|
1223 | endSlotRange: number,
|
1224 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1225 | ][], Context>;
|
1226 | |
1227 |
|
1228 |
|
1229 |
|
1230 |
|
1231 |
|
1232 | cluster(subcommand: "FAILOVER", callback?: Callback<"OK">): Result<"OK", Context>;
|
1233 | cluster(subcommand: "FAILOVER", force: "FORCE", callback?: Callback<"OK">): Result<"OK", Context>;
|
1234 | cluster(subcommand: "FAILOVER", takeover: "TAKEOVER", callback?: Callback<"OK">): Result<"OK", Context>;
|
1235 | |
1236 |
|
1237 |
|
1238 |
|
1239 |
|
1240 |
|
1241 | cluster(subcommand: "FLUSHSLOTS", callback?: Callback<[
|
1242 | startSlotRange: number,
|
1243 | endSlotRange: number,
|
1244 | ...nodes: [
|
1245 | host: string,
|
1246 | port: number,
|
1247 | nodeId: string,
|
1248 | info: unknown[]
|
1249 | ][]
|
1250 | ][]>): Result<[
|
1251 | startSlotRange: number,
|
1252 | endSlotRange: number,
|
1253 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1254 | ][], Context>;
|
1255 | |
1256 |
|
1257 |
|
1258 |
|
1259 |
|
1260 |
|
1261 | cluster(subcommand: "FORGET", nodeId: string | Buffer | number, callback?: Callback<"OK">): Result<"OK", Context>;
|
1262 | |
1263 |
|
1264 |
|
1265 |
|
1266 |
|
1267 |
|
1268 | cluster(subcommand: "GETKEYSINSLOT", slot: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
1269 | |
1270 |
|
1271 |
|
1272 |
|
1273 |
|
1274 |
|
1275 | cluster(subcommand: "HELP", callback?: Callback<unknown>): Result<unknown, Context>;
|
1276 | |
1277 |
|
1278 |
|
1279 |
|
1280 |
|
1281 |
|
1282 | cluster(subcommand: "INFO", callback?: Callback<string>): Result<string, Context>;
|
1283 | |
1284 |
|
1285 |
|
1286 |
|
1287 |
|
1288 |
|
1289 | cluster(subcommand: "KEYSLOT", key: string | Buffer, callback?: Callback<number>): Result<number, Context>;
|
1290 | |
1291 |
|
1292 |
|
1293 |
|
1294 |
|
1295 |
|
1296 | cluster(subcommand: "LINKS", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1297 | |
1298 |
|
1299 |
|
1300 |
|
1301 |
|
1302 |
|
1303 | cluster(subcommand: "MEET", ip: string | Buffer, port: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
1304 | |
1305 |
|
1306 |
|
1307 |
|
1308 |
|
1309 |
|
1310 | cluster(subcommand: "MYID", callback?: Callback<string>): Result<string, Context>;
|
1311 | |
1312 |
|
1313 |
|
1314 |
|
1315 |
|
1316 |
|
1317 | cluster(subcommand: "NODES", callback?: Callback<unknown>): Result<unknown, Context>;
|
1318 | |
1319 |
|
1320 |
|
1321 |
|
1322 |
|
1323 |
|
1324 | cluster(subcommand: "REPLICAS", nodeId: string | Buffer | number, callback?: Callback<unknown>): Result<unknown, Context>;
|
1325 | |
1326 |
|
1327 |
|
1328 |
|
1329 |
|
1330 |
|
1331 | cluster(subcommand: "REPLICATE", nodeId: string | Buffer | number, callback?: Callback<"OK">): Result<"OK", Context>;
|
1332 | |
1333 |
|
1334 |
|
1335 |
|
1336 |
|
1337 |
|
1338 | cluster(subcommand: "RESET", callback?: Callback<"OK">): Result<"OK", Context>;
|
1339 | cluster(subcommand: "RESET", hard: "HARD", callback?: Callback<"OK">): Result<"OK", Context>;
|
1340 | cluster(subcommand: "RESET", soft: "SOFT", callback?: Callback<"OK">): Result<"OK", Context>;
|
1341 | |
1342 |
|
1343 |
|
1344 |
|
1345 |
|
1346 |
|
1347 | cluster(subcommand: "SAVECONFIG", callback?: Callback<"OK">): Result<"OK", Context>;
|
1348 | |
1349 |
|
1350 |
|
1351 |
|
1352 |
|
1353 |
|
1354 | cluster(subcommand: "SET-CONFIG-EPOCH", configEpoch: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
1355 | |
1356 |
|
1357 |
|
1358 |
|
1359 |
|
1360 |
|
1361 | cluster(subcommand: "SETSLOT", slot: number | string, nodeIdToken: "IMPORTING", nodeId: string | Buffer | number, callback?: Callback<"OK">): Result<"OK", Context>;
|
1362 | cluster(subcommand: "SETSLOT", slot: number | string, nodeIdToken: "MIGRATING", nodeId: string | Buffer | number, callback?: Callback<"OK">): Result<"OK", Context>;
|
1363 | cluster(subcommand: "SETSLOT", slot: number | string, nodeIdToken: "NODE", nodeId: string | Buffer | number, callback?: Callback<"OK">): Result<"OK", Context>;
|
1364 | cluster(subcommand: "SETSLOT", slot: number | string, stable: "STABLE", callback?: Callback<"OK">): Result<"OK", Context>;
|
1365 | |
1366 |
|
1367 |
|
1368 |
|
1369 |
|
1370 |
|
1371 | cluster(subcommand: "SHARDS", callback?: Callback<unknown>): Result<unknown, Context>;
|
1372 | |
1373 |
|
1374 |
|
1375 |
|
1376 |
|
1377 |
|
1378 | cluster(subcommand: "SLAVES", nodeId: string | Buffer | number, callback?: Callback<unknown>): Result<unknown, Context>;
|
1379 | |
1380 |
|
1381 |
|
1382 |
|
1383 |
|
1384 |
|
1385 | cluster(subcommand: "SLOTS", callback?: Callback<[
|
1386 | startSlotRange: number,
|
1387 | endSlotRange: number,
|
1388 | ...nodes: [
|
1389 | host: string,
|
1390 | port: number,
|
1391 | nodeId: string,
|
1392 | info: unknown[]
|
1393 | ][]
|
1394 | ][]>): Result<[
|
1395 | startSlotRange: number,
|
1396 | endSlotRange: number,
|
1397 | ...nodes: [host: string, port: number, nodeId: string, info: unknown[]][]
|
1398 | ][], Context>;
|
1399 | |
1400 |
|
1401 |
|
1402 |
|
1403 |
|
1404 |
|
1405 | command(subcommand: "COUNT", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1406 | |
1407 |
|
1408 |
|
1409 |
|
1410 |
|
1411 |
|
1412 | command(subcommand: "DOCS", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1413 | command(...args: [
|
1414 | subcommand: "DOCS",
|
1415 | ...commandNames: (string | Buffer)[],
|
1416 | callback: Callback<unknown[]>
|
1417 | ]): Result<unknown[], Context>;
|
1418 | command(...args: [subcommand: "DOCS", ...commandNames: (string | Buffer)[]]): Result<unknown[], Context>;
|
1419 | |
1420 |
|
1421 |
|
1422 |
|
1423 |
|
1424 |
|
1425 | command(subcommand: "GETKEYS", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1426 | |
1427 |
|
1428 |
|
1429 |
|
1430 |
|
1431 |
|
1432 | command(subcommand: "GETKEYSANDFLAGS", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1433 | |
1434 |
|
1435 |
|
1436 |
|
1437 |
|
1438 |
|
1439 | command(subcommand: "HELP", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1440 | |
1441 |
|
1442 |
|
1443 |
|
1444 |
|
1445 |
|
1446 | command(subcommand: "INFO", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1447 | command(...args: [
|
1448 | subcommand: "INFO",
|
1449 | ...commandNames: (string | Buffer)[],
|
1450 | callback: Callback<unknown[]>
|
1451 | ]): Result<unknown[], Context>;
|
1452 | command(...args: [subcommand: "INFO", ...commandNames: (string | Buffer)[]]): Result<unknown[], Context>;
|
1453 | |
1454 |
|
1455 |
|
1456 |
|
1457 |
|
1458 |
|
1459 | command(subcommand: "LIST", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1460 | command(subcommand: "LIST", filterby: "FILTERBY", moduleNameToken: "MODULE", moduleName: string | Buffer, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1461 | command(subcommand: "LIST", filterby: "FILTERBY", categoryToken: "ACLCAT", category: string | Buffer, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1462 | command(subcommand: "LIST", filterby: "FILTERBY", patternToken: "PATTERN", pattern: string, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1463 | |
1464 |
|
1465 |
|
1466 |
|
1467 |
|
1468 |
|
1469 | config(...args: [
|
1470 | subcommand: "GET",
|
1471 | ...parameters: (string | Buffer)[],
|
1472 | callback: Callback<unknown>
|
1473 | ]): Result<unknown, Context>;
|
1474 | config(...args: [subcommand: "GET", ...parameters: (string | Buffer)[]]): Result<unknown, Context>;
|
1475 | |
1476 |
|
1477 |
|
1478 |
|
1479 |
|
1480 |
|
1481 | config(subcommand: "HELP", callback?: Callback<unknown>): Result<unknown, Context>;
|
1482 | |
1483 |
|
1484 |
|
1485 |
|
1486 |
|
1487 |
|
1488 | config(subcommand: "RESETSTAT", callback?: Callback<unknown>): Result<unknown, Context>;
|
1489 | |
1490 |
|
1491 |
|
1492 |
|
1493 |
|
1494 |
|
1495 | config(subcommand: "REWRITE", callback?: Callback<unknown>): Result<unknown, Context>;
|
1496 | |
1497 |
|
1498 |
|
1499 |
|
1500 |
|
1501 |
|
1502 | config(...args: [
|
1503 | subcommand: "SET",
|
1504 | ...parameterValues: (string | Buffer | number)[],
|
1505 | callback: Callback<unknown>
|
1506 | ]): Result<unknown, Context>;
|
1507 | config(...args: [
|
1508 | subcommand: "SET",
|
1509 | ...parameterValues: (string | Buffer | number)[]
|
1510 | ]): Result<unknown, Context>;
|
1511 | |
1512 |
|
1513 |
|
1514 |
|
1515 |
|
1516 |
|
1517 | copy(source: RedisKey, destination: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
1518 | copy(source: RedisKey, destination: RedisKey, replace: "REPLACE", callback?: Callback<number>): Result<number, Context>;
|
1519 | copy(source: RedisKey, destination: RedisKey, destinationDbToken: "DB", destinationDb: number | string, callback?: Callback<number>): Result<number, Context>;
|
1520 | copy(source: RedisKey, destination: RedisKey, destinationDbToken: "DB", destinationDb: number | string, replace: "REPLACE", callback?: Callback<number>): Result<number, Context>;
|
1521 | |
1522 |
|
1523 |
|
1524 |
|
1525 |
|
1526 |
|
1527 | dbsize(callback?: Callback<number>): Result<number, Context>;
|
1528 | |
1529 |
|
1530 |
|
1531 |
|
1532 |
|
1533 |
|
1534 | debug(subcommand: string, callback?: Callback<unknown>): Result<unknown, Context>;
|
1535 | debug(...args: [
|
1536 | subcommand: string,
|
1537 | ...args: (string | Buffer | number)[],
|
1538 | callback: Callback<unknown>
|
1539 | ]): Result<unknown, Context>;
|
1540 | debug(...args: [subcommand: string, ...args: (string | Buffer | number)[]]): Result<unknown, Context>;
|
1541 | |
1542 |
|
1543 |
|
1544 |
|
1545 |
|
1546 |
|
1547 | decr(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
1548 | |
1549 |
|
1550 |
|
1551 |
|
1552 |
|
1553 |
|
1554 | decrby(key: RedisKey, decrement: number | string, callback?: Callback<number>): Result<number, Context>;
|
1555 | |
1556 |
|
1557 |
|
1558 |
|
1559 |
|
1560 |
|
1561 | del(...args: [...keys: RedisKey[], callback: Callback<number>]): Result<number, Context>;
|
1562 | del(...args: [keys: RedisKey[], callback: Callback<number>]): Result<number, Context>;
|
1563 | del(...args: [...keys: RedisKey[]]): Result<number, Context>;
|
1564 | del(...args: [keys: RedisKey[]]): Result<number, Context>;
|
1565 | |
1566 |
|
1567 |
|
1568 |
|
1569 |
|
1570 |
|
1571 | discard(callback?: Callback<"OK">): Result<"OK", Context>;
|
1572 | |
1573 |
|
1574 |
|
1575 |
|
1576 |
|
1577 |
|
1578 | dump(key: RedisKey, callback?: Callback<string>): Result<string, Context>;
|
1579 | dumpBuffer(key: RedisKey, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1580 | |
1581 |
|
1582 |
|
1583 |
|
1584 |
|
1585 |
|
1586 | echo(message: string | Buffer, callback?: Callback<string>): Result<string, Context>;
|
1587 | echoBuffer(message: string | Buffer, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1588 | |
1589 |
|
1590 |
|
1591 |
|
1592 |
|
1593 |
|
1594 | eval(script: string | Buffer, numkeys: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
1595 | eval(...args: [
|
1596 | script: string | Buffer,
|
1597 | numkeys: number | string,
|
1598 | ...args: (string | Buffer | number)[],
|
1599 | callback: Callback<unknown>
|
1600 | ]): Result<unknown, Context>;
|
1601 | eval(...args: [
|
1602 | script: string | Buffer,
|
1603 | numkeys: number | string,
|
1604 | ...args: (string | Buffer | number)[]
|
1605 | ]): Result<unknown, Context>;
|
1606 | eval(...args: [
|
1607 | script: string | Buffer,
|
1608 | numkeys: number | string,
|
1609 | ...keys: RedisKey[],
|
1610 | callback: Callback<unknown>
|
1611 | ]): Result<unknown, Context>;
|
1612 | eval(...args: [
|
1613 | script: string | Buffer,
|
1614 | numkeys: number | string,
|
1615 | keys: RedisKey[],
|
1616 | callback: Callback<unknown>
|
1617 | ]): Result<unknown, Context>;
|
1618 | eval(...args: [
|
1619 | script: string | Buffer,
|
1620 | numkeys: number | string,
|
1621 | ...keys: RedisKey[]
|
1622 | ]): Result<unknown, Context>;
|
1623 | eval(...args: [
|
1624 | script: string | Buffer,
|
1625 | numkeys: number | string,
|
1626 | keys: RedisKey[]
|
1627 | ]): Result<unknown, Context>;
|
1628 | eval(...args: [
|
1629 | script: string | Buffer,
|
1630 | numkeys: number | string,
|
1631 | ...args: RedisValue[],
|
1632 | callback: Callback<unknown>
|
1633 | ]): Result<unknown, Context>;
|
1634 | eval(...args: [
|
1635 | script: string | Buffer,
|
1636 | numkeys: number | string,
|
1637 | ...args: RedisValue[]
|
1638 | ]): Result<unknown, Context>;
|
1639 | |
1640 |
|
1641 |
|
1642 |
|
1643 |
|
1644 |
|
1645 | eval_ro(...args: [
|
1646 | script: string | Buffer,
|
1647 | numkeys: number | string,
|
1648 | ...args: RedisValue[],
|
1649 | callback: Callback<unknown>
|
1650 | ]): Result<unknown, Context>;
|
1651 | eval_ro(...args: [
|
1652 | script: string | Buffer,
|
1653 | numkeys: number | string,
|
1654 | ...args: RedisValue[]
|
1655 | ]): Result<unknown, Context>;
|
1656 | |
1657 |
|
1658 |
|
1659 |
|
1660 |
|
1661 |
|
1662 | evalsha(sha1: string | Buffer, numkeys: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
1663 | evalsha(...args: [
|
1664 | sha1: string | Buffer,
|
1665 | numkeys: number | string,
|
1666 | ...args: (string | Buffer | number)[],
|
1667 | callback: Callback<unknown>
|
1668 | ]): Result<unknown, Context>;
|
1669 | evalsha(...args: [
|
1670 | sha1: string | Buffer,
|
1671 | numkeys: number | string,
|
1672 | ...args: (string | Buffer | number)[]
|
1673 | ]): Result<unknown, Context>;
|
1674 | evalsha(...args: [
|
1675 | sha1: string | Buffer,
|
1676 | numkeys: number | string,
|
1677 | ...keys: RedisKey[],
|
1678 | callback: Callback<unknown>
|
1679 | ]): Result<unknown, Context>;
|
1680 | evalsha(...args: [
|
1681 | sha1: string | Buffer,
|
1682 | numkeys: number | string,
|
1683 | keys: RedisKey[],
|
1684 | callback: Callback<unknown>
|
1685 | ]): Result<unknown, Context>;
|
1686 | evalsha(...args: [
|
1687 | sha1: string | Buffer,
|
1688 | numkeys: number | string,
|
1689 | ...keys: RedisKey[]
|
1690 | ]): Result<unknown, Context>;
|
1691 | evalsha(...args: [sha1: string | Buffer, numkeys: number | string, keys: RedisKey[]]): Result<unknown, Context>;
|
1692 | evalsha(...args: [
|
1693 | sha1: string | Buffer,
|
1694 | numkeys: number | string,
|
1695 | ...args: RedisValue[],
|
1696 | callback: Callback<unknown>
|
1697 | ]): Result<unknown, Context>;
|
1698 | evalsha(...args: [
|
1699 | sha1: string | Buffer,
|
1700 | numkeys: number | string,
|
1701 | ...args: RedisValue[]
|
1702 | ]): Result<unknown, Context>;
|
1703 | |
1704 |
|
1705 |
|
1706 |
|
1707 |
|
1708 |
|
1709 | evalsha_ro(...args: [
|
1710 | sha1: string | Buffer,
|
1711 | numkeys: number | string,
|
1712 | ...args: RedisValue[],
|
1713 | callback: Callback<unknown>
|
1714 | ]): Result<unknown, Context>;
|
1715 | evalsha_ro(...args: [
|
1716 | sha1: string | Buffer,
|
1717 | numkeys: number | string,
|
1718 | ...args: RedisValue[]
|
1719 | ]): Result<unknown, Context>;
|
1720 | |
1721 |
|
1722 |
|
1723 |
|
1724 |
|
1725 |
|
1726 | exec(callback?: Callback<[error: Error | null, result: unknown][] | null>): Promise<[error: Error | null, result: unknown][] | null>;
|
1727 | |
1728 |
|
1729 |
|
1730 |
|
1731 |
|
1732 |
|
1733 | exists(...args: [...keys: RedisKey[], callback: Callback<number>]): Result<number, Context>;
|
1734 | exists(...args: [keys: RedisKey[], callback: Callback<number>]): Result<number, Context>;
|
1735 | exists(...args: [...keys: RedisKey[]]): Result<number, Context>;
|
1736 | exists(...args: [keys: RedisKey[]]): Result<number, Context>;
|
1737 | |
1738 |
|
1739 |
|
1740 |
|
1741 |
|
1742 |
|
1743 | expire(key: RedisKey, seconds: number | string, callback?: Callback<number>): Result<number, Context>;
|
1744 | expire(key: RedisKey, seconds: number | string, nx: "NX", callback?: Callback<number>): Result<number, Context>;
|
1745 | expire(key: RedisKey, seconds: number | string, xx: "XX", callback?: Callback<number>): Result<number, Context>;
|
1746 | expire(key: RedisKey, seconds: number | string, gt: "GT", callback?: Callback<number>): Result<number, Context>;
|
1747 | expire(key: RedisKey, seconds: number | string, lt: "LT", callback?: Callback<number>): Result<number, Context>;
|
1748 | |
1749 |
|
1750 |
|
1751 |
|
1752 |
|
1753 |
|
1754 | expireat(key: RedisKey, unixTimeSeconds: number | string, callback?: Callback<number>): Result<number, Context>;
|
1755 | expireat(key: RedisKey, unixTimeSeconds: number | string, nx: "NX", callback?: Callback<number>): Result<number, Context>;
|
1756 | expireat(key: RedisKey, unixTimeSeconds: number | string, xx: "XX", callback?: Callback<number>): Result<number, Context>;
|
1757 | expireat(key: RedisKey, unixTimeSeconds: number | string, gt: "GT", callback?: Callback<number>): Result<number, Context>;
|
1758 | expireat(key: RedisKey, unixTimeSeconds: number | string, lt: "LT", callback?: Callback<number>): Result<number, Context>;
|
1759 | |
1760 |
|
1761 |
|
1762 |
|
1763 |
|
1764 |
|
1765 | expiretime(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
1766 | |
1767 |
|
1768 |
|
1769 |
|
1770 |
|
1771 |
|
1772 | failover(callback?: Callback<"OK">): Result<"OK", Context>;
|
1773 | failover(millisecondsToken: "TIMEOUT", milliseconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
1774 | failover(abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
1775 | failover(abort: "ABORT", millisecondsToken: "TIMEOUT", milliseconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
1776 | failover(targetToken: "TO", host: string | Buffer, port: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
1777 | failover(targetToken: "TO", host: string | Buffer, port: number | string, millisecondsToken: "TIMEOUT", milliseconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
1778 | failover(targetToken: "TO", host: string | Buffer, port: number | string, abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
1779 | failover(targetToken: "TO", host: string | Buffer, port: number | string, abort: "ABORT", millisecondsToken: "TIMEOUT", milliseconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
1780 | failover(targetToken: "TO", host: string | Buffer, port: number | string, force: "FORCE", callback?: Callback<"OK">): Result<"OK", Context>;
|
1781 | failover(targetToken: "TO", host: string | Buffer, port: number | string, force: "FORCE", millisecondsToken: "TIMEOUT", milliseconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
1782 | failover(targetToken: "TO", host: string | Buffer, port: number | string, force: "FORCE", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
1783 | failover(targetToken: "TO", host: string | Buffer, port: number | string, force: "FORCE", abort: "ABORT", millisecondsToken: "TIMEOUT", milliseconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
1784 | |
1785 |
|
1786 |
|
1787 |
|
1788 |
|
1789 |
|
1790 | fcall(...args: [
|
1791 | function: string | Buffer,
|
1792 | numkeys: number | string,
|
1793 | ...args: RedisValue[],
|
1794 | callback: Callback<unknown>
|
1795 | ]): Result<unknown, Context>;
|
1796 | fcall(...args: [
|
1797 | function: string | Buffer,
|
1798 | numkeys: number | string,
|
1799 | ...args: RedisValue[]
|
1800 | ]): Result<unknown, Context>;
|
1801 | |
1802 |
|
1803 |
|
1804 |
|
1805 |
|
1806 |
|
1807 | fcall_ro(...args: [
|
1808 | function: string | Buffer,
|
1809 | numkeys: number | string,
|
1810 | ...args: RedisValue[],
|
1811 | callback: Callback<unknown>
|
1812 | ]): Result<unknown, Context>;
|
1813 | fcall_ro(...args: [
|
1814 | function: string | Buffer,
|
1815 | numkeys: number | string,
|
1816 | ...args: RedisValue[]
|
1817 | ]): Result<unknown, Context>;
|
1818 | |
1819 |
|
1820 |
|
1821 |
|
1822 |
|
1823 |
|
1824 | flushall(callback?: Callback<"OK">): Result<"OK", Context>;
|
1825 | flushall(async: "ASYNC", callback?: Callback<"OK">): Result<"OK", Context>;
|
1826 | flushall(sync: "SYNC", callback?: Callback<"OK">): Result<"OK", Context>;
|
1827 | |
1828 |
|
1829 |
|
1830 |
|
1831 |
|
1832 |
|
1833 | flushdb(callback?: Callback<"OK">): Result<"OK", Context>;
|
1834 | flushdb(async: "ASYNC", callback?: Callback<"OK">): Result<"OK", Context>;
|
1835 | flushdb(sync: "SYNC", callback?: Callback<"OK">): Result<"OK", Context>;
|
1836 | |
1837 |
|
1838 |
|
1839 |
|
1840 |
|
1841 |
|
1842 | function(subcommand: "DELETE", libraryName: string | Buffer, callback?: Callback<string>): Result<string, Context>;
|
1843 | functionBuffer(subcommand: "DELETE", libraryName: string | Buffer, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1844 | |
1845 |
|
1846 |
|
1847 |
|
1848 |
|
1849 |
|
1850 | function(subcommand: "DUMP", callback?: Callback<string>): Result<string, Context>;
|
1851 | functionBuffer(subcommand: "DUMP", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1852 | |
1853 |
|
1854 |
|
1855 |
|
1856 |
|
1857 |
|
1858 | function(subcommand: "FLUSH", callback?: Callback<string>): Result<string, Context>;
|
1859 | functionBuffer(subcommand: "FLUSH", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1860 | function(subcommand: "FLUSH", async: "ASYNC", callback?: Callback<string>): Result<string, Context>;
|
1861 | functionBuffer(subcommand: "FLUSH", async: "ASYNC", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1862 | function(subcommand: "FLUSH", sync: "SYNC", callback?: Callback<string>): Result<string, Context>;
|
1863 | functionBuffer(subcommand: "FLUSH", sync: "SYNC", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1864 | |
1865 |
|
1866 |
|
1867 |
|
1868 |
|
1869 |
|
1870 | function(subcommand: "HELP", callback?: Callback<unknown>): Result<unknown, Context>;
|
1871 | |
1872 |
|
1873 |
|
1874 |
|
1875 |
|
1876 |
|
1877 | function(subcommand: "KILL", callback?: Callback<string>): Result<string, Context>;
|
1878 | functionBuffer(subcommand: "KILL", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1879 | |
1880 |
|
1881 |
|
1882 |
|
1883 |
|
1884 |
|
1885 | function(subcommand: "LIST", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1886 | function(subcommand: "LIST", withcode: "WITHCODE", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1887 | function(subcommand: "LIST", libraryNamePatternToken: "LIBRARYNAME", libraryNamePattern: string | Buffer, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1888 | function(subcommand: "LIST", libraryNamePatternToken: "LIBRARYNAME", libraryNamePattern: string | Buffer, withcode: "WITHCODE", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
1889 | |
1890 |
|
1891 |
|
1892 |
|
1893 |
|
1894 |
|
1895 | function(subcommand: "LOAD", functionCode: string | Buffer, callback?: Callback<string>): Result<string, Context>;
|
1896 | functionBuffer(subcommand: "LOAD", functionCode: string | Buffer, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1897 | function(subcommand: "LOAD", replace: "REPLACE", functionCode: string | Buffer, callback?: Callback<string>): Result<string, Context>;
|
1898 | functionBuffer(subcommand: "LOAD", replace: "REPLACE", functionCode: string | Buffer, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1899 | |
1900 |
|
1901 |
|
1902 |
|
1903 |
|
1904 |
|
1905 | function(subcommand: "RESTORE", serializedValue: string | Buffer | number, callback?: Callback<string>): Result<string, Context>;
|
1906 | functionBuffer(subcommand: "RESTORE", serializedValue: string | Buffer | number, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1907 | function(subcommand: "RESTORE", serializedValue: string | Buffer | number, flush: "FLUSH", callback?: Callback<string>): Result<string, Context>;
|
1908 | functionBuffer(subcommand: "RESTORE", serializedValue: string | Buffer | number, flush: "FLUSH", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1909 | function(subcommand: "RESTORE", serializedValue: string | Buffer | number, append: "APPEND", callback?: Callback<string>): Result<string, Context>;
|
1910 | functionBuffer(subcommand: "RESTORE", serializedValue: string | Buffer | number, append: "APPEND", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1911 | function(subcommand: "RESTORE", serializedValue: string | Buffer | number, replace: "REPLACE", callback?: Callback<string>): Result<string, Context>;
|
1912 | functionBuffer(subcommand: "RESTORE", serializedValue: string | Buffer | number, replace: "REPLACE", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
1913 | |
1914 |
|
1915 |
|
1916 |
|
1917 |
|
1918 |
|
1919 | function(subcommand: "STATS", callback?: Callback<unknown>): Result<unknown, Context>;
|
1920 | |
1921 |
|
1922 |
|
1923 |
|
1924 |
|
1925 |
|
1926 | geoadd(...args: [
|
1927 | key: RedisKey,
|
1928 | ...longitudeLatitudeMembers: (string | Buffer | number)[],
|
1929 | callback: Callback<number>
|
1930 | ]): Result<number, Context>;
|
1931 | geoadd(...args: [
|
1932 | key: RedisKey,
|
1933 | ...longitudeLatitudeMembers: (string | Buffer | number)[]
|
1934 | ]): Result<number, Context>;
|
1935 | geoadd(...args: [
|
1936 | key: RedisKey,
|
1937 | ch: "CH",
|
1938 | ...longitudeLatitudeMembers: (string | Buffer | number)[],
|
1939 | callback: Callback<number>
|
1940 | ]): Result<number, Context>;
|
1941 | geoadd(...args: [
|
1942 | key: RedisKey,
|
1943 | ch: "CH",
|
1944 | ...longitudeLatitudeMembers: (string | Buffer | number)[]
|
1945 | ]): Result<number, Context>;
|
1946 | geoadd(...args: [
|
1947 | key: RedisKey,
|
1948 | nx: "NX",
|
1949 | ...longitudeLatitudeMembers: (string | Buffer | number)[],
|
1950 | callback: Callback<number>
|
1951 | ]): Result<number, Context>;
|
1952 | geoadd(...args: [
|
1953 | key: RedisKey,
|
1954 | nx: "NX",
|
1955 | ...longitudeLatitudeMembers: (string | Buffer | number)[]
|
1956 | ]): Result<number, Context>;
|
1957 | geoadd(...args: [
|
1958 | key: RedisKey,
|
1959 | nx: "NX",
|
1960 | ch: "CH",
|
1961 | ...longitudeLatitudeMembers: (string | Buffer | number)[],
|
1962 | callback: Callback<number>
|
1963 | ]): Result<number, Context>;
|
1964 | geoadd(...args: [
|
1965 | key: RedisKey,
|
1966 | nx: "NX",
|
1967 | ch: "CH",
|
1968 | ...longitudeLatitudeMembers: (string | Buffer | number)[]
|
1969 | ]): Result<number, Context>;
|
1970 | geoadd(...args: [
|
1971 | key: RedisKey,
|
1972 | xx: "XX",
|
1973 | ...longitudeLatitudeMembers: (string | Buffer | number)[],
|
1974 | callback: Callback<number>
|
1975 | ]): Result<number, Context>;
|
1976 | geoadd(...args: [
|
1977 | key: RedisKey,
|
1978 | xx: "XX",
|
1979 | ...longitudeLatitudeMembers: (string | Buffer | number)[]
|
1980 | ]): Result<number, Context>;
|
1981 | geoadd(...args: [
|
1982 | key: RedisKey,
|
1983 | xx: "XX",
|
1984 | ch: "CH",
|
1985 | ...longitudeLatitudeMembers: (string | Buffer | number)[],
|
1986 | callback: Callback<number>
|
1987 | ]): Result<number, Context>;
|
1988 | geoadd(...args: [
|
1989 | key: RedisKey,
|
1990 | xx: "XX",
|
1991 | ch: "CH",
|
1992 | ...longitudeLatitudeMembers: (string | Buffer | number)[]
|
1993 | ]): Result<number, Context>;
|
1994 | |
1995 |
|
1996 |
|
1997 |
|
1998 |
|
1999 |
|
2000 | geodist(key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, callback?: Callback<string | null>): Result<string | null, Context>;
|
2001 | geodistBuffer(key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2002 | geodist(key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, m: "M", callback?: Callback<string | null>): Result<string | null, Context>;
|
2003 | geodistBuffer(key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, m: "M", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2004 | geodist(key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, km: "KM", callback?: Callback<string | null>): Result<string | null, Context>;
|
2005 | geodistBuffer(key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, km: "KM", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2006 | geodist(key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, ft: "FT", callback?: Callback<string | null>): Result<string | null, Context>;
|
2007 | geodistBuffer(key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, ft: "FT", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2008 | geodist(key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, mi: "MI", callback?: Callback<string | null>): Result<string | null, Context>;
|
2009 | geodistBuffer(key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, mi: "MI", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2010 | |
2011 |
|
2012 |
|
2013 |
|
2014 |
|
2015 |
|
2016 | geohash(...args: [
|
2017 | key: RedisKey,
|
2018 | ...members: (string | Buffer | number)[],
|
2019 | callback: Callback<string[]>
|
2020 | ]): Result<string[], Context>;
|
2021 | geohashBuffer(...args: [
|
2022 | key: RedisKey,
|
2023 | ...members: (string | Buffer | number)[],
|
2024 | callback: Callback<Buffer[]>
|
2025 | ]): Result<Buffer[], Context>;
|
2026 | geohash(...args: [
|
2027 | key: RedisKey,
|
2028 | members: (string | Buffer | number)[],
|
2029 | callback: Callback<string[]>
|
2030 | ]): Result<string[], Context>;
|
2031 | geohashBuffer(...args: [
|
2032 | key: RedisKey,
|
2033 | members: (string | Buffer | number)[],
|
2034 | callback: Callback<Buffer[]>
|
2035 | ]): Result<Buffer[], Context>;
|
2036 | geohash(...args: [key: RedisKey, ...members: (string | Buffer | number)[]]): Result<string[], Context>;
|
2037 | geohashBuffer(...args: [key: RedisKey, ...members: (string | Buffer | number)[]]): Result<Buffer[], Context>;
|
2038 | geohash(...args: [key: RedisKey, members: (string | Buffer | number)[]]): Result<string[], Context>;
|
2039 | geohashBuffer(...args: [key: RedisKey, members: (string | Buffer | number)[]]): Result<Buffer[], Context>;
|
2040 | |
2041 |
|
2042 |
|
2043 |
|
2044 |
|
2045 |
|
2046 | geopos(...args: [
|
2047 | key: RedisKey,
|
2048 | ...members: (string | Buffer | number)[],
|
2049 | callback: Callback<([longitude: string, latitude: string] | null)[]>
|
2050 | ]): Result<([longitude: string, latitude: string] | null)[], Context>;
|
2051 | geopos(...args: [
|
2052 | key: RedisKey,
|
2053 | members: (string | Buffer | number)[],
|
2054 | callback: Callback<([longitude: string, latitude: string] | null)[]>
|
2055 | ]): Result<([longitude: string, latitude: string] | null)[], Context>;
|
2056 | geopos(...args: [key: RedisKey, ...members: (string | Buffer | number)[]]): Result<([longitude: string, latitude: string] | null)[], Context>;
|
2057 | geopos(...args: [key: RedisKey, members: (string | Buffer | number)[]]): Result<([longitude: string, latitude: string] | null)[], Context>;
|
2058 | |
2059 |
|
2060 |
|
2061 |
|
2062 |
|
2063 |
|
2064 | georadius(...args: [
|
2065 | key: RedisKey,
|
2066 | longitude: number | string,
|
2067 | latitude: number | string,
|
2068 | radius: number | string,
|
2069 | ...args: RedisValue[],
|
2070 | callback: Callback<unknown[]>
|
2071 | ]): Result<unknown[], Context>;
|
2072 | georadius(...args: [
|
2073 | key: RedisKey,
|
2074 | longitude: number | string,
|
2075 | latitude: number | string,
|
2076 | radius: number | string,
|
2077 | ...args: RedisValue[]
|
2078 | ]): Result<unknown[], Context>;
|
2079 | |
2080 |
|
2081 |
|
2082 |
|
2083 |
|
2084 |
|
2085 | georadius_ro(...args: [
|
2086 | key: RedisKey,
|
2087 | longitude: number | string,
|
2088 | latitude: number | string,
|
2089 | radius: number | string,
|
2090 | ...args: RedisValue[],
|
2091 | callback: Callback<unknown>
|
2092 | ]): Result<unknown, Context>;
|
2093 | georadius_ro(...args: [
|
2094 | key: RedisKey,
|
2095 | longitude: number | string,
|
2096 | latitude: number | string,
|
2097 | radius: number | string,
|
2098 | ...args: RedisValue[]
|
2099 | ]): Result<unknown, Context>;
|
2100 | |
2101 |
|
2102 |
|
2103 |
|
2104 |
|
2105 |
|
2106 | georadiusbymember(...args: [
|
2107 | key: RedisKey,
|
2108 | member: string | Buffer | number,
|
2109 | radius: number | string,
|
2110 | ...args: RedisValue[],
|
2111 | callback: Callback<unknown>
|
2112 | ]): Result<unknown, Context>;
|
2113 | georadiusbymember(...args: [
|
2114 | key: RedisKey,
|
2115 | member: string | Buffer | number,
|
2116 | radius: number | string,
|
2117 | ...args: RedisValue[]
|
2118 | ]): Result<unknown, Context>;
|
2119 | |
2120 |
|
2121 |
|
2122 |
|
2123 |
|
2124 |
|
2125 | georadiusbymember_ro(...args: [
|
2126 | key: RedisKey,
|
2127 | member: string | Buffer | number,
|
2128 | radius: number | string,
|
2129 | ...args: RedisValue[],
|
2130 | callback: Callback<unknown>
|
2131 | ]): Result<unknown, Context>;
|
2132 | georadiusbymember_ro(...args: [
|
2133 | key: RedisKey,
|
2134 | member: string | Buffer | number,
|
2135 | radius: number | string,
|
2136 | ...args: RedisValue[]
|
2137 | ]): Result<unknown, Context>;
|
2138 | |
2139 |
|
2140 |
|
2141 |
|
2142 |
|
2143 |
|
2144 | geosearch(...args: [
|
2145 | key: RedisKey,
|
2146 | ...args: RedisValue[],
|
2147 | callback: Callback<unknown[]>
|
2148 | ]): Result<unknown[], Context>;
|
2149 | geosearch(...args: [key: RedisKey, ...args: RedisValue[]]): Result<unknown[], Context>;
|
2150 | |
2151 |
|
2152 |
|
2153 |
|
2154 |
|
2155 |
|
2156 | geosearchstore(...args: [
|
2157 | destination: RedisKey,
|
2158 | source: RedisKey,
|
2159 | ...args: RedisValue[],
|
2160 | callback: Callback<number>
|
2161 | ]): Result<number, Context>;
|
2162 | geosearchstore(...args: [destination: RedisKey, source: RedisKey, ...args: RedisValue[]]): Result<number, Context>;
|
2163 | |
2164 |
|
2165 |
|
2166 |
|
2167 |
|
2168 |
|
2169 | get(key: RedisKey, callback?: Callback<string | null>): Result<string | null, Context>;
|
2170 | getBuffer(key: RedisKey, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2171 | |
2172 |
|
2173 |
|
2174 |
|
2175 |
|
2176 |
|
2177 | getbit(key: RedisKey, offset: number | string, callback?: Callback<number>): Result<number, Context>;
|
2178 | |
2179 |
|
2180 |
|
2181 |
|
2182 |
|
2183 |
|
2184 | getdel(key: RedisKey, callback?: Callback<string | null>): Result<string | null, Context>;
|
2185 | getdelBuffer(key: RedisKey, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2186 | |
2187 |
|
2188 |
|
2189 |
|
2190 |
|
2191 |
|
2192 | getex(key: RedisKey, callback?: Callback<string | null>): Result<string | null, Context>;
|
2193 | getexBuffer(key: RedisKey, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2194 | getex(key: RedisKey, secondsToken: "EX", seconds: number | string, callback?: Callback<string | null>): Result<string | null, Context>;
|
2195 | getexBuffer(key: RedisKey, secondsToken: "EX", seconds: number | string, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2196 | getex(key: RedisKey, millisecondsToken: "PX", milliseconds: number | string, callback?: Callback<string | null>): Result<string | null, Context>;
|
2197 | getexBuffer(key: RedisKey, millisecondsToken: "PX", milliseconds: number | string, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2198 | getex(key: RedisKey, unixTimeSecondsToken: "EXAT", unixTimeSeconds: number | string, callback?: Callback<string | null>): Result<string | null, Context>;
|
2199 | getexBuffer(key: RedisKey, unixTimeSecondsToken: "EXAT", unixTimeSeconds: number | string, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2200 | getex(key: RedisKey, unixTimeMillisecondsToken: "PXAT", unixTimeMilliseconds: number | string, callback?: Callback<string | null>): Result<string | null, Context>;
|
2201 | getexBuffer(key: RedisKey, unixTimeMillisecondsToken: "PXAT", unixTimeMilliseconds: number | string, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2202 | getex(key: RedisKey, persist: "PERSIST", callback?: Callback<string | null>): Result<string | null, Context>;
|
2203 | getexBuffer(key: RedisKey, persist: "PERSIST", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2204 | |
2205 |
|
2206 |
|
2207 |
|
2208 |
|
2209 |
|
2210 | getrange(key: RedisKey, start: number | string, end: number | string, callback?: Callback<string>): Result<string, Context>;
|
2211 | getrangeBuffer(key: RedisKey, start: number | string, end: number | string, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
2212 | |
2213 |
|
2214 |
|
2215 |
|
2216 |
|
2217 |
|
2218 | getset(key: RedisKey, value: string | Buffer | number, callback?: Callback<string | null>): Result<string | null, Context>;
|
2219 | getsetBuffer(key: RedisKey, value: string | Buffer | number, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2220 | |
2221 |
|
2222 |
|
2223 |
|
2224 |
|
2225 |
|
2226 | hdel(...args: [
|
2227 | key: RedisKey,
|
2228 | ...fields: (string | Buffer)[],
|
2229 | callback: Callback<number>
|
2230 | ]): Result<number, Context>;
|
2231 | hdel(...args: [key: RedisKey, ...fields: (string | Buffer)[]]): Result<number, Context>;
|
2232 | |
2233 |
|
2234 |
|
2235 |
|
2236 |
|
2237 |
|
2238 | hello(callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
2239 | hello(protover: number | string, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
2240 | hello(protover: number | string, clientnameToken: "SETNAME", clientname: string | Buffer, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
2241 | hello(protover: number | string, usernamePasswordToken: "AUTH", username: string | Buffer, password: string | Buffer, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
2242 | hello(protover: number | string, usernamePasswordToken: "AUTH", username: string | Buffer, password: string | Buffer, clientnameToken: "SETNAME", clientname: string | Buffer, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
2243 | |
2244 |
|
2245 |
|
2246 |
|
2247 |
|
2248 |
|
2249 | hexists(key: RedisKey, field: string | Buffer, callback?: Callback<number>): Result<number, Context>;
|
2250 | |
2251 |
|
2252 |
|
2253 |
|
2254 |
|
2255 |
|
2256 | hget(key: RedisKey, field: string | Buffer, callback?: Callback<string | null>): Result<string | null, Context>;
|
2257 | hgetBuffer(key: RedisKey, field: string | Buffer, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2258 | |
2259 |
|
2260 |
|
2261 |
|
2262 |
|
2263 |
|
2264 | hgetall(key: RedisKey, callback?: Callback<Record<string, string>>): Result<Record<string, string>, Context>;
|
2265 | hgetallBuffer(key: RedisKey, callback?: Callback<Record<string, Buffer>>): Result<Record<string, Buffer>, Context>;
|
2266 | |
2267 |
|
2268 |
|
2269 |
|
2270 |
|
2271 |
|
2272 | hincrby(key: RedisKey, field: string | Buffer, increment: number | string, callback?: Callback<number>): Result<number, Context>;
|
2273 | |
2274 |
|
2275 |
|
2276 |
|
2277 |
|
2278 |
|
2279 | hincrbyfloat(key: RedisKey, field: string | Buffer, increment: number | string, callback?: Callback<string>): Result<string, Context>;
|
2280 | hincrbyfloatBuffer(key: RedisKey, field: string | Buffer, increment: number | string, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
2281 | |
2282 |
|
2283 |
|
2284 |
|
2285 |
|
2286 |
|
2287 | hkeys(key: RedisKey, callback?: Callback<string[]>): Result<string[], Context>;
|
2288 | hkeysBuffer(key: RedisKey, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
2289 | |
2290 |
|
2291 |
|
2292 |
|
2293 |
|
2294 |
|
2295 | hlen(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
2296 | |
2297 |
|
2298 |
|
2299 |
|
2300 |
|
2301 |
|
2302 | hmget(...args: [
|
2303 | key: RedisKey,
|
2304 | ...fields: (string | Buffer)[],
|
2305 | callback: Callback<(string | null)[]>
|
2306 | ]): Result<(string | null)[], Context>;
|
2307 | hmgetBuffer(...args: [
|
2308 | key: RedisKey,
|
2309 | ...fields: (string | Buffer)[],
|
2310 | callback: Callback<(Buffer | null)[]>
|
2311 | ]): Result<(Buffer | null)[], Context>;
|
2312 | hmget(...args: [key: RedisKey, ...fields: (string | Buffer)[]]): Result<(string | null)[], Context>;
|
2313 | hmgetBuffer(...args: [key: RedisKey, ...fields: (string | Buffer)[]]): Result<(Buffer | null)[], Context>;
|
2314 | |
2315 |
|
2316 |
|
2317 |
|
2318 |
|
2319 |
|
2320 | hmset(key: RedisKey, object: object, callback?: Callback<"OK">): Result<"OK", Context>;
|
2321 | hmset(key: RedisKey, map: Map<string | Buffer | number, string | Buffer | number>, callback?: Callback<"OK">): Result<"OK", Context>;
|
2322 | hmset(...args: [
|
2323 | key: RedisKey,
|
2324 | ...fieldValues: (string | Buffer | number)[],
|
2325 | callback: Callback<"OK">
|
2326 | ]): Result<"OK", Context>;
|
2327 | hmset(...args: [key: RedisKey, ...fieldValues: (string | Buffer | number)[]]): Result<"OK", Context>;
|
2328 | |
2329 |
|
2330 |
|
2331 |
|
2332 |
|
2333 |
|
2334 | hrandfield(key: RedisKey, callback?: Callback<string | unknown[] | null>): Result<string | unknown[] | null, Context>;
|
2335 | hrandfieldBuffer(key: RedisKey, callback?: Callback<Buffer | unknown[] | null>): Result<Buffer | unknown[] | null, Context>;
|
2336 | hrandfield(key: RedisKey, count: number | string, callback?: Callback<string | unknown[] | null>): Result<string | unknown[] | null, Context>;
|
2337 | hrandfieldBuffer(key: RedisKey, count: number | string, callback?: Callback<Buffer | unknown[] | null>): Result<Buffer | unknown[] | null, Context>;
|
2338 | hrandfield(key: RedisKey, count: number | string, withvalues: "WITHVALUES", callback?: Callback<string | unknown[] | null>): Result<string | unknown[] | null, Context>;
|
2339 | hrandfieldBuffer(key: RedisKey, count: number | string, withvalues: "WITHVALUES", callback?: Callback<Buffer | unknown[] | null>): Result<Buffer | unknown[] | null, Context>;
|
2340 | |
2341 |
|
2342 |
|
2343 |
|
2344 |
|
2345 |
|
2346 | hscan(key: RedisKey, cursor: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
2347 | hscanBuffer(key: RedisKey, cursor: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
2348 | hscan(key: RedisKey, cursor: number | string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
2349 | hscanBuffer(key: RedisKey, cursor: number | string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
2350 | hscan(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
2351 | hscanBuffer(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
2352 | hscan(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
2353 | hscanBuffer(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
2354 | |
2355 |
|
2356 |
|
2357 |
|
2358 |
|
2359 |
|
2360 | hset(key: RedisKey, object: object, callback?: Callback<number>): Result<number, Context>;
|
2361 | hset(key: RedisKey, map: Map<string | Buffer | number, string | Buffer | number>, callback?: Callback<number>): Result<number, Context>;
|
2362 | hset(...args: [
|
2363 | key: RedisKey,
|
2364 | ...fieldValues: (string | Buffer | number)[],
|
2365 | callback: Callback<number>
|
2366 | ]): Result<number, Context>;
|
2367 | hset(...args: [key: RedisKey, ...fieldValues: (string | Buffer | number)[]]): Result<number, Context>;
|
2368 | |
2369 |
|
2370 |
|
2371 |
|
2372 |
|
2373 |
|
2374 | hsetnx(key: RedisKey, field: string | Buffer, value: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
2375 | |
2376 |
|
2377 |
|
2378 |
|
2379 |
|
2380 |
|
2381 | hstrlen(key: RedisKey, field: string | Buffer, callback?: Callback<number>): Result<number, Context>;
|
2382 | |
2383 |
|
2384 |
|
2385 |
|
2386 |
|
2387 |
|
2388 | hvals(key: RedisKey, callback?: Callback<string[]>): Result<string[], Context>;
|
2389 | hvalsBuffer(key: RedisKey, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
2390 | |
2391 |
|
2392 |
|
2393 |
|
2394 |
|
2395 |
|
2396 | incr(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
2397 | |
2398 |
|
2399 |
|
2400 |
|
2401 |
|
2402 |
|
2403 | incrby(key: RedisKey, increment: number | string, callback?: Callback<number>): Result<number, Context>;
|
2404 | |
2405 |
|
2406 |
|
2407 |
|
2408 |
|
2409 |
|
2410 | incrbyfloat(key: RedisKey, increment: number | string, callback?: Callback<string>): Result<string, Context>;
|
2411 | |
2412 |
|
2413 |
|
2414 |
|
2415 |
|
2416 |
|
2417 | info(callback?: Callback<string>): Result<string, Context>;
|
2418 | info(...args: [...sections: (string | Buffer)[], callback: Callback<string>]): Result<string, Context>;
|
2419 | info(...args: [...sections: (string | Buffer)[]]): Result<string, Context>;
|
2420 | |
2421 |
|
2422 |
|
2423 |
|
2424 |
|
2425 |
|
2426 | keys(pattern: string, callback?: Callback<string[]>): Result<string[], Context>;
|
2427 | keysBuffer(pattern: string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
2428 | |
2429 |
|
2430 |
|
2431 |
|
2432 |
|
2433 |
|
2434 | lastsave(callback?: Callback<number>): Result<number, Context>;
|
2435 | |
2436 |
|
2437 |
|
2438 |
|
2439 |
|
2440 |
|
2441 | latency(subcommand: "DOCTOR", callback?: Callback<string>): Result<string, Context>;
|
2442 | |
2443 |
|
2444 |
|
2445 |
|
2446 |
|
2447 |
|
2448 | latency(subcommand: "GRAPH", event: string | Buffer, callback?: Callback<string>): Result<string, Context>;
|
2449 | |
2450 |
|
2451 |
|
2452 |
|
2453 |
|
2454 |
|
2455 | latency(subcommand: "HELP", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
2456 | |
2457 |
|
2458 |
|
2459 |
|
2460 |
|
2461 |
|
2462 | latency(subcommand: "HISTOGRAM", callback?: Callback<unknown>): Result<unknown, Context>;
|
2463 | latency(...args: [
|
2464 | subcommand: "HISTOGRAM",
|
2465 | ...commands: (string | Buffer)[],
|
2466 | callback: Callback<unknown>
|
2467 | ]): Result<unknown, Context>;
|
2468 | latency(...args: [subcommand: "HISTOGRAM", ...commands: (string | Buffer)[]]): Result<unknown, Context>;
|
2469 | |
2470 |
|
2471 |
|
2472 |
|
2473 |
|
2474 |
|
2475 | latency(subcommand: "HISTORY", event: string | Buffer, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
2476 | |
2477 |
|
2478 |
|
2479 |
|
2480 |
|
2481 |
|
2482 | latency(subcommand: "LATEST", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
2483 | |
2484 |
|
2485 |
|
2486 |
|
2487 |
|
2488 |
|
2489 | latency(subcommand: "RESET", callback?: Callback<number>): Result<number, Context>;
|
2490 | latency(...args: [
|
2491 | subcommand: "RESET",
|
2492 | ...events: (string | Buffer)[],
|
2493 | callback: Callback<number>
|
2494 | ]): Result<number, Context>;
|
2495 | latency(...args: [subcommand: "RESET", ...events: (string | Buffer)[]]): Result<number, Context>;
|
2496 | |
2497 |
|
2498 |
|
2499 |
|
2500 |
|
2501 |
|
2502 | lcs(key1: RedisKey, key2: RedisKey, callback?: Callback<unknown>): Result<unknown, Context>;
|
2503 | lcs(key1: RedisKey, key2: RedisKey, withmatchlen: "WITHMATCHLEN", callback?: Callback<unknown>): Result<unknown, Context>;
|
2504 | lcs(key1: RedisKey, key2: RedisKey, lenToken: "MINMATCHLEN", len: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
2505 | lcs(key1: RedisKey, key2: RedisKey, lenToken: "MINMATCHLEN", len: number | string, withmatchlen: "WITHMATCHLEN", callback?: Callback<unknown>): Result<unknown, Context>;
|
2506 | lcs(key1: RedisKey, key2: RedisKey, idx: "IDX", callback?: Callback<unknown>): Result<unknown, Context>;
|
2507 | lcs(key1: RedisKey, key2: RedisKey, idx: "IDX", withmatchlen: "WITHMATCHLEN", callback?: Callback<unknown>): Result<unknown, Context>;
|
2508 | lcs(key1: RedisKey, key2: RedisKey, idx: "IDX", lenToken: "MINMATCHLEN", len: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
2509 | lcs(key1: RedisKey, key2: RedisKey, idx: "IDX", lenToken: "MINMATCHLEN", len: number | string, withmatchlen: "WITHMATCHLEN", callback?: Callback<unknown>): Result<unknown, Context>;
|
2510 | lcs(key1: RedisKey, key2: RedisKey, len: "LEN", callback?: Callback<unknown>): Result<unknown, Context>;
|
2511 | lcs(key1: RedisKey, key2: RedisKey, len: "LEN", withmatchlen: "WITHMATCHLEN", callback?: Callback<unknown>): Result<unknown, Context>;
|
2512 | lcs(key1: RedisKey, key2: RedisKey, len: "LEN", lenToken: "MINMATCHLEN", len1: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
2513 | lcs(key1: RedisKey, key2: RedisKey, len: "LEN", lenToken: "MINMATCHLEN", len1: number | string, withmatchlen: "WITHMATCHLEN", callback?: Callback<unknown>): Result<unknown, Context>;
|
2514 | lcs(key1: RedisKey, key2: RedisKey, len: "LEN", idx: "IDX", callback?: Callback<unknown>): Result<unknown, Context>;
|
2515 | lcs(key1: RedisKey, key2: RedisKey, len: "LEN", idx: "IDX", withmatchlen: "WITHMATCHLEN", callback?: Callback<unknown>): Result<unknown, Context>;
|
2516 | lcs(key1: RedisKey, key2: RedisKey, len: "LEN", idx: "IDX", lenToken: "MINMATCHLEN", len1: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
2517 | lcs(key1: RedisKey, key2: RedisKey, len: "LEN", idx: "IDX", lenToken: "MINMATCHLEN", len1: number | string, withmatchlen: "WITHMATCHLEN", callback?: Callback<unknown>): Result<unknown, Context>;
|
2518 | |
2519 |
|
2520 |
|
2521 |
|
2522 |
|
2523 |
|
2524 | lindex(key: RedisKey, index: number | string, callback?: Callback<string | null>): Result<string | null, Context>;
|
2525 | lindexBuffer(key: RedisKey, index: number | string, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2526 | |
2527 |
|
2528 |
|
2529 |
|
2530 |
|
2531 |
|
2532 | linsert(key: RedisKey, before: "BEFORE", pivot: string | Buffer | number, element: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
2533 | linsert(key: RedisKey, after: "AFTER", pivot: string | Buffer | number, element: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
2534 | |
2535 |
|
2536 |
|
2537 |
|
2538 |
|
2539 |
|
2540 | llen(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
2541 | |
2542 |
|
2543 |
|
2544 |
|
2545 |
|
2546 |
|
2547 | lmove(source: RedisKey, destination: RedisKey, left: "LEFT", left1: "LEFT", callback?: Callback<string>): Result<string, Context>;
|
2548 | lmoveBuffer(source: RedisKey, destination: RedisKey, left: "LEFT", left1: "LEFT", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
2549 | lmove(source: RedisKey, destination: RedisKey, left: "LEFT", right: "RIGHT", callback?: Callback<string>): Result<string, Context>;
|
2550 | lmoveBuffer(source: RedisKey, destination: RedisKey, left: "LEFT", right: "RIGHT", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
2551 | lmove(source: RedisKey, destination: RedisKey, right: "RIGHT", left: "LEFT", callback?: Callback<string>): Result<string, Context>;
|
2552 | lmoveBuffer(source: RedisKey, destination: RedisKey, right: "RIGHT", left: "LEFT", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
2553 | lmove(source: RedisKey, destination: RedisKey, right: "RIGHT", right1: "RIGHT", callback?: Callback<string>): Result<string, Context>;
|
2554 | lmoveBuffer(source: RedisKey, destination: RedisKey, right: "RIGHT", right1: "RIGHT", callback?: Callback<Buffer>): Result<Buffer, Context>;
|
2555 | |
2556 |
|
2557 |
|
2558 |
|
2559 |
|
2560 |
|
2561 | lmpop(...args: [
|
2562 | numkeys: number | string,
|
2563 | ...keys: RedisKey[],
|
2564 | left: "LEFT",
|
2565 | callback: Callback<[key: string, members: string[]] | null>
|
2566 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2567 | lmpopBuffer(...args: [
|
2568 | numkeys: number | string,
|
2569 | ...keys: RedisKey[],
|
2570 | left: "LEFT",
|
2571 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
2572 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2573 | lmpop(...args: [
|
2574 | numkeys: number | string,
|
2575 | keys: RedisKey[],
|
2576 | left: "LEFT",
|
2577 | callback: Callback<[key: string, members: string[]] | null>
|
2578 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2579 | lmpopBuffer(...args: [
|
2580 | numkeys: number | string,
|
2581 | keys: RedisKey[],
|
2582 | left: "LEFT",
|
2583 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
2584 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2585 | lmpop(...args: [numkeys: number | string, ...keys: RedisKey[], left: "LEFT"]): Result<[key: string, members: string[]] | null, Context>;
|
2586 | lmpopBuffer(...args: [numkeys: number | string, ...keys: RedisKey[], left: "LEFT"]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2587 | lmpop(...args: [numkeys: number | string, keys: RedisKey[], left: "LEFT"]): Result<[key: string, members: string[]] | null, Context>;
|
2588 | lmpopBuffer(...args: [numkeys: number | string, keys: RedisKey[], left: "LEFT"]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2589 | lmpop(...args: [
|
2590 | numkeys: number | string,
|
2591 | ...keys: RedisKey[],
|
2592 | left: "LEFT",
|
2593 | countToken: "COUNT",
|
2594 | count: number | string,
|
2595 | callback: Callback<[key: string, members: string[]] | null>
|
2596 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2597 | lmpopBuffer(...args: [
|
2598 | numkeys: number | string,
|
2599 | ...keys: RedisKey[],
|
2600 | left: "LEFT",
|
2601 | countToken: "COUNT",
|
2602 | count: number | string,
|
2603 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
2604 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2605 | lmpop(...args: [
|
2606 | numkeys: number | string,
|
2607 | keys: RedisKey[],
|
2608 | left: "LEFT",
|
2609 | countToken: "COUNT",
|
2610 | count: number | string,
|
2611 | callback: Callback<[key: string, members: string[]] | null>
|
2612 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2613 | lmpopBuffer(...args: [
|
2614 | numkeys: number | string,
|
2615 | keys: RedisKey[],
|
2616 | left: "LEFT",
|
2617 | countToken: "COUNT",
|
2618 | count: number | string,
|
2619 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
2620 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2621 | lmpop(...args: [
|
2622 | numkeys: number | string,
|
2623 | ...keys: RedisKey[],
|
2624 | left: "LEFT",
|
2625 | countToken: "COUNT",
|
2626 | count: number | string
|
2627 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2628 | lmpopBuffer(...args: [
|
2629 | numkeys: number | string,
|
2630 | ...keys: RedisKey[],
|
2631 | left: "LEFT",
|
2632 | countToken: "COUNT",
|
2633 | count: number | string
|
2634 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2635 | lmpop(...args: [
|
2636 | numkeys: number | string,
|
2637 | keys: RedisKey[],
|
2638 | left: "LEFT",
|
2639 | countToken: "COUNT",
|
2640 | count: number | string
|
2641 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2642 | lmpopBuffer(...args: [
|
2643 | numkeys: number | string,
|
2644 | keys: RedisKey[],
|
2645 | left: "LEFT",
|
2646 | countToken: "COUNT",
|
2647 | count: number | string
|
2648 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2649 | lmpop(...args: [
|
2650 | numkeys: number | string,
|
2651 | ...keys: RedisKey[],
|
2652 | right: "RIGHT",
|
2653 | callback: Callback<[key: string, members: string[]] | null>
|
2654 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2655 | lmpopBuffer(...args: [
|
2656 | numkeys: number | string,
|
2657 | ...keys: RedisKey[],
|
2658 | right: "RIGHT",
|
2659 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
2660 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2661 | lmpop(...args: [
|
2662 | numkeys: number | string,
|
2663 | keys: RedisKey[],
|
2664 | right: "RIGHT",
|
2665 | callback: Callback<[key: string, members: string[]] | null>
|
2666 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2667 | lmpopBuffer(...args: [
|
2668 | numkeys: number | string,
|
2669 | keys: RedisKey[],
|
2670 | right: "RIGHT",
|
2671 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
2672 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2673 | lmpop(...args: [numkeys: number | string, ...keys: RedisKey[], right: "RIGHT"]): Result<[key: string, members: string[]] | null, Context>;
|
2674 | lmpopBuffer(...args: [numkeys: number | string, ...keys: RedisKey[], right: "RIGHT"]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2675 | lmpop(...args: [numkeys: number | string, keys: RedisKey[], right: "RIGHT"]): Result<[key: string, members: string[]] | null, Context>;
|
2676 | lmpopBuffer(...args: [numkeys: number | string, keys: RedisKey[], right: "RIGHT"]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2677 | lmpop(...args: [
|
2678 | numkeys: number | string,
|
2679 | ...keys: RedisKey[],
|
2680 | right: "RIGHT",
|
2681 | countToken: "COUNT",
|
2682 | count: number | string,
|
2683 | callback: Callback<[key: string, members: string[]] | null>
|
2684 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2685 | lmpopBuffer(...args: [
|
2686 | numkeys: number | string,
|
2687 | ...keys: RedisKey[],
|
2688 | right: "RIGHT",
|
2689 | countToken: "COUNT",
|
2690 | count: number | string,
|
2691 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
2692 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2693 | lmpop(...args: [
|
2694 | numkeys: number | string,
|
2695 | keys: RedisKey[],
|
2696 | right: "RIGHT",
|
2697 | countToken: "COUNT",
|
2698 | count: number | string,
|
2699 | callback: Callback<[key: string, members: string[]] | null>
|
2700 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2701 | lmpopBuffer(...args: [
|
2702 | numkeys: number | string,
|
2703 | keys: RedisKey[],
|
2704 | right: "RIGHT",
|
2705 | countToken: "COUNT",
|
2706 | count: number | string,
|
2707 | callback: Callback<[key: Buffer, members: Buffer[]] | null>
|
2708 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2709 | lmpop(...args: [
|
2710 | numkeys: number | string,
|
2711 | ...keys: RedisKey[],
|
2712 | right: "RIGHT",
|
2713 | countToken: "COUNT",
|
2714 | count: number | string
|
2715 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2716 | lmpopBuffer(...args: [
|
2717 | numkeys: number | string,
|
2718 | ...keys: RedisKey[],
|
2719 | right: "RIGHT",
|
2720 | countToken: "COUNT",
|
2721 | count: number | string
|
2722 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2723 | lmpop(...args: [
|
2724 | numkeys: number | string,
|
2725 | keys: RedisKey[],
|
2726 | right: "RIGHT",
|
2727 | countToken: "COUNT",
|
2728 | count: number | string
|
2729 | ]): Result<[key: string, members: string[]] | null, Context>;
|
2730 | lmpopBuffer(...args: [
|
2731 | numkeys: number | string,
|
2732 | keys: RedisKey[],
|
2733 | right: "RIGHT",
|
2734 | countToken: "COUNT",
|
2735 | count: number | string
|
2736 | ]): Result<[key: Buffer, members: Buffer[]] | null, Context>;
|
2737 | |
2738 |
|
2739 |
|
2740 |
|
2741 |
|
2742 |
|
2743 | lolwut(callback?: Callback<string>): Result<string, Context>;
|
2744 | lolwut(versionToken: "VERSION", version: number | string, callback?: Callback<string>): Result<string, Context>;
|
2745 | |
2746 |
|
2747 |
|
2748 |
|
2749 |
|
2750 |
|
2751 | lpop(key: RedisKey, callback?: Callback<string | null>): Result<string | null, Context>;
|
2752 | lpopBuffer(key: RedisKey, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
2753 | lpop(key: RedisKey, count: number | string, callback?: Callback<string[] | null>): Result<string[] | null, Context>;
|
2754 | lpopBuffer(key: RedisKey, count: number | string, callback?: Callback<Buffer[] | null>): Result<Buffer[] | null, Context>;
|
2755 | |
2756 |
|
2757 |
|
2758 |
|
2759 |
|
2760 |
|
2761 | lpos(key: RedisKey, element: string | Buffer | number, callback?: Callback<number | null>): Result<number | null, Context>;
|
2762 | lpos(key: RedisKey, element: string | Buffer | number, lenToken: "MAXLEN", len: number | string, callback?: Callback<number | null>): Result<number | null, Context>;
|
2763 | lpos(key: RedisKey, element: string | Buffer | number, numMatchesToken: "COUNT", numMatches: number | string, callback?: Callback<number[]>): Result<number[], Context>;
|
2764 | lpos(key: RedisKey, element: string | Buffer | number, numMatchesToken: "COUNT", numMatches: number | string, lenToken: "MAXLEN", len: number | string, callback?: Callback<number[]>): Result<number[], Context>;
|
2765 | lpos(key: RedisKey, element: string | Buffer | number, rankToken: "RANK", rank: number | string, callback?: Callback<number | null>): Result<number | null, Context>;
|
2766 | lpos(key: RedisKey, element: string | Buffer | number, rankToken: "RANK", rank: number | string, lenToken: "MAXLEN", len: number | string, callback?: Callback<number | null>): Result<number | null, Context>;
|
2767 | lpos(key: RedisKey, element: string | Buffer | number, rankToken: "RANK", rank: number | string, numMatchesToken: "COUNT", numMatches: number | string, callback?: Callback<number[]>): Result<number[], Context>;
|
2768 | lpos(key: RedisKey, element: string | Buffer | number, rankToken: "RANK", rank: number | string, numMatchesToken: "COUNT", numMatches: number | string, lenToken: "MAXLEN", len: number | string, callback?: Callback<number[]>): Result<number[], Context>;
|
2769 | |
2770 |
|
2771 |
|
2772 |
|
2773 |
|
2774 |
|
2775 | lpush(...args: [
|
2776 | key: RedisKey,
|
2777 | ...elements: (string | Buffer | number)[],
|
2778 | callback: Callback<number>
|
2779 | ]): Result<number, Context>;
|
2780 | lpush(...args: [key: RedisKey, ...elements: (string | Buffer | number)[]]): Result<number, Context>;
|
2781 | |
2782 |
|
2783 |
|
2784 |
|
2785 |
|
2786 |
|
2787 | lpushx(...args: [
|
2788 | key: RedisKey,
|
2789 | ...elements: (string | Buffer | number)[],
|
2790 | callback: Callback<number>
|
2791 | ]): Result<number, Context>;
|
2792 | lpushx(...args: [key: RedisKey, ...elements: (string | Buffer | number)[]]): Result<number, Context>;
|
2793 | |
2794 |
|
2795 |
|
2796 |
|
2797 |
|
2798 |
|
2799 | lrange(key: RedisKey, start: number | string, stop: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
2800 | lrangeBuffer(key: RedisKey, start: number | string, stop: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
2801 | |
2802 |
|
2803 |
|
2804 |
|
2805 |
|
2806 |
|
2807 | lrem(key: RedisKey, count: number | string, element: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
2808 | |
2809 |
|
2810 |
|
2811 |
|
2812 |
|
2813 |
|
2814 | lset(key: RedisKey, index: number | string, element: string | Buffer | number, callback?: Callback<"OK">): Result<"OK", Context>;
|
2815 | |
2816 |
|
2817 |
|
2818 |
|
2819 |
|
2820 |
|
2821 | ltrim(key: RedisKey, start: number | string, stop: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
2822 | |
2823 |
|
2824 |
|
2825 |
|
2826 |
|
2827 |
|
2828 | memory(subcommand: "DOCTOR", callback?: Callback<string>): Result<string, Context>;
|
2829 | |
2830 |
|
2831 |
|
2832 |
|
2833 |
|
2834 |
|
2835 | memory(subcommand: "HELP", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
2836 | |
2837 |
|
2838 |
|
2839 |
|
2840 |
|
2841 |
|
2842 | memory(subcommand: "MALLOC-STATS", callback?: Callback<string>): Result<string, Context>;
|
2843 | |
2844 |
|
2845 |
|
2846 |
|
2847 |
|
2848 |
|
2849 | memory(subcommand: "PURGE", callback?: Callback<"OK">): Result<"OK", Context>;
|
2850 | |
2851 |
|
2852 |
|
2853 |
|
2854 |
|
2855 |
|
2856 | memory(subcommand: "STATS", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
2857 | |
2858 |
|
2859 |
|
2860 |
|
2861 |
|
2862 |
|
2863 | memory(subcommand: "USAGE", key: RedisKey, callback?: Callback<number | null>): Result<number | null, Context>;
|
2864 | memory(subcommand: "USAGE", key: RedisKey, countToken: "SAMPLES", count: number | string, callback?: Callback<number | null>): Result<number | null, Context>;
|
2865 | |
2866 |
|
2867 |
|
2868 |
|
2869 |
|
2870 |
|
2871 | mget(...args: [...keys: RedisKey[], callback: Callback<(string | null)[]>]): Result<(string | null)[], Context>;
|
2872 | mgetBuffer(...args: [...keys: RedisKey[], callback: Callback<(Buffer | null)[]>]): Result<(Buffer | null)[], Context>;
|
2873 | mget(...args: [keys: RedisKey[], callback: Callback<(string | null)[]>]): Result<(string | null)[], Context>;
|
2874 | mgetBuffer(...args: [keys: RedisKey[], callback: Callback<(Buffer | null)[]>]): Result<(Buffer | null)[], Context>;
|
2875 | mget(...args: [...keys: RedisKey[]]): Result<(string | null)[], Context>;
|
2876 | mgetBuffer(...args: [...keys: RedisKey[]]): Result<(Buffer | null)[], Context>;
|
2877 | mget(...args: [keys: RedisKey[]]): Result<(string | null)[], Context>;
|
2878 | mgetBuffer(...args: [keys: RedisKey[]]): Result<(Buffer | null)[], Context>;
|
2879 | |
2880 |
|
2881 |
|
2882 |
|
2883 |
|
2884 |
|
2885 | migrate(...args: [
|
2886 | host: string | Buffer,
|
2887 | port: number | string,
|
2888 | ...args: RedisValue[],
|
2889 | callback: Callback<"OK">
|
2890 | ]): Result<"OK", Context>;
|
2891 | migrate(...args: [
|
2892 | host: string | Buffer,
|
2893 | port: number | string,
|
2894 | ...args: RedisValue[]
|
2895 | ]): Result<"OK", Context>;
|
2896 | |
2897 |
|
2898 |
|
2899 |
|
2900 |
|
2901 |
|
2902 | module(subcommand: "HELP", callback?: Callback<unknown>): Result<unknown, Context>;
|
2903 | /**
|
2904 | * List all modules loaded by the server
|
2905 | * - _group_: server
|
2906 | * - _complexity_: O(N) where N is the number of loaded modules.
|
2907 | * - _since_: 4.0.0
|
2908 | */
|
2909 | module(subcommand: "LIST", callback?: Callback<unknown>): Result<unknown, Context>;
|
2910 | /**
|
2911 | * Load a module
|
2912 | * - _group_: server
|
2913 | * - _complexity_: O(1)
|
2914 | * - _since_: 4.0.0
|
2915 | */
|
2916 | module(subcommand: "LOAD", path: string | Buffer, callback?: Callback<unknown>): Result<unknown, Context>;
|
2917 | module(...args: [
|
2918 | subcommand: "LOAD",
|
2919 | path: string | Buffer,
|
2920 | ...args: (string | Buffer | number)[],
|
2921 | callback: Callback<unknown>
|
2922 | ]): Result<unknown, Context>;
|
2923 | module(...args: [
|
2924 | subcommand: "LOAD",
|
2925 | path: string | Buffer,
|
2926 | ...args: (string | Buffer | number)[]
|
2927 | ]): Result<unknown, Context>;
|
2928 | /**
|
2929 | * Load a module with extended parameters
|
2930 | * - _group_: server
|
2931 | * - _complexity_: O(1)
|
2932 | * - _since_: 7.0.0
|
2933 | */
|
2934 | module(subcommand: "LOADEX", path: string | Buffer, callback?: Callback<unknown>): Result<unknown, Context>;
|
2935 | module(...args: [
|
2936 | subcommand: "LOADEX",
|
2937 | path: string | Buffer,
|
2938 | argsToken: "ARGS",
|
2939 | ...args: (string | Buffer | number)[],
|
2940 | callback: Callback<unknown>
|
2941 | ]): Result<unknown, Context>;
|
2942 | module(...args: [
|
2943 | subcommand: "LOADEX",
|
2944 | path: string | Buffer,
|
2945 | argsToken: "ARGS",
|
2946 | ...args: (string | Buffer | number)[]
|
2947 | ]): Result<unknown, Context>;
|
2948 | module(...args: [
|
2949 | subcommand: "LOADEX",
|
2950 | path: string | Buffer,
|
2951 | configsToken: "CONFIG",
|
2952 | ...configs: (string | Buffer | number)[],
|
2953 | callback: Callback<unknown>
|
2954 | ]): Result<unknown, Context>;
|
2955 | module(...args: [
|
2956 | subcommand: "LOADEX",
|
2957 | path: string | Buffer,
|
2958 | configsToken: "CONFIG",
|
2959 | ...configs: (string | Buffer | number)[]
|
2960 | ]): Result<unknown, Context>;
|
2961 | module(...args: [
|
2962 | subcommand: "LOADEX",
|
2963 | path: string | Buffer,
|
2964 | configsToken: "CONFIG",
|
2965 | ...args: RedisValue[],
|
2966 | callback: Callback<unknown>
|
2967 | ]): Result<unknown, Context>;
|
2968 | module(...args: [
|
2969 | subcommand: "LOADEX",
|
2970 | path: string | Buffer,
|
2971 | configsToken: "CONFIG",
|
2972 | ...args: RedisValue[]
|
2973 | ]): Result<unknown, Context>;
|
2974 | /**
|
2975 | * Unload a module
|
2976 | * - _group_: server
|
2977 | * - _complexity_: O(1)
|
2978 | * - _since_: 4.0.0
|
2979 | */
|
2980 | module(subcommand: "UNLOAD", name: string | Buffer, callback?: Callback<unknown>): Result<unknown, Context>;
|
2981 | /**
|
2982 | * Move a key to another database
|
2983 | * - _group_: generic
|
2984 | * - _complexity_: O(1)
|
2985 | * - _since_: 1.0.0
|
2986 | */
|
2987 | move(key: RedisKey, db: number | string, callback?: Callback<number>): Result<number, Context>;
|
2988 | /**
|
2989 | * Set multiple keys to multiple values
|
2990 | * - _group_: string
|
2991 | * - _complexity_: O(N) where N is the number of keys to set.
|
2992 | * - _since_: 1.0.1
|
2993 | */
|
2994 | mset(object: object, callback?: Callback<"OK">): Result<"OK", Context>;
|
2995 | mset(map: Map<string | Buffer | number, string | Buffer | number>, callback?: Callback<"OK">): Result<"OK", Context>;
|
2996 | mset(...args: [
|
2997 | ...keyValues: (RedisKey | string | Buffer | number)[],
|
2998 | callback: Callback<"OK">
|
2999 | ]): Result<"OK", Context>;
|
3000 | mset(...args: [...keyValues: (RedisKey | string | Buffer | number)[]]): Result<"OK", Context>;
|
3001 | /**
|
3002 | * Set multiple keys to multiple values, only if none of the keys exist
|
3003 | * - _group_: string
|
3004 | * - _complexity_: O(N) where N is the number of keys to set.
|
3005 | * - _since_: 1.0.1
|
3006 | */
|
3007 | msetnx(object: object, callback?: Callback<"OK">): Result<"OK", Context>;
|
3008 | msetnx(map: Map<string | Buffer | number, string | Buffer | number>, callback?: Callback<"OK">): Result<"OK", Context>;
|
3009 | msetnx(...args: [
|
3010 | ...keyValues: (RedisKey | string | Buffer | number)[],
|
3011 | callback: Callback<number>
|
3012 | ]): Result<number, Context>;
|
3013 | msetnx(...args: [...keyValues: (RedisKey | string | Buffer | number)[]]): Result<number, Context>;
|
3014 | /**
|
3015 | * Inspect the internal encoding of a Redis object
|
3016 | * - _group_: generic
|
3017 | * - _complexity_: O(1)
|
3018 | * - _since_: 2.2.3
|
3019 | */
|
3020 | object(subcommand: "ENCODING", key: RedisKey, callback?: Callback<unknown>): Result<unknown, Context>;
|
3021 | /**
|
3022 | * Get the logarithmic access frequency counter of a Redis object
|
3023 | * - _group_: generic
|
3024 | * - _complexity_: O(1)
|
3025 | * - _since_: 4.0.0
|
3026 | */
|
3027 | object(subcommand: "FREQ", key: RedisKey, callback?: Callback<unknown>): Result<unknown, Context>;
|
3028 | /**
|
3029 | * Show helpful text about the different subcommands
|
3030 | * - _group_: generic
|
3031 | * - _complexity_: O(1)
|
3032 | * - _since_: 6.2.0
|
3033 | */
|
3034 | object(subcommand: "HELP", callback?: Callback<unknown>): Result<unknown, Context>;
|
3035 | /**
|
3036 | * Get the time since a Redis object was last accessed
|
3037 | * - _group_: generic
|
3038 | * - _complexity_: O(1)
|
3039 | * - _since_: 2.2.3
|
3040 | */
|
3041 | object(subcommand: "IDLETIME", key: RedisKey, callback?: Callback<unknown>): Result<unknown, Context>;
|
3042 | /**
|
3043 | * Get the number of references to the value of the key
|
3044 | * - _group_: generic
|
3045 | * - _complexity_: O(1)
|
3046 | * - _since_: 2.2.3
|
3047 | */
|
3048 | object(subcommand: "REFCOUNT", key: RedisKey, callback?: Callback<unknown>): Result<unknown, Context>;
|
3049 | /**
|
3050 | * Remove the expiration from a key
|
3051 | * - _group_: generic
|
3052 | * - _complexity_: O(1)
|
3053 | * - _since_: 2.2.0
|
3054 | */
|
3055 | persist(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
3056 | /**
|
3057 | * Set a key's time to live in milliseconds
|
3058 | * - _group_: generic
|
3059 | * - _complexity_: O(1)
|
3060 | * - _since_: 2.6.0
|
3061 | */
|
3062 | pexpire(key: RedisKey, milliseconds: number | string, callback?: Callback<number>): Result<number, Context>;
|
3063 | pexpire(key: RedisKey, milliseconds: number | string, nx: "NX", callback?: Callback<number>): Result<number, Context>;
|
3064 | pexpire(key: RedisKey, milliseconds: number | string, xx: "XX", callback?: Callback<number>): Result<number, Context>;
|
3065 | pexpire(key: RedisKey, milliseconds: number | string, gt: "GT", callback?: Callback<number>): Result<number, Context>;
|
3066 | pexpire(key: RedisKey, milliseconds: number | string, lt: "LT", callback?: Callback<number>): Result<number, Context>;
|
3067 | /**
|
3068 | * Set the expiration for a key as a UNIX timestamp specified in milliseconds
|
3069 | * - _group_: generic
|
3070 | * - _complexity_: O(1)
|
3071 | * - _since_: 2.6.0
|
3072 | */
|
3073 | pexpireat(key: RedisKey, unixTimeMilliseconds: number | string, callback?: Callback<number>): Result<number, Context>;
|
3074 | pexpireat(key: RedisKey, unixTimeMilliseconds: number | string, nx: "NX", callback?: Callback<number>): Result<number, Context>;
|
3075 | pexpireat(key: RedisKey, unixTimeMilliseconds: number | string, xx: "XX", callback?: Callback<number>): Result<number, Context>;
|
3076 | pexpireat(key: RedisKey, unixTimeMilliseconds: number | string, gt: "GT", callback?: Callback<number>): Result<number, Context>;
|
3077 | pexpireat(key: RedisKey, unixTimeMilliseconds: number | string, lt: "LT", callback?: Callback<number>): Result<number, Context>;
|
3078 | /**
|
3079 | * Get the expiration Unix timestamp for a key in milliseconds
|
3080 | * - _group_: generic
|
3081 | * - _complexity_: O(1)
|
3082 | * - _since_: 7.0.0
|
3083 | */
|
3084 | pexpiretime(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
3085 | /**
|
3086 | * Adds the specified elements to the specified HyperLogLog.
|
3087 | * - _group_: hyperloglog
|
3088 | * - _complexity_: O(1) to add every element.
|
3089 | * - _since_: 2.8.9
|
3090 | */
|
3091 | pfadd(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
3092 | pfadd(...args: [
|
3093 | key: RedisKey,
|
3094 | ...elements: (string | Buffer | number)[],
|
3095 | callback: Callback<number>
|
3096 | ]): Result<number, Context>;
|
3097 | pfadd(...args: [key: RedisKey, ...elements: (string | Buffer | number)[]]): Result<number, Context>;
|
3098 | /**
|
3099 | * Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).
|
3100 | * - _group_: hyperloglog
|
3101 | * - _complexity_: O(1) with a very small average constant time when called with a single key. O(N) with N being the number of keys, and much bigger constant times, when called with multiple keys.
|
3102 | * - _since_: 2.8.9
|
3103 | */
|
3104 | pfcount(...args: [...keys: RedisKey[], callback: Callback<number>]): Result<number, Context>;
|
3105 | pfcount(...args: [keys: RedisKey[], callback: Callback<number>]): Result<number, Context>;
|
3106 | pfcount(...args: [...keys: RedisKey[]]): Result<number, Context>;
|
3107 | pfcount(...args: [keys: RedisKey[]]): Result<number, Context>;
|
3108 | /**
|
3109 | * Internal commands for debugging HyperLogLog values
|
3110 | * - _group_: hyperloglog
|
3111 | * - _complexity_: N/A
|
3112 | * - _since_: 2.8.9
|
3113 | */
|
3114 | pfdebug(subcommand: string | Buffer, key: RedisKey, callback?: Callback<unknown>): Result<unknown, Context>;
|
3115 | /**
|
3116 | * Merge N different HyperLogLogs into a single one.
|
3117 | * - _group_: hyperloglog
|
3118 | * - _complexity_: O(N) to merge N HyperLogLogs, but with high constant times.
|
3119 | * - _since_: 2.8.9
|
3120 | */
|
3121 | pfmerge(...args: [
|
3122 | destkey: RedisKey,
|
3123 | ...sourcekeys: RedisKey[],
|
3124 | callback: Callback<"OK">
|
3125 | ]): Result<"OK", Context>;
|
3126 | pfmerge(...args: [
|
3127 | destkey: RedisKey,
|
3128 | sourcekeys: RedisKey[],
|
3129 | callback: Callback<"OK">
|
3130 | ]): Result<"OK", Context>;
|
3131 | pfmerge(...args: [destkey: RedisKey, ...sourcekeys: RedisKey[]]): Result<"OK", Context>;
|
3132 | pfmerge(...args: [destkey: RedisKey, sourcekeys: RedisKey[]]): Result<"OK", Context>;
|
3133 | /**
|
3134 | * An internal command for testing HyperLogLog values
|
3135 | * - _group_: hyperloglog
|
3136 | * - _complexity_: N/A
|
3137 | * - _since_: 2.8.9
|
3138 | */
|
3139 | pfselftest(callback?: Callback<unknown>): Result<unknown, Context>;
|
3140 | /**
|
3141 | * Ping the server
|
3142 | * - _group_: connection
|
3143 | * - _complexity_: O(1)
|
3144 | * - _since_: 1.0.0
|
3145 | */
|
3146 | ping(callback?: Callback<"PONG">): Result<"PONG", Context>;
|
3147 | ping(message: string | Buffer, callback?: Callback<string>): Result<string, Context>;
|
3148 | pingBuffer(message: string | Buffer, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
3149 | /**
|
3150 | * Set the value and expiration in milliseconds of a key
|
3151 | * - _group_: string
|
3152 | * - _complexity_: O(1)
|
3153 | * - _since_: 2.6.0
|
3154 | */
|
3155 | psetex(key: RedisKey, milliseconds: number | string, value: string | Buffer | number, callback?: Callback<unknown>): Result<unknown, Context>;
|
3156 | /**
|
3157 | * Listen for messages published to channels matching the given patterns
|
3158 | * - _group_: pubsub
|
3159 | * - _complexity_: O(N) where N is the number of patterns the client is already subscribed to.
|
3160 | * - _since_: 2.0.0
|
3161 | */
|
3162 | psubscribe(...args: [...patterns: string[], callback: Callback<unknown>]): Result<unknown, Context>;
|
3163 | psubscribe(...args: [...patterns: string[]]): Result<unknown, Context>;
|
3164 | /**
|
3165 | * Internal command used for replication
|
3166 | * - _group_: server
|
3167 | * - _complexity_: undefined
|
3168 | * - _since_: 2.8.0
|
3169 | */
|
3170 | psync(replicationid: string | Buffer | number, offset: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3171 | /**
|
3172 | * Get the time to live for a key in milliseconds
|
3173 | * - _group_: generic
|
3174 | * - _complexity_: O(1)
|
3175 | * - _since_: 2.6.0
|
3176 | */
|
3177 | pttl(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
3178 | /**
|
3179 | * Post a message to a channel
|
3180 | * - _group_: pubsub
|
3181 | * - _complexity_: O(N+M) where N is the number of clients subscribed to the receiving channel and M is the total number of subscribed patterns (by any client).
|
3182 | * - _since_: 2.0.0
|
3183 | */
|
3184 | publish(channel: string | Buffer, message: string | Buffer, callback?: Callback<number>): Result<number, Context>;
|
3185 | /**
|
3186 | * List active channels
|
3187 | * - _group_: pubsub
|
3188 | * - _complexity_: O(N) where N is the number of active channels, and assuming constant time pattern matching (relatively short channels and patterns)
|
3189 | * - _since_: 2.8.0
|
3190 | */
|
3191 | pubsub(subcommand: "CHANNELS", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
3192 | pubsub(subcommand: "CHANNELS", pattern: string, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
3193 | /**
|
3194 | * Show helpful text about the different subcommands
|
3195 | * - _group_: pubsub
|
3196 | * - _complexity_: O(1)
|
3197 | * - _since_: 6.2.0
|
3198 | */
|
3199 | pubsub(subcommand: "HELP", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
3200 | /**
|
3201 | * Get the count of unique patterns pattern subscriptions
|
3202 | * - _group_: pubsub
|
3203 | * - _complexity_: O(1)
|
3204 | * - _since_: 2.8.0
|
3205 | */
|
3206 | pubsub(subcommand: "NUMPAT", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
3207 | /**
|
3208 | * Get the count of subscribers for channels
|
3209 | * - _group_: pubsub
|
3210 | * - _complexity_: O(N) for the NUMSUB subcommand, where N is the number of requested channels
|
3211 | * - _since_: 2.8.0
|
3212 | */
|
3213 | pubsub(subcommand: "NUMSUB", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
3214 | pubsub(...args: [
|
3215 | subcommand: "NUMSUB",
|
3216 | ...channels: (string | Buffer)[],
|
3217 | callback: Callback<unknown[]>
|
3218 | ]): Result<unknown[], Context>;
|
3219 | pubsub(...args: [subcommand: "NUMSUB", ...channels: (string | Buffer)[]]): Result<unknown[], Context>;
|
3220 | /**
|
3221 | * List active shard channels
|
3222 | * - _group_: pubsub
|
3223 | * - _complexity_: O(N) where N is the number of active shard channels, and assuming constant time pattern matching (relatively short shard channels).
|
3224 | * - _since_: 7.0.0
|
3225 | */
|
3226 | pubsub(subcommand: "SHARDCHANNELS", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
3227 | pubsub(subcommand: "SHARDCHANNELS", pattern: string, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
3228 | /**
|
3229 | * Get the count of subscribers for shard channels
|
3230 | * - _group_: pubsub
|
3231 | * - _complexity_: O(N) for the SHARDNUMSUB subcommand, where N is the number of requested shard channels
|
3232 | * - _since_: 7.0.0
|
3233 | */
|
3234 | pubsub(subcommand: "SHARDNUMSUB", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
3235 | pubsub(...args: [
|
3236 | subcommand: "SHARDNUMSUB",
|
3237 | ...shardchannels: (string | Buffer)[],
|
3238 | callback: Callback<unknown[]>
|
3239 | ]): Result<unknown[], Context>;
|
3240 | pubsub(...args: [subcommand: "SHARDNUMSUB", ...shardchannels: (string | Buffer)[]]): Result<unknown[], Context>;
|
3241 | /**
|
3242 | * Stop listening for messages posted to channels matching the given patterns
|
3243 | * - _group_: pubsub
|
3244 | * - _complexity_: O(N+M) where N is the number of patterns the client is already subscribed and M is the number of total patterns subscribed in the system (by any client).
|
3245 | * - _since_: 2.0.0
|
3246 | */
|
3247 | punsubscribe(callback?: Callback<unknown>): Result<unknown, Context>;
|
3248 | punsubscribe(...args: [...patterns: string[], callback: Callback<unknown>]): Result<unknown, Context>;
|
3249 | punsubscribe(...args: [...patterns: string[]]): Result<unknown, Context>;
|
3250 | /**
|
3251 | * Close the connection
|
3252 | * - _group_: connection
|
3253 | * - _complexity_: O(1)
|
3254 | * - _since_: 1.0.0
|
3255 | */
|
3256 | quit(callback?: Callback<"OK">): Result<"OK", Context>;
|
3257 | /**
|
3258 | * Return a random key from the keyspace
|
3259 | * - _group_: generic
|
3260 | * - _complexity_: O(1)
|
3261 | * - _since_: 1.0.0
|
3262 | */
|
3263 | randomkey(callback?: Callback<string | null>): Result<string | null, Context>;
|
3264 | randomkeyBuffer(callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3265 | /**
|
3266 | * Enables read queries for a connection to a cluster replica node
|
3267 | * - _group_: cluster
|
3268 | * - _complexity_: O(1)
|
3269 | * - _since_: 3.0.0
|
3270 | */
|
3271 | readonly(callback?: Callback<"OK">): Result<"OK", Context>;
|
3272 | /**
|
3273 | * Disables read queries for a connection to a cluster replica node
|
3274 | * - _group_: cluster
|
3275 | * - _complexity_: O(1)
|
3276 | * - _since_: 3.0.0
|
3277 | */
|
3278 | readwrite(callback?: Callback<"OK">): Result<"OK", Context>;
|
3279 | /**
|
3280 | * Rename a key
|
3281 | * - _group_: generic
|
3282 | * - _complexity_: O(1)
|
3283 | * - _since_: 1.0.0
|
3284 | */
|
3285 | rename(key: RedisKey, newkey: RedisKey, callback?: Callback<"OK">): Result<"OK", Context>;
|
3286 | /**
|
3287 | * Rename a key, only if the new key does not exist
|
3288 | * - _group_: generic
|
3289 | * - _complexity_: O(1)
|
3290 | * - _since_: 1.0.0
|
3291 | */
|
3292 | renamenx(key: RedisKey, newkey: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
3293 | /**
|
3294 | * An internal command for configuring the replication stream
|
3295 | * - _group_: server
|
3296 | * - _complexity_: O(1)
|
3297 | * - _since_: 3.0.0
|
3298 | */
|
3299 | replconf(callback?: Callback<unknown>): Result<unknown, Context>;
|
3300 | /**
|
3301 | * Make the server a replica of another instance, or promote it as master.
|
3302 | * - _group_: server
|
3303 | * - _complexity_: O(1)
|
3304 | * - _since_: 5.0.0
|
3305 | */
|
3306 | replicaof(host: string | Buffer, port: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3307 | /**
|
3308 | * Reset the connection
|
3309 | * - _group_: connection
|
3310 | * - _complexity_: O(1)
|
3311 | * - _since_: 6.2.0
|
3312 | */
|
3313 | reset(callback?: Callback<"OK">): Result<"OK", Context>;
|
3314 | /**
|
3315 | * Create a key using the provided serialized value, previously obtained using DUMP.
|
3316 | * - _group_: generic
|
3317 | * - _complexity_: O(1) to create the new key and additional O(N*M) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). However for sorted set values the complexity is O(N*M*log(N)) because inserting values into sorted sets is O(log(N)).
|
3318 | * - _since_: 2.6.0
|
3319 | */
|
3320 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, callback?: Callback<"OK">): Result<"OK", Context>;
|
3321 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, frequencyToken: "FREQ", frequency: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3322 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, secondsToken: "IDLETIME", seconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3323 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, secondsToken: "IDLETIME", seconds: number | string, frequencyToken: "FREQ", frequency: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3324 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, absttl: "ABSTTL", callback?: Callback<"OK">): Result<"OK", Context>;
|
3325 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, absttl: "ABSTTL", frequencyToken: "FREQ", frequency: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3326 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, absttl: "ABSTTL", secondsToken: "IDLETIME", seconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3327 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, absttl: "ABSTTL", secondsToken: "IDLETIME", seconds: number | string, frequencyToken: "FREQ", frequency: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3328 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", callback?: Callback<"OK">): Result<"OK", Context>;
|
3329 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", frequencyToken: "FREQ", frequency: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3330 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", secondsToken: "IDLETIME", seconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3331 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", secondsToken: "IDLETIME", seconds: number | string, frequencyToken: "FREQ", frequency: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3332 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", absttl: "ABSTTL", callback?: Callback<"OK">): Result<"OK", Context>;
|
3333 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", absttl: "ABSTTL", frequencyToken: "FREQ", frequency: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3334 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", absttl: "ABSTTL", secondsToken: "IDLETIME", seconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3335 | restore(key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", absttl: "ABSTTL", secondsToken: "IDLETIME", seconds: number | string, frequencyToken: "FREQ", frequency: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3336 | /**
|
3337 | * An internal command for migrating keys in a cluster
|
3338 | * - _group_: server
|
3339 | * - _complexity_: O(1) to create the new key and additional O(N*M) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). However for sorted set values the complexity is O(N*M*log(N)) because inserting values into sorted sets is O(log(N)).
|
3340 | * - _since_: 3.0.0
|
3341 | */
|
3342 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, callback?: Callback<unknown>): Result<unknown, Context>;
|
3343 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, frequencyToken: "FREQ", frequency: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3344 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, secondsToken: "IDLETIME", seconds: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3345 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, secondsToken: "IDLETIME", seconds: number | string, frequencyToken: "FREQ", frequency: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3346 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, absttl: "ABSTTL", callback?: Callback<unknown>): Result<unknown, Context>;
|
3347 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, absttl: "ABSTTL", frequencyToken: "FREQ", frequency: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3348 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, absttl: "ABSTTL", secondsToken: "IDLETIME", seconds: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3349 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, absttl: "ABSTTL", secondsToken: "IDLETIME", seconds: number | string, frequencyToken: "FREQ", frequency: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3350 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", callback?: Callback<unknown>): Result<unknown, Context>;
|
3351 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", frequencyToken: "FREQ", frequency: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3352 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", secondsToken: "IDLETIME", seconds: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3353 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", secondsToken: "IDLETIME", seconds: number | string, frequencyToken: "FREQ", frequency: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3354 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", absttl: "ABSTTL", callback?: Callback<unknown>): Result<unknown, Context>;
|
3355 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", absttl: "ABSTTL", frequencyToken: "FREQ", frequency: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3356 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", absttl: "ABSTTL", secondsToken: "IDLETIME", seconds: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3357 | ["restore-asking"](key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: "REPLACE", absttl: "ABSTTL", secondsToken: "IDLETIME", seconds: number | string, frequencyToken: "FREQ", frequency: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3358 | /**
|
3359 | * Return the role of the instance in the context of replication
|
3360 | * - _group_: server
|
3361 | * - _complexity_: O(1)
|
3362 | * - _since_: 2.8.12
|
3363 | */
|
3364 | role(callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
3365 | /**
|
3366 | * Remove and get the last elements in a list
|
3367 | * - _group_: list
|
3368 | * - _complexity_: O(N) where N is the number of elements returned
|
3369 | * - _since_: 1.0.0
|
3370 | */
|
3371 | rpop(key: RedisKey, callback?: Callback<string | null>): Result<string | null, Context>;
|
3372 | rpopBuffer(key: RedisKey, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3373 | rpop(key: RedisKey, count: number | string, callback?: Callback<string[] | null>): Result<string[] | null, Context>;
|
3374 | rpopBuffer(key: RedisKey, count: number | string, callback?: Callback<Buffer[] | null>): Result<Buffer[] | null, Context>;
|
3375 | /**
|
3376 | * Remove the last element in a list, prepend it to another list and return it
|
3377 | * - _group_: list
|
3378 | * - _complexity_: O(1)
|
3379 | * - _since_: 1.2.0
|
3380 | */
|
3381 | rpoplpush(source: RedisKey, destination: RedisKey, callback?: Callback<string>): Result<string, Context>;
|
3382 | rpoplpushBuffer(source: RedisKey, destination: RedisKey, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
3383 | /**
|
3384 | * Append one or multiple elements to a list
|
3385 | * - _group_: list
|
3386 | * - _complexity_: O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.
|
3387 | * - _since_: 1.0.0
|
3388 | */
|
3389 | rpush(...args: [
|
3390 | key: RedisKey,
|
3391 | ...elements: (string | Buffer | number)[],
|
3392 | callback: Callback<number>
|
3393 | ]): Result<number, Context>;
|
3394 | rpush(...args: [key: RedisKey, ...elements: (string | Buffer | number)[]]): Result<number, Context>;
|
3395 | /**
|
3396 | * Append an element to a list, only if the list exists
|
3397 | * - _group_: list
|
3398 | * - _complexity_: O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.
|
3399 | * - _since_: 2.2.0
|
3400 | */
|
3401 | rpushx(...args: [
|
3402 | key: RedisKey,
|
3403 | ...elements: (string | Buffer | number)[],
|
3404 | callback: Callback<number>
|
3405 | ]): Result<number, Context>;
|
3406 | rpushx(...args: [key: RedisKey, ...elements: (string | Buffer | number)[]]): Result<number, Context>;
|
3407 | /**
|
3408 | * Add one or more members to a set
|
3409 | * - _group_: set
|
3410 | * - _complexity_: O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.
|
3411 | * - _since_: 1.0.0
|
3412 | */
|
3413 | sadd(...args: [
|
3414 | key: RedisKey,
|
3415 | ...members: (string | Buffer | number)[],
|
3416 | callback: Callback<number>
|
3417 | ]): Result<number, Context>;
|
3418 | sadd(...args: [
|
3419 | key: RedisKey,
|
3420 | members: (string | Buffer | number)[],
|
3421 | callback: Callback<number>
|
3422 | ]): Result<number, Context>;
|
3423 | sadd(...args: [key: RedisKey, ...members: (string | Buffer | number)[]]): Result<number, Context>;
|
3424 | sadd(...args: [key: RedisKey, members: (string | Buffer | number)[]]): Result<number, Context>;
|
3425 | /**
|
3426 | * Synchronously save the dataset to disk
|
3427 | * - _group_: server
|
3428 | * - _complexity_: O(N) where N is the total number of keys in all databases
|
3429 | * - _since_: 1.0.0
|
3430 | */
|
3431 | save(callback?: Callback<"OK">): Result<"OK", Context>;
|
3432 | /**
|
3433 | * Incrementally iterate the keys space
|
3434 | * - _group_: generic
|
3435 | * - _complexity_: O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.
|
3436 | * - _since_: 2.8.0
|
3437 | */
|
3438 | scan(cursor: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
3439 | scanBuffer(cursor: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
3440 | scan(cursor: number | string, typeToken: "TYPE", type: string | Buffer, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
3441 | scanBuffer(cursor: number | string, typeToken: "TYPE", type: string | Buffer, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
3442 | scan(cursor: number | string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
3443 | scanBuffer(cursor: number | string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
3444 | scan(cursor: number | string, countToken: "COUNT", count: number | string, typeToken: "TYPE", type: string | Buffer, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
3445 | scanBuffer(cursor: number | string, countToken: "COUNT", count: number | string, typeToken: "TYPE", type: string | Buffer, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
3446 | scan(cursor: number | string, patternToken: "MATCH", pattern: string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
3447 | scanBuffer(cursor: number | string, patternToken: "MATCH", pattern: string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
3448 | scan(cursor: number | string, patternToken: "MATCH", pattern: string, typeToken: "TYPE", type: string | Buffer, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
3449 | scanBuffer(cursor: number | string, patternToken: "MATCH", pattern: string, typeToken: "TYPE", type: string | Buffer, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
3450 | scan(cursor: number | string, patternToken: "MATCH", pattern: string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
3451 | scanBuffer(cursor: number | string, patternToken: "MATCH", pattern: string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
3452 | scan(cursor: number | string, patternToken: "MATCH", pattern: string, countToken: "COUNT", count: number | string, typeToken: "TYPE", type: string | Buffer, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
3453 | scanBuffer(cursor: number | string, patternToken: "MATCH", pattern: string, countToken: "COUNT", count: number | string, typeToken: "TYPE", type: string | Buffer, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
3454 | /**
|
3455 | * Get the number of members in a set
|
3456 | * - _group_: set
|
3457 | * - _complexity_: O(1)
|
3458 | * - _since_: 1.0.0
|
3459 | */
|
3460 | scard(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
3461 | /**
|
3462 | * Set the debug mode for executed scripts.
|
3463 | * - _group_: scripting
|
3464 | * - _complexity_: O(1)
|
3465 | * - _since_: 3.2.0
|
3466 | */
|
3467 | script(subcommand: "DEBUG", yes: "YES", callback?: Callback<unknown>): Result<unknown, Context>;
|
3468 | script(subcommand: "DEBUG", sync: "SYNC", callback?: Callback<unknown>): Result<unknown, Context>;
|
3469 | script(subcommand: "DEBUG", no: "NO", callback?: Callback<unknown>): Result<unknown, Context>;
|
3470 | /**
|
3471 | * Check existence of scripts in the script cache.
|
3472 | * - _group_: scripting
|
3473 | * - _complexity_: O(N) with N being the number of scripts to check (so checking a single script is an O(1) operation).
|
3474 | * - _since_: 2.6.0
|
3475 | */
|
3476 | script(...args: [
|
3477 | subcommand: "EXISTS",
|
3478 | ...sha1s: (string | Buffer)[],
|
3479 | callback: Callback<unknown>
|
3480 | ]): Result<unknown, Context>;
|
3481 | script(...args: [subcommand: "EXISTS", ...sha1s: (string | Buffer)[]]): Result<unknown, Context>;
|
3482 | /**
|
3483 | * Remove all the scripts from the script cache.
|
3484 | * - _group_: scripting
|
3485 | * - _complexity_: O(N) with N being the number of scripts in cache
|
3486 | * - _since_: 2.6.0
|
3487 | */
|
3488 | script(subcommand: "FLUSH", callback?: Callback<unknown>): Result<unknown, Context>;
|
3489 | script(subcommand: "FLUSH", async: "ASYNC", callback?: Callback<unknown>): Result<unknown, Context>;
|
3490 | script(subcommand: "FLUSH", sync: "SYNC", callback?: Callback<unknown>): Result<unknown, Context>;
|
3491 | /**
|
3492 | * Show helpful text about the different subcommands
|
3493 | * - _group_: scripting
|
3494 | * - _complexity_: O(1)
|
3495 | * - _since_: 5.0.0
|
3496 | */
|
3497 | script(subcommand: "HELP", callback?: Callback<unknown>): Result<unknown, Context>;
|
3498 | /**
|
3499 | * Kill the script currently in execution.
|
3500 | * - _group_: scripting
|
3501 | * - _complexity_: O(1)
|
3502 | * - _since_: 2.6.0
|
3503 | */
|
3504 | script(subcommand: "KILL", callback?: Callback<unknown>): Result<unknown, Context>;
|
3505 | /**
|
3506 | * Load the specified Lua script into the script cache.
|
3507 | * - _group_: scripting
|
3508 | * - _complexity_: O(N) with N being the length in bytes of the script body.
|
3509 | * - _since_: 2.6.0
|
3510 | */
|
3511 | script(subcommand: "LOAD", script: string | Buffer, callback?: Callback<unknown>): Result<unknown, Context>;
|
3512 | /**
|
3513 | * Subtract multiple sets
|
3514 | * - _group_: set
|
3515 | * - _complexity_: O(N) where N is the total number of elements in all given sets.
|
3516 | * - _since_: 1.0.0
|
3517 | */
|
3518 | sdiff(...args: [...keys: RedisKey[], callback: Callback<string[]>]): Result<string[], Context>;
|
3519 | sdiffBuffer(...args: [...keys: RedisKey[], callback: Callback<Buffer[]>]): Result<Buffer[], Context>;
|
3520 | sdiff(...args: [keys: RedisKey[], callback: Callback<string[]>]): Result<string[], Context>;
|
3521 | sdiffBuffer(...args: [keys: RedisKey[], callback: Callback<Buffer[]>]): Result<Buffer[], Context>;
|
3522 | sdiff(...args: [...keys: RedisKey[]]): Result<string[], Context>;
|
3523 | sdiffBuffer(...args: [...keys: RedisKey[]]): Result<Buffer[], Context>;
|
3524 | sdiff(...args: [keys: RedisKey[]]): Result<string[], Context>;
|
3525 | sdiffBuffer(...args: [keys: RedisKey[]]): Result<Buffer[], Context>;
|
3526 | /**
|
3527 | * Subtract multiple sets and store the resulting set in a key
|
3528 | * - _group_: set
|
3529 | * - _complexity_: O(N) where N is the total number of elements in all given sets.
|
3530 | * - _since_: 1.0.0
|
3531 | */
|
3532 | sdiffstore(...args: [
|
3533 | destination: RedisKey,
|
3534 | ...keys: RedisKey[],
|
3535 | callback: Callback<number>
|
3536 | ]): Result<number, Context>;
|
3537 | sdiffstore(...args: [
|
3538 | destination: RedisKey,
|
3539 | keys: RedisKey[],
|
3540 | callback: Callback<number>
|
3541 | ]): Result<number, Context>;
|
3542 | sdiffstore(...args: [destination: RedisKey, ...keys: RedisKey[]]): Result<number, Context>;
|
3543 | sdiffstore(...args: [destination: RedisKey, keys: RedisKey[]]): Result<number, Context>;
|
3544 | /**
|
3545 | * Change the selected database for the current connection
|
3546 | * - _group_: connection
|
3547 | * - _complexity_: O(1)
|
3548 | * - _since_: 1.0.0
|
3549 | */
|
3550 | select(index: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3551 | /**
|
3552 | * Set the string value of a key
|
3553 | * - _group_: string
|
3554 | * - _complexity_: O(1)
|
3555 | * - _since_: 1.0.0
|
3556 | */
|
3557 | set(key: RedisKey, value: string | Buffer | number, callback?: Callback<"OK">): Result<"OK", Context>;
|
3558 | set(key: RedisKey, value: string | Buffer | number, get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3559 | setBuffer(key: RedisKey, value: string | Buffer | number, get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3560 | set(key: RedisKey, value: string | Buffer | number, nx: "NX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3561 | set(key: RedisKey, value: string | Buffer | number, nx: "NX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3562 | setBuffer(key: RedisKey, value: string | Buffer | number, nx: "NX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3563 | set(key: RedisKey, value: string | Buffer | number, xx: "XX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3564 | set(key: RedisKey, value: string | Buffer | number, xx: "XX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3565 | setBuffer(key: RedisKey, value: string | Buffer | number, xx: "XX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3566 | set(key: RedisKey, value: string | Buffer | number, secondsToken: "EX", seconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3567 | set(key: RedisKey, value: string | Buffer | number, secondsToken: "EX", seconds: number | string, get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3568 | setBuffer(key: RedisKey, value: string | Buffer | number, secondsToken: "EX", seconds: number | string, get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3569 | set(key: RedisKey, value: string | Buffer | number, secondsToken: "EX", seconds: number | string, nx: "NX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3570 | set(key: RedisKey, value: string | Buffer | number, secondsToken: "EX", seconds: number | string, nx: "NX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3571 | setBuffer(key: RedisKey, value: string | Buffer | number, secondsToken: "EX", seconds: number | string, nx: "NX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3572 | set(key: RedisKey, value: string | Buffer | number, secondsToken: "EX", seconds: number | string, xx: "XX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3573 | set(key: RedisKey, value: string | Buffer | number, secondsToken: "EX", seconds: number | string, xx: "XX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3574 | setBuffer(key: RedisKey, value: string | Buffer | number, secondsToken: "EX", seconds: number | string, xx: "XX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3575 | set(key: RedisKey, value: string | Buffer | number, millisecondsToken: "PX", milliseconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3576 | set(key: RedisKey, value: string | Buffer | number, millisecondsToken: "PX", milliseconds: number | string, get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3577 | setBuffer(key: RedisKey, value: string | Buffer | number, millisecondsToken: "PX", milliseconds: number | string, get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3578 | set(key: RedisKey, value: string | Buffer | number, millisecondsToken: "PX", milliseconds: number | string, nx: "NX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3579 | set(key: RedisKey, value: string | Buffer | number, millisecondsToken: "PX", milliseconds: number | string, nx: "NX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3580 | setBuffer(key: RedisKey, value: string | Buffer | number, millisecondsToken: "PX", milliseconds: number | string, nx: "NX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3581 | set(key: RedisKey, value: string | Buffer | number, millisecondsToken: "PX", milliseconds: number | string, xx: "XX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3582 | set(key: RedisKey, value: string | Buffer | number, millisecondsToken: "PX", milliseconds: number | string, xx: "XX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3583 | setBuffer(key: RedisKey, value: string | Buffer | number, millisecondsToken: "PX", milliseconds: number | string, xx: "XX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3584 | set(key: RedisKey, value: string | Buffer | number, unixTimeSecondsToken: "EXAT", unixTimeSeconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3585 | set(key: RedisKey, value: string | Buffer | number, unixTimeSecondsToken: "EXAT", unixTimeSeconds: number | string, get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3586 | setBuffer(key: RedisKey, value: string | Buffer | number, unixTimeSecondsToken: "EXAT", unixTimeSeconds: number | string, get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3587 | set(key: RedisKey, value: string | Buffer | number, unixTimeSecondsToken: "EXAT", unixTimeSeconds: number | string, nx: "NX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3588 | set(key: RedisKey, value: string | Buffer | number, unixTimeSecondsToken: "EXAT", unixTimeSeconds: number | string, nx: "NX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3589 | setBuffer(key: RedisKey, value: string | Buffer | number, unixTimeSecondsToken: "EXAT", unixTimeSeconds: number | string, nx: "NX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3590 | set(key: RedisKey, value: string | Buffer | number, unixTimeSecondsToken: "EXAT", unixTimeSeconds: number | string, xx: "XX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3591 | set(key: RedisKey, value: string | Buffer | number, unixTimeSecondsToken: "EXAT", unixTimeSeconds: number | string, xx: "XX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3592 | setBuffer(key: RedisKey, value: string | Buffer | number, unixTimeSecondsToken: "EXAT", unixTimeSeconds: number | string, xx: "XX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3593 | set(key: RedisKey, value: string | Buffer | number, unixTimeMillisecondsToken: "PXAT", unixTimeMilliseconds: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3594 | set(key: RedisKey, value: string | Buffer | number, unixTimeMillisecondsToken: "PXAT", unixTimeMilliseconds: number | string, get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3595 | setBuffer(key: RedisKey, value: string | Buffer | number, unixTimeMillisecondsToken: "PXAT", unixTimeMilliseconds: number | string, get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3596 | set(key: RedisKey, value: string | Buffer | number, unixTimeMillisecondsToken: "PXAT", unixTimeMilliseconds: number | string, nx: "NX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3597 | set(key: RedisKey, value: string | Buffer | number, unixTimeMillisecondsToken: "PXAT", unixTimeMilliseconds: number | string, nx: "NX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3598 | setBuffer(key: RedisKey, value: string | Buffer | number, unixTimeMillisecondsToken: "PXAT", unixTimeMilliseconds: number | string, nx: "NX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3599 | set(key: RedisKey, value: string | Buffer | number, unixTimeMillisecondsToken: "PXAT", unixTimeMilliseconds: number | string, xx: "XX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3600 | set(key: RedisKey, value: string | Buffer | number, unixTimeMillisecondsToken: "PXAT", unixTimeMilliseconds: number | string, xx: "XX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3601 | setBuffer(key: RedisKey, value: string | Buffer | number, unixTimeMillisecondsToken: "PXAT", unixTimeMilliseconds: number | string, xx: "XX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3602 | set(key: RedisKey, value: string | Buffer | number, keepttl: "KEEPTTL", callback?: Callback<"OK">): Result<"OK", Context>;
|
3603 | set(key: RedisKey, value: string | Buffer | number, keepttl: "KEEPTTL", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3604 | setBuffer(key: RedisKey, value: string | Buffer | number, keepttl: "KEEPTTL", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3605 | set(key: RedisKey, value: string | Buffer | number, keepttl: "KEEPTTL", nx: "NX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3606 | set(key: RedisKey, value: string | Buffer | number, keepttl: "KEEPTTL", nx: "NX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3607 | setBuffer(key: RedisKey, value: string | Buffer | number, keepttl: "KEEPTTL", nx: "NX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3608 | set(key: RedisKey, value: string | Buffer | number, keepttl: "KEEPTTL", xx: "XX", callback?: Callback<"OK" | null>): Result<"OK" | null, Context>;
|
3609 | set(key: RedisKey, value: string | Buffer | number, keepttl: "KEEPTTL", xx: "XX", get: "GET", callback?: Callback<string | null>): Result<string | null, Context>;
|
3610 | setBuffer(key: RedisKey, value: string | Buffer | number, keepttl: "KEEPTTL", xx: "XX", get: "GET", callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
3611 | /**
|
3612 | * Sets or clears the bit at offset in the string value stored at key
|
3613 | * - _group_: bitmap
|
3614 | * - _complexity_: O(1)
|
3615 | * - _since_: 2.2.0
|
3616 | */
|
3617 | setbit(key: RedisKey, offset: number | string, value: number | string, callback?: Callback<number>): Result<number, Context>;
|
3618 | /**
|
3619 | * Set the value and expiration of a key
|
3620 | * - _group_: string
|
3621 | * - _complexity_: O(1)
|
3622 | * - _since_: 2.0.0
|
3623 | */
|
3624 | setex(key: RedisKey, seconds: number | string, value: string | Buffer | number, callback?: Callback<"OK">): Result<"OK", Context>;
|
3625 | /**
|
3626 | * Set the value of a key, only if the key does not exist
|
3627 | * - _group_: string
|
3628 | * - _complexity_: O(1)
|
3629 | * - _since_: 1.0.0
|
3630 | */
|
3631 | setnx(key: RedisKey, value: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
3632 | /**
|
3633 | * Overwrite part of a string at key starting at the specified offset
|
3634 | * - _group_: string
|
3635 | * - _complexity_: O(1), not counting the time taken to copy the new string in place. Usually, this string is very small so the amortized complexity is O(1). Otherwise, complexity is O(M) with M being the length of the value argument.
|
3636 | * - _since_: 2.2.0
|
3637 | */
|
3638 | setrange(key: RedisKey, offset: number | string, value: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
3639 | /**
|
3640 | * Synchronously save the dataset to disk and then shut down the server
|
3641 | * - _group_: server
|
3642 | * - _complexity_: O(N) when saving, where N is the total number of keys in all databases when saving data, otherwise O(1)
|
3643 | * - _since_: 1.0.0
|
3644 | */
|
3645 | shutdown(callback?: Callback<"OK">): Result<"OK", Context>;
|
3646 | shutdown(abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3647 | shutdown(force: "FORCE", callback?: Callback<"OK">): Result<"OK", Context>;
|
3648 | shutdown(force: "FORCE", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3649 | shutdown(now: "NOW", callback?: Callback<"OK">): Result<"OK", Context>;
|
3650 | shutdown(now: "NOW", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3651 | shutdown(now: "NOW", force: "FORCE", callback?: Callback<"OK">): Result<"OK", Context>;
|
3652 | shutdown(now: "NOW", force: "FORCE", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3653 | shutdown(nosave: "NOSAVE", callback?: Callback<"OK">): Result<"OK", Context>;
|
3654 | shutdown(nosave: "NOSAVE", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3655 | shutdown(nosave: "NOSAVE", force: "FORCE", callback?: Callback<"OK">): Result<"OK", Context>;
|
3656 | shutdown(nosave: "NOSAVE", force: "FORCE", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3657 | shutdown(nosave: "NOSAVE", now: "NOW", callback?: Callback<"OK">): Result<"OK", Context>;
|
3658 | shutdown(nosave: "NOSAVE", now: "NOW", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3659 | shutdown(nosave: "NOSAVE", now: "NOW", force: "FORCE", callback?: Callback<"OK">): Result<"OK", Context>;
|
3660 | shutdown(nosave: "NOSAVE", now: "NOW", force: "FORCE", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3661 | shutdown(save: "SAVE", callback?: Callback<"OK">): Result<"OK", Context>;
|
3662 | shutdown(save: "SAVE", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3663 | shutdown(save: "SAVE", force: "FORCE", callback?: Callback<"OK">): Result<"OK", Context>;
|
3664 | shutdown(save: "SAVE", force: "FORCE", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3665 | shutdown(save: "SAVE", now: "NOW", callback?: Callback<"OK">): Result<"OK", Context>;
|
3666 | shutdown(save: "SAVE", now: "NOW", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3667 | shutdown(save: "SAVE", now: "NOW", force: "FORCE", callback?: Callback<"OK">): Result<"OK", Context>;
|
3668 | shutdown(save: "SAVE", now: "NOW", force: "FORCE", abort: "ABORT", callback?: Callback<"OK">): Result<"OK", Context>;
|
3669 | /**
|
3670 | * Intersect multiple sets
|
3671 | * - _group_: set
|
3672 | * - _complexity_: O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.
|
3673 | * - _since_: 1.0.0
|
3674 | */
|
3675 | sinter(...args: [...keys: RedisKey[], callback: Callback<string[]>]): Result<string[], Context>;
|
3676 | sinterBuffer(...args: [...keys: RedisKey[], callback: Callback<Buffer[]>]): Result<Buffer[], Context>;
|
3677 | sinter(...args: [keys: RedisKey[], callback: Callback<string[]>]): Result<string[], Context>;
|
3678 | sinterBuffer(...args: [keys: RedisKey[], callback: Callback<Buffer[]>]): Result<Buffer[], Context>;
|
3679 | sinter(...args: [...keys: RedisKey[]]): Result<string[], Context>;
|
3680 | sinterBuffer(...args: [...keys: RedisKey[]]): Result<Buffer[], Context>;
|
3681 | sinter(...args: [keys: RedisKey[]]): Result<string[], Context>;
|
3682 | sinterBuffer(...args: [keys: RedisKey[]]): Result<Buffer[], Context>;
|
3683 | /**
|
3684 | * Intersect multiple sets and return the cardinality of the result
|
3685 | * - _group_: set
|
3686 | * - _complexity_: O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.
|
3687 | * - _since_: 7.0.0
|
3688 | */
|
3689 | sintercard(...args: [
|
3690 | numkeys: number | string,
|
3691 | ...keys: RedisKey[],
|
3692 | callback: Callback<number>
|
3693 | ]): Result<number, Context>;
|
3694 | sintercard(...args: [
|
3695 | numkeys: number | string,
|
3696 | keys: RedisKey[],
|
3697 | callback: Callback<number>
|
3698 | ]): Result<number, Context>;
|
3699 | sintercard(...args: [numkeys: number | string, ...keys: RedisKey[]]): Result<number, Context>;
|
3700 | sintercard(...args: [numkeys: number | string, keys: RedisKey[]]): Result<number, Context>;
|
3701 | sintercard(...args: [
|
3702 | numkeys: number | string,
|
3703 | ...keys: RedisKey[],
|
3704 | limitToken: "LIMIT",
|
3705 | limit: number | string,
|
3706 | callback: Callback<number>
|
3707 | ]): Result<number, Context>;
|
3708 | sintercard(...args: [
|
3709 | numkeys: number | string,
|
3710 | keys: RedisKey[],
|
3711 | limitToken: "LIMIT",
|
3712 | limit: number | string,
|
3713 | callback: Callback<number>
|
3714 | ]): Result<number, Context>;
|
3715 | sintercard(...args: [
|
3716 | numkeys: number | string,
|
3717 | ...keys: RedisKey[],
|
3718 | limitToken: "LIMIT",
|
3719 | limit: number | string
|
3720 | ]): Result<number, Context>;
|
3721 | sintercard(...args: [
|
3722 | numkeys: number | string,
|
3723 | keys: RedisKey[],
|
3724 | limitToken: "LIMIT",
|
3725 | limit: number | string
|
3726 | ]): Result<number, Context>;
|
3727 | /**
|
3728 | * Intersect multiple sets and store the resulting set in a key
|
3729 | * - _group_: set
|
3730 | * - _complexity_: O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.
|
3731 | * - _since_: 1.0.0
|
3732 | */
|
3733 | sinterstore(...args: [
|
3734 | destination: RedisKey,
|
3735 | ...keys: RedisKey[],
|
3736 | callback: Callback<number>
|
3737 | ]): Result<number, Context>;
|
3738 | sinterstore(...args: [
|
3739 | destination: RedisKey,
|
3740 | keys: RedisKey[],
|
3741 | callback: Callback<number>
|
3742 | ]): Result<number, Context>;
|
3743 | sinterstore(...args: [destination: RedisKey, ...keys: RedisKey[]]): Result<number, Context>;
|
3744 | sinterstore(...args: [destination: RedisKey, keys: RedisKey[]]): Result<number, Context>;
|
3745 | /**
|
3746 | * Determine if a given value is a member of a set
|
3747 | * - _group_: set
|
3748 | * - _complexity_: O(1)
|
3749 | * - _since_: 1.0.0
|
3750 | */
|
3751 | sismember(key: RedisKey, member: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
3752 | /**
|
3753 | * Make the server a replica of another instance, or promote it as master.
|
3754 | * - _group_: server
|
3755 | * - _complexity_: O(1)
|
3756 | * - _since_: 1.0.0
|
3757 | */
|
3758 | slaveof(host: string | Buffer, port: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
3759 | /**
|
3760 | * Get the slow log's entries
|
3761 | * - _group_: server
|
3762 | * - _complexity_: O(N) where N is the number of entries returned
|
3763 | * - _since_: 2.2.12
|
3764 | */
|
3765 | slowlog(subcommand: "GET", callback?: Callback<unknown>): Result<unknown, Context>;
|
3766 | slowlog(subcommand: "GET", count: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3767 | /**
|
3768 | * Show helpful text about the different subcommands
|
3769 | * - _group_: server
|
3770 | * - _complexity_: O(1)
|
3771 | * - _since_: 6.2.0
|
3772 | */
|
3773 | slowlog(subcommand: "HELP", callback?: Callback<unknown>): Result<unknown, Context>;
|
3774 | /**
|
3775 | * Get the slow log's length
|
3776 | * - _group_: server
|
3777 | * - _complexity_: O(1)
|
3778 | * - _since_: 2.2.12
|
3779 | */
|
3780 | slowlog(subcommand: "LEN", callback?: Callback<unknown>): Result<unknown, Context>;
|
3781 | /**
|
3782 | * Clear all entries from the slow log
|
3783 | * - _group_: server
|
3784 | * - _complexity_: O(N) where N is the number of entries in the slowlog
|
3785 | * - _since_: 2.2.12
|
3786 | */
|
3787 | slowlog(subcommand: "RESET", callback?: Callback<unknown>): Result<unknown, Context>;
|
3788 | /**
|
3789 | * Get all the members in a set
|
3790 | * - _group_: set
|
3791 | * - _complexity_: O(N) where N is the set cardinality.
|
3792 | * - _since_: 1.0.0
|
3793 | */
|
3794 | smembers(key: RedisKey, callback?: Callback<string[]>): Result<string[], Context>;
|
3795 | smembersBuffer(key: RedisKey, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
3796 | /**
|
3797 | * Returns the membership associated with the given elements for a set
|
3798 | * - _group_: set
|
3799 | * - _complexity_: O(N) where N is the number of elements being checked for membership
|
3800 | * - _since_: 6.2.0
|
3801 | */
|
3802 | smismember(...args: [
|
3803 | key: RedisKey,
|
3804 | ...members: (string | Buffer | number)[],
|
3805 | callback: Callback<number[]>
|
3806 | ]): Result<number[], Context>;
|
3807 | smismember(...args: [
|
3808 | key: RedisKey,
|
3809 | members: (string | Buffer | number)[],
|
3810 | callback: Callback<number[]>
|
3811 | ]): Result<number[], Context>;
|
3812 | smismember(...args: [key: RedisKey, ...members: (string | Buffer | number)[]]): Result<number[], Context>;
|
3813 | smismember(...args: [key: RedisKey, members: (string | Buffer | number)[]]): Result<number[], Context>;
|
3814 | /**
|
3815 | * Move a member from one set to another
|
3816 | * - _group_: set
|
3817 | * - _complexity_: O(1)
|
3818 | * - _since_: 1.0.0
|
3819 | */
|
3820 | smove(source: RedisKey, destination: RedisKey, member: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
3821 | /**
|
3822 | * Sort the elements in a list, set or sorted set
|
3823 | * - _group_: generic
|
3824 | * - _complexity_: O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of returned elements. When the elements are not sorted, complexity is O(N).
|
3825 | * - _since_: 1.0.0
|
3826 | */
|
3827 | sort(...args: [key: RedisKey, ...args: RedisValue[], callback: Callback<unknown>]): Result<unknown, Context>;
|
3828 | sort(...args: [key: RedisKey, ...args: RedisValue[]]): Result<unknown, Context>;
|
3829 | /**
|
3830 | * Sort the elements in a list, set or sorted set. Read-only variant of SORT.
|
3831 | * - _group_: generic
|
3832 | * - _complexity_: O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of returned elements. When the elements are not sorted, complexity is O(N).
|
3833 | * - _since_: 7.0.0
|
3834 | */
|
3835 | sort_ro(key: RedisKey, callback?: Callback<unknown>): Result<unknown, Context>;
|
3836 | sort_ro(key: RedisKey, alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
3837 | sort_ro(key: RedisKey, asc: "ASC", callback?: Callback<unknown>): Result<unknown, Context>;
|
3838 | sort_ro(key: RedisKey, asc: "ASC", alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
3839 | sort_ro(key: RedisKey, desc: "DESC", callback?: Callback<unknown>): Result<unknown, Context>;
|
3840 | sort_ro(key: RedisKey, desc: "DESC", alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
3841 | sort_ro(...args: [
|
3842 | key: RedisKey,
|
3843 | patternToken: "GET",
|
3844 | ...patterns: string[],
|
3845 | callback: Callback<unknown>
|
3846 | ]): Result<unknown, Context>;
|
3847 | sort_ro(...args: [key: RedisKey, patternToken: "GET", ...patterns: string[]]): Result<unknown, Context>;
|
3848 | sort_ro(...args: [
|
3849 | key: RedisKey,
|
3850 | patternToken: "GET",
|
3851 | ...patterns: string[],
|
3852 | alpha: "ALPHA",
|
3853 | callback: Callback<unknown>
|
3854 | ]): Result<unknown, Context>;
|
3855 | sort_ro(...args: [
|
3856 | key: RedisKey,
|
3857 | patternToken: "GET",
|
3858 | ...patterns: string[],
|
3859 | alpha: "ALPHA"
|
3860 | ]): Result<unknown, Context>;
|
3861 | sort_ro(...args: [
|
3862 | key: RedisKey,
|
3863 | patternToken: "GET",
|
3864 | ...patterns: string[],
|
3865 | asc: "ASC",
|
3866 | callback: Callback<unknown>
|
3867 | ]): Result<unknown, Context>;
|
3868 | sort_ro(...args: [
|
3869 | key: RedisKey,
|
3870 | patternToken: "GET",
|
3871 | ...patterns: string[],
|
3872 | asc: "ASC"
|
3873 | ]): Result<unknown, Context>;
|
3874 | sort_ro(...args: [
|
3875 | key: RedisKey,
|
3876 | patternToken: "GET",
|
3877 | ...patterns: string[],
|
3878 | asc: "ASC",
|
3879 | alpha: "ALPHA",
|
3880 | callback: Callback<unknown>
|
3881 | ]): Result<unknown, Context>;
|
3882 | sort_ro(...args: [
|
3883 | key: RedisKey,
|
3884 | patternToken: "GET",
|
3885 | ...patterns: string[],
|
3886 | asc: "ASC",
|
3887 | alpha: "ALPHA"
|
3888 | ]): Result<unknown, Context>;
|
3889 | sort_ro(...args: [
|
3890 | key: RedisKey,
|
3891 | patternToken: "GET",
|
3892 | ...patterns: string[],
|
3893 | desc: "DESC",
|
3894 | callback: Callback<unknown>
|
3895 | ]): Result<unknown, Context>;
|
3896 | sort_ro(...args: [
|
3897 | key: RedisKey,
|
3898 | patternToken: "GET",
|
3899 | ...patterns: string[],
|
3900 | desc: "DESC"
|
3901 | ]): Result<unknown, Context>;
|
3902 | sort_ro(...args: [
|
3903 | key: RedisKey,
|
3904 | patternToken: "GET",
|
3905 | ...patterns: string[],
|
3906 | desc: "DESC",
|
3907 | alpha: "ALPHA",
|
3908 | callback: Callback<unknown>
|
3909 | ]): Result<unknown, Context>;
|
3910 | sort_ro(...args: [
|
3911 | key: RedisKey,
|
3912 | patternToken: "GET",
|
3913 | ...patterns: string[],
|
3914 | desc: "DESC",
|
3915 | alpha: "ALPHA"
|
3916 | ]): Result<unknown, Context>;
|
3917 | sort_ro(key: RedisKey, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
3918 | sort_ro(key: RedisKey, offsetCountToken: "LIMIT", offset: number | string, count: number | string, alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
3919 | sort_ro(key: RedisKey, offsetCountToken: "LIMIT", offset: number | string, count: number | string, asc: "ASC", callback?: Callback<unknown>): Result<unknown, Context>;
|
3920 | sort_ro(key: RedisKey, offsetCountToken: "LIMIT", offset: number | string, count: number | string, asc: "ASC", alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
3921 | sort_ro(key: RedisKey, offsetCountToken: "LIMIT", offset: number | string, count: number | string, desc: "DESC", callback?: Callback<unknown>): Result<unknown, Context>;
|
3922 | sort_ro(key: RedisKey, offsetCountToken: "LIMIT", offset: number | string, count: number | string, desc: "DESC", alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
3923 | sort_ro(...args: [
|
3924 | key: RedisKey,
|
3925 | offsetCountToken: "LIMIT",
|
3926 | offset: number | string,
|
3927 | count: number | string,
|
3928 | patternToken: "GET",
|
3929 | ...patterns: string[],
|
3930 | callback: Callback<unknown>
|
3931 | ]): Result<unknown, Context>;
|
3932 | sort_ro(...args: [
|
3933 | key: RedisKey,
|
3934 | offsetCountToken: "LIMIT",
|
3935 | offset: number | string,
|
3936 | count: number | string,
|
3937 | patternToken: "GET",
|
3938 | ...patterns: string[]
|
3939 | ]): Result<unknown, Context>;
|
3940 | sort_ro(...args: [
|
3941 | key: RedisKey,
|
3942 | offsetCountToken: "LIMIT",
|
3943 | offset: number | string,
|
3944 | count: number | string,
|
3945 | patternToken: "GET",
|
3946 | ...patterns: string[],
|
3947 | alpha: "ALPHA",
|
3948 | callback: Callback<unknown>
|
3949 | ]): Result<unknown, Context>;
|
3950 | sort_ro(...args: [
|
3951 | key: RedisKey,
|
3952 | offsetCountToken: "LIMIT",
|
3953 | offset: number | string,
|
3954 | count: number | string,
|
3955 | patternToken: "GET",
|
3956 | ...patterns: string[],
|
3957 | alpha: "ALPHA"
|
3958 | ]): Result<unknown, Context>;
|
3959 | sort_ro(...args: [
|
3960 | key: RedisKey,
|
3961 | offsetCountToken: "LIMIT",
|
3962 | offset: number | string,
|
3963 | count: number | string,
|
3964 | patternToken: "GET",
|
3965 | ...patterns: string[],
|
3966 | asc: "ASC",
|
3967 | callback: Callback<unknown>
|
3968 | ]): Result<unknown, Context>;
|
3969 | sort_ro(...args: [
|
3970 | key: RedisKey,
|
3971 | offsetCountToken: "LIMIT",
|
3972 | offset: number | string,
|
3973 | count: number | string,
|
3974 | patternToken: "GET",
|
3975 | ...patterns: string[],
|
3976 | asc: "ASC"
|
3977 | ]): Result<unknown, Context>;
|
3978 | sort_ro(...args: [
|
3979 | key: RedisKey,
|
3980 | offsetCountToken: "LIMIT",
|
3981 | offset: number | string,
|
3982 | count: number | string,
|
3983 | patternToken: "GET",
|
3984 | ...patterns: string[],
|
3985 | asc: "ASC",
|
3986 | alpha: "ALPHA",
|
3987 | callback: Callback<unknown>
|
3988 | ]): Result<unknown, Context>;
|
3989 | sort_ro(...args: [
|
3990 | key: RedisKey,
|
3991 | offsetCountToken: "LIMIT",
|
3992 | offset: number | string,
|
3993 | count: number | string,
|
3994 | patternToken: "GET",
|
3995 | ...patterns: string[],
|
3996 | asc: "ASC",
|
3997 | alpha: "ALPHA"
|
3998 | ]): Result<unknown, Context>;
|
3999 | sort_ro(...args: [
|
4000 | key: RedisKey,
|
4001 | offsetCountToken: "LIMIT",
|
4002 | offset: number | string,
|
4003 | count: number | string,
|
4004 | patternToken: "GET",
|
4005 | ...patterns: string[],
|
4006 | desc: "DESC",
|
4007 | callback: Callback<unknown>
|
4008 | ]): Result<unknown, Context>;
|
4009 | sort_ro(...args: [
|
4010 | key: RedisKey,
|
4011 | offsetCountToken: "LIMIT",
|
4012 | offset: number | string,
|
4013 | count: number | string,
|
4014 | patternToken: "GET",
|
4015 | ...patterns: string[],
|
4016 | desc: "DESC"
|
4017 | ]): Result<unknown, Context>;
|
4018 | sort_ro(...args: [
|
4019 | key: RedisKey,
|
4020 | offsetCountToken: "LIMIT",
|
4021 | offset: number | string,
|
4022 | count: number | string,
|
4023 | patternToken: "GET",
|
4024 | ...patterns: string[],
|
4025 | desc: "DESC",
|
4026 | alpha: "ALPHA",
|
4027 | callback: Callback<unknown>
|
4028 | ]): Result<unknown, Context>;
|
4029 | sort_ro(...args: [
|
4030 | key: RedisKey,
|
4031 | offsetCountToken: "LIMIT",
|
4032 | offset: number | string,
|
4033 | count: number | string,
|
4034 | patternToken: "GET",
|
4035 | ...patterns: string[],
|
4036 | desc: "DESC",
|
4037 | alpha: "ALPHA"
|
4038 | ]): Result<unknown, Context>;
|
4039 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, callback?: Callback<unknown>): Result<unknown, Context>;
|
4040 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
4041 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, asc: "ASC", callback?: Callback<unknown>): Result<unknown, Context>;
|
4042 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, asc: "ASC", alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
4043 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, desc: "DESC", callback?: Callback<unknown>): Result<unknown, Context>;
|
4044 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, desc: "DESC", alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
4045 | sort_ro(...args: [
|
4046 | key: RedisKey,
|
4047 | patternToken: "BY",
|
4048 | pattern: string,
|
4049 | patternToken1: "GET",
|
4050 | ...pattern1s: string[],
|
4051 | callback: Callback<unknown>
|
4052 | ]): Result<unknown, Context>;
|
4053 | sort_ro(...args: [
|
4054 | key: RedisKey,
|
4055 | patternToken: "BY",
|
4056 | pattern: string,
|
4057 | patternToken1: "GET",
|
4058 | ...pattern1s: string[]
|
4059 | ]): Result<unknown, Context>;
|
4060 | sort_ro(...args: [
|
4061 | key: RedisKey,
|
4062 | patternToken: "BY",
|
4063 | pattern: string,
|
4064 | patternToken1: "GET",
|
4065 | ...pattern1s: string[],
|
4066 | alpha: "ALPHA",
|
4067 | callback: Callback<unknown>
|
4068 | ]): Result<unknown, Context>;
|
4069 | sort_ro(...args: [
|
4070 | key: RedisKey,
|
4071 | patternToken: "BY",
|
4072 | pattern: string,
|
4073 | patternToken1: "GET",
|
4074 | ...pattern1s: string[],
|
4075 | alpha: "ALPHA"
|
4076 | ]): Result<unknown, Context>;
|
4077 | sort_ro(...args: [
|
4078 | key: RedisKey,
|
4079 | patternToken: "BY",
|
4080 | pattern: string,
|
4081 | patternToken1: "GET",
|
4082 | ...pattern1s: string[],
|
4083 | asc: "ASC",
|
4084 | callback: Callback<unknown>
|
4085 | ]): Result<unknown, Context>;
|
4086 | sort_ro(...args: [
|
4087 | key: RedisKey,
|
4088 | patternToken: "BY",
|
4089 | pattern: string,
|
4090 | patternToken1: "GET",
|
4091 | ...pattern1s: string[],
|
4092 | asc: "ASC"
|
4093 | ]): Result<unknown, Context>;
|
4094 | sort_ro(...args: [
|
4095 | key: RedisKey,
|
4096 | patternToken: "BY",
|
4097 | pattern: string,
|
4098 | patternToken1: "GET",
|
4099 | ...pattern1s: string[],
|
4100 | asc: "ASC",
|
4101 | alpha: "ALPHA",
|
4102 | callback: Callback<unknown>
|
4103 | ]): Result<unknown, Context>;
|
4104 | sort_ro(...args: [
|
4105 | key: RedisKey,
|
4106 | patternToken: "BY",
|
4107 | pattern: string,
|
4108 | patternToken1: "GET",
|
4109 | ...pattern1s: string[],
|
4110 | asc: "ASC",
|
4111 | alpha: "ALPHA"
|
4112 | ]): Result<unknown, Context>;
|
4113 | sort_ro(...args: [
|
4114 | key: RedisKey,
|
4115 | patternToken: "BY",
|
4116 | pattern: string,
|
4117 | patternToken1: "GET",
|
4118 | ...pattern1s: string[],
|
4119 | desc: "DESC",
|
4120 | callback: Callback<unknown>
|
4121 | ]): Result<unknown, Context>;
|
4122 | sort_ro(...args: [
|
4123 | key: RedisKey,
|
4124 | patternToken: "BY",
|
4125 | pattern: string,
|
4126 | patternToken1: "GET",
|
4127 | ...pattern1s: string[],
|
4128 | desc: "DESC"
|
4129 | ]): Result<unknown, Context>;
|
4130 | sort_ro(...args: [
|
4131 | key: RedisKey,
|
4132 | patternToken: "BY",
|
4133 | pattern: string,
|
4134 | patternToken1: "GET",
|
4135 | ...pattern1s: string[],
|
4136 | desc: "DESC",
|
4137 | alpha: "ALPHA",
|
4138 | callback: Callback<unknown>
|
4139 | ]): Result<unknown, Context>;
|
4140 | sort_ro(...args: [
|
4141 | key: RedisKey,
|
4142 | patternToken: "BY",
|
4143 | pattern: string,
|
4144 | patternToken1: "GET",
|
4145 | ...pattern1s: string[],
|
4146 | desc: "DESC",
|
4147 | alpha: "ALPHA"
|
4148 | ]): Result<unknown, Context>;
|
4149 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
4150 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, offsetCountToken: "LIMIT", offset: number | string, count: number | string, alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
4151 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, offsetCountToken: "LIMIT", offset: number | string, count: number | string, asc: "ASC", callback?: Callback<unknown>): Result<unknown, Context>;
|
4152 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, offsetCountToken: "LIMIT", offset: number | string, count: number | string, asc: "ASC", alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
4153 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, offsetCountToken: "LIMIT", offset: number | string, count: number | string, desc: "DESC", callback?: Callback<unknown>): Result<unknown, Context>;
|
4154 | sort_ro(key: RedisKey, patternToken: "BY", pattern: string, offsetCountToken: "LIMIT", offset: number | string, count: number | string, desc: "DESC", alpha: "ALPHA", callback?: Callback<unknown>): Result<unknown, Context>;
|
4155 | sort_ro(...args: [
|
4156 | key: RedisKey,
|
4157 | patternToken: "BY",
|
4158 | pattern: string,
|
4159 | offsetCountToken: "LIMIT",
|
4160 | offset: number | string,
|
4161 | count: number | string,
|
4162 | patternToken1: "GET",
|
4163 | ...pattern1s: string[],
|
4164 | callback: Callback<unknown>
|
4165 | ]): Result<unknown, Context>;
|
4166 | sort_ro(...args: [
|
4167 | key: RedisKey,
|
4168 | patternToken: "BY",
|
4169 | pattern: string,
|
4170 | offsetCountToken: "LIMIT",
|
4171 | offset: number | string,
|
4172 | count: number | string,
|
4173 | patternToken1: "GET",
|
4174 | ...pattern1s: string[]
|
4175 | ]): Result<unknown, Context>;
|
4176 | sort_ro(...args: [
|
4177 | key: RedisKey,
|
4178 | patternToken: "BY",
|
4179 | pattern: string,
|
4180 | offsetCountToken: "LIMIT",
|
4181 | offset: number | string,
|
4182 | count: number | string,
|
4183 | patternToken1: "GET",
|
4184 | ...pattern1s: string[],
|
4185 | alpha: "ALPHA",
|
4186 | callback: Callback<unknown>
|
4187 | ]): Result<unknown, Context>;
|
4188 | sort_ro(...args: [
|
4189 | key: RedisKey,
|
4190 | patternToken: "BY",
|
4191 | pattern: string,
|
4192 | offsetCountToken: "LIMIT",
|
4193 | offset: number | string,
|
4194 | count: number | string,
|
4195 | patternToken1: "GET",
|
4196 | ...pattern1s: string[],
|
4197 | alpha: "ALPHA"
|
4198 | ]): Result<unknown, Context>;
|
4199 | sort_ro(...args: [
|
4200 | key: RedisKey,
|
4201 | patternToken: "BY",
|
4202 | pattern: string,
|
4203 | offsetCountToken: "LIMIT",
|
4204 | offset: number | string,
|
4205 | count: number | string,
|
4206 | patternToken1: "GET",
|
4207 | ...pattern1s: string[],
|
4208 | asc: "ASC",
|
4209 | callback: Callback<unknown>
|
4210 | ]): Result<unknown, Context>;
|
4211 | sort_ro(...args: [
|
4212 | key: RedisKey,
|
4213 | patternToken: "BY",
|
4214 | pattern: string,
|
4215 | offsetCountToken: "LIMIT",
|
4216 | offset: number | string,
|
4217 | count: number | string,
|
4218 | patternToken1: "GET",
|
4219 | ...pattern1s: string[],
|
4220 | asc: "ASC"
|
4221 | ]): Result<unknown, Context>;
|
4222 | sort_ro(...args: [
|
4223 | key: RedisKey,
|
4224 | patternToken: "BY",
|
4225 | pattern: string,
|
4226 | offsetCountToken: "LIMIT",
|
4227 | offset: number | string,
|
4228 | count: number | string,
|
4229 | patternToken1: "GET",
|
4230 | ...pattern1s: string[],
|
4231 | asc: "ASC",
|
4232 | alpha: "ALPHA",
|
4233 | callback: Callback<unknown>
|
4234 | ]): Result<unknown, Context>;
|
4235 | sort_ro(...args: [
|
4236 | key: RedisKey,
|
4237 | patternToken: "BY",
|
4238 | pattern: string,
|
4239 | offsetCountToken: "LIMIT",
|
4240 | offset: number | string,
|
4241 | count: number | string,
|
4242 | patternToken1: "GET",
|
4243 | ...pattern1s: string[],
|
4244 | asc: "ASC",
|
4245 | alpha: "ALPHA"
|
4246 | ]): Result<unknown, Context>;
|
4247 | sort_ro(...args: [
|
4248 | key: RedisKey,
|
4249 | patternToken: "BY",
|
4250 | pattern: string,
|
4251 | offsetCountToken: "LIMIT",
|
4252 | offset: number | string,
|
4253 | count: number | string,
|
4254 | patternToken1: "GET",
|
4255 | ...pattern1s: string[],
|
4256 | desc: "DESC",
|
4257 | callback: Callback<unknown>
|
4258 | ]): Result<unknown, Context>;
|
4259 | sort_ro(...args: [
|
4260 | key: RedisKey,
|
4261 | patternToken: "BY",
|
4262 | pattern: string,
|
4263 | offsetCountToken: "LIMIT",
|
4264 | offset: number | string,
|
4265 | count: number | string,
|
4266 | patternToken1: "GET",
|
4267 | ...pattern1s: string[],
|
4268 | desc: "DESC"
|
4269 | ]): Result<unknown, Context>;
|
4270 | sort_ro(...args: [
|
4271 | key: RedisKey,
|
4272 | patternToken: "BY",
|
4273 | pattern: string,
|
4274 | offsetCountToken: "LIMIT",
|
4275 | offset: number | string,
|
4276 | count: number | string,
|
4277 | patternToken1: "GET",
|
4278 | ...pattern1s: string[],
|
4279 | desc: "DESC",
|
4280 | alpha: "ALPHA",
|
4281 | callback: Callback<unknown>
|
4282 | ]): Result<unknown, Context>;
|
4283 | sort_ro(...args: [
|
4284 | key: RedisKey,
|
4285 | patternToken: "BY",
|
4286 | pattern: string,
|
4287 | offsetCountToken: "LIMIT",
|
4288 | offset: number | string,
|
4289 | count: number | string,
|
4290 | patternToken1: "GET",
|
4291 | ...pattern1s: string[],
|
4292 | desc: "DESC",
|
4293 | alpha: "ALPHA"
|
4294 | ]): Result<unknown, Context>;
|
4295 | /**
|
4296 | * Remove and return one or multiple random members from a set
|
4297 | * - _group_: set
|
4298 | * - _complexity_: Without the count argument O(1), otherwise O(N) where N is the value of the passed count.
|
4299 | * - _since_: 1.0.0
|
4300 | */
|
4301 | spop(key: RedisKey, callback?: Callback<string | null>): Result<string | null, Context>;
|
4302 | spopBuffer(key: RedisKey, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
4303 | spop(key: RedisKey, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
4304 | spopBuffer(key: RedisKey, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
4305 | /**
|
4306 | * Post a message to a shard channel
|
4307 | * - _group_: pubsub
|
4308 | * - _complexity_: O(N) where N is the number of clients subscribed to the receiving shard channel.
|
4309 | * - _since_: 7.0.0
|
4310 | */
|
4311 | spublish(shardchannel: string | Buffer, message: string | Buffer, callback?: Callback<unknown>): Result<unknown, Context>;
|
4312 | /**
|
4313 | * Get one or multiple random members from a set
|
4314 | * - _group_: set
|
4315 | * - _complexity_: Without the count argument O(1), otherwise O(N) where N is the absolute value of the passed count.
|
4316 | * - _since_: 1.0.0
|
4317 | */
|
4318 | srandmember(key: RedisKey, callback?: Callback<string | null>): Result<string | null, Context>;
|
4319 | srandmemberBuffer(key: RedisKey, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
4320 | srandmember(key: RedisKey, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
4321 | srandmemberBuffer(key: RedisKey, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
4322 | /**
|
4323 | * Remove one or more members from a set
|
4324 | * - _group_: set
|
4325 | * - _complexity_: O(N) where N is the number of members to be removed.
|
4326 | * - _since_: 1.0.0
|
4327 | */
|
4328 | srem(...args: [
|
4329 | key: RedisKey,
|
4330 | ...members: (string | Buffer | number)[],
|
4331 | callback: Callback<number>
|
4332 | ]): Result<number, Context>;
|
4333 | srem(...args: [
|
4334 | key: RedisKey,
|
4335 | members: (string | Buffer | number)[],
|
4336 | callback: Callback<number>
|
4337 | ]): Result<number, Context>;
|
4338 | srem(...args: [key: RedisKey, ...members: (string | Buffer | number)[]]): Result<number, Context>;
|
4339 | srem(...args: [key: RedisKey, members: (string | Buffer | number)[]]): Result<number, Context>;
|
4340 | /**
|
4341 | * Incrementally iterate Set elements
|
4342 | * - _group_: set
|
4343 | * - _complexity_: O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection..
|
4344 | * - _since_: 2.8.0
|
4345 | */
|
4346 | sscan(key: RedisKey, cursor: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
4347 | sscanBuffer(key: RedisKey, cursor: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
4348 | sscan(key: RedisKey, cursor: number | string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
4349 | sscanBuffer(key: RedisKey, cursor: number | string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
4350 | sscan(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
4351 | sscanBuffer(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
4352 | sscan(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
4353 | sscanBuffer(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
4354 | /**
|
4355 | * Listen for messages published to the given shard channels
|
4356 | * - _group_: pubsub
|
4357 | * - _complexity_: O(N) where N is the number of shard channels to subscribe to.
|
4358 | * - _since_: 7.0.0
|
4359 | */
|
4360 | ssubscribe(...args: [
|
4361 | ...shardchannels: (string | Buffer)[],
|
4362 | callback: Callback<unknown>
|
4363 | ]): Result<unknown, Context>;
|
4364 | ssubscribe(...args: [...shardchannels: (string | Buffer)[]]): Result<unknown, Context>;
|
4365 | /**
|
4366 | * Get the length of the value stored in a key
|
4367 | * - _group_: string
|
4368 | * - _complexity_: O(1)
|
4369 | * - _since_: 2.2.0
|
4370 | */
|
4371 | strlen(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
4372 | /**
|
4373 | * Listen for messages published to the given channels
|
4374 | * - _group_: pubsub
|
4375 | * - _complexity_: O(N) where N is the number of channels to subscribe to.
|
4376 | * - _since_: 2.0.0
|
4377 | */
|
4378 | subscribe(...args: [...channels: (string | Buffer)[], callback: Callback<unknown>]): Result<unknown, Context>;
|
4379 | subscribe(...args: [...channels: (string | Buffer)[]]): Result<unknown, Context>;
|
4380 | /**
|
4381 | * Get a substring of the string stored at a key
|
4382 | * - _group_: string
|
4383 | * - _complexity_: O(N) where N is the length of the returned string. The complexity is ultimately determined by the returned length, but because creating a substring from an existing string is very cheap, it can be considered O(1) for small strings.
|
4384 | * - _since_: 1.0.0
|
4385 | */
|
4386 | substr(key: RedisKey, start: number | string, end: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
4387 | /**
|
4388 | * Add multiple sets
|
4389 | * - _group_: set
|
4390 | * - _complexity_: O(N) where N is the total number of elements in all given sets.
|
4391 | * - _since_: 1.0.0
|
4392 | */
|
4393 | sunion(...args: [...keys: RedisKey[], callback: Callback<string[]>]): Result<string[], Context>;
|
4394 | sunionBuffer(...args: [...keys: RedisKey[], callback: Callback<Buffer[]>]): Result<Buffer[], Context>;
|
4395 | sunion(...args: [keys: RedisKey[], callback: Callback<string[]>]): Result<string[], Context>;
|
4396 | sunionBuffer(...args: [keys: RedisKey[], callback: Callback<Buffer[]>]): Result<Buffer[], Context>;
|
4397 | sunion(...args: [...keys: RedisKey[]]): Result<string[], Context>;
|
4398 | sunionBuffer(...args: [...keys: RedisKey[]]): Result<Buffer[], Context>;
|
4399 | sunion(...args: [keys: RedisKey[]]): Result<string[], Context>;
|
4400 | sunionBuffer(...args: [keys: RedisKey[]]): Result<Buffer[], Context>;
|
4401 | /**
|
4402 | * Add multiple sets and store the resulting set in a key
|
4403 | * - _group_: set
|
4404 | * - _complexity_: O(N) where N is the total number of elements in all given sets.
|
4405 | * - _since_: 1.0.0
|
4406 | */
|
4407 | sunionstore(...args: [
|
4408 | destination: RedisKey,
|
4409 | ...keys: RedisKey[],
|
4410 | callback: Callback<number>
|
4411 | ]): Result<number, Context>;
|
4412 | sunionstore(...args: [
|
4413 | destination: RedisKey,
|
4414 | keys: RedisKey[],
|
4415 | callback: Callback<number>
|
4416 | ]): Result<number, Context>;
|
4417 | sunionstore(...args: [destination: RedisKey, ...keys: RedisKey[]]): Result<number, Context>;
|
4418 | sunionstore(...args: [destination: RedisKey, keys: RedisKey[]]): Result<number, Context>;
|
4419 | /**
|
4420 | * Stop listening for messages posted to the given shard channels
|
4421 | * - _group_: pubsub
|
4422 | * - _complexity_: O(N) where N is the number of clients already subscribed to a shard channel.
|
4423 | * - _since_: 7.0.0
|
4424 | */
|
4425 | sunsubscribe(callback?: Callback<unknown>): Result<unknown, Context>;
|
4426 | sunsubscribe(...args: [
|
4427 | ...shardchannels: (string | Buffer)[],
|
4428 | callback: Callback<unknown>
|
4429 | ]): Result<unknown, Context>;
|
4430 | sunsubscribe(...args: [...shardchannels: (string | Buffer)[]]): Result<unknown, Context>;
|
4431 | /**
|
4432 | * Swaps two Redis databases
|
4433 | * - _group_: server
|
4434 | * - _complexity_: O(N) where N is the count of clients watching or blocking on keys from both databases.
|
4435 | * - _since_: 4.0.0
|
4436 | */
|
4437 | swapdb(index1: number | string, index2: number | string, callback?: Callback<"OK">): Result<"OK", Context>;
|
4438 | /**
|
4439 | * Internal command used for replication
|
4440 | * - _group_: server
|
4441 | * - _complexity_: undefined
|
4442 | * - _since_: 1.0.0
|
4443 | */
|
4444 | sync(callback?: Callback<unknown>): Result<unknown, Context>;
|
4445 | /**
|
4446 | * Return the current server time
|
4447 | * - _group_: server
|
4448 | * - _complexity_: O(1)
|
4449 | * - _since_: 2.6.0
|
4450 | */
|
4451 | time(callback?: Callback<number[]>): Result<number[], Context>;
|
4452 | /**
|
4453 | * Alters the last access time of a key(s). Returns the number of existing keys specified.
|
4454 | * - _group_: generic
|
4455 | * - _complexity_: O(N) where N is the number of keys that will be touched.
|
4456 | * - _since_: 3.2.1
|
4457 | */
|
4458 | touch(...args: [...keys: RedisKey[], callback: Callback<number>]): Result<number, Context>;
|
4459 | touch(...args: [keys: RedisKey[], callback: Callback<number>]): Result<number, Context>;
|
4460 | touch(...args: [...keys: RedisKey[]]): Result<number, Context>;
|
4461 | touch(...args: [keys: RedisKey[]]): Result<number, Context>;
|
4462 | /**
|
4463 | * Get the time to live for a key in seconds
|
4464 | * - _group_: generic
|
4465 | * - _complexity_: O(1)
|
4466 | * - _since_: 1.0.0
|
4467 | */
|
4468 | ttl(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
4469 | /**
|
4470 | * Determine the type stored at key
|
4471 | * - _group_: generic
|
4472 | * - _complexity_: O(1)
|
4473 | * - _since_: 1.0.0
|
4474 | */
|
4475 | type(key: RedisKey, callback?: Callback<string>): Result<string, Context>;
|
4476 | /**
|
4477 | * Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.
|
4478 | * - _group_: generic
|
4479 | * - _complexity_: O(1) for each key removed regardless of its size. Then the command does O(N) work in a different thread in order to reclaim memory, where N is the number of allocations the deleted objects where composed of.
|
4480 | * - _since_: 4.0.0
|
4481 | */
|
4482 | unlink(...args: [...keys: RedisKey[], callback: Callback<number>]): Result<number, Context>;
|
4483 | unlink(...args: [keys: RedisKey[], callback: Callback<number>]): Result<number, Context>;
|
4484 | unlink(...args: [...keys: RedisKey[]]): Result<number, Context>;
|
4485 | unlink(...args: [keys: RedisKey[]]): Result<number, Context>;
|
4486 | /**
|
4487 | * Stop listening for messages posted to the given channels
|
4488 | * - _group_: pubsub
|
4489 | * - _complexity_: O(N) where N is the number of clients already subscribed to a channel.
|
4490 | * - _since_: 2.0.0
|
4491 | */
|
4492 | unsubscribe(callback?: Callback<unknown>): Result<unknown, Context>;
|
4493 | unsubscribe(...args: [...channels: (string | Buffer)[], callback: Callback<unknown>]): Result<unknown, Context>;
|
4494 | unsubscribe(...args: [...channels: (string | Buffer)[]]): Result<unknown, Context>;
|
4495 | /**
|
4496 | * Forget about all watched keys
|
4497 | * - _group_: transactions
|
4498 | * - _complexity_: O(1)
|
4499 | * - _since_: 2.2.0
|
4500 | */
|
4501 | unwatch(callback?: Callback<"OK">): Result<"OK", Context>;
|
4502 | /**
|
4503 | * Wait for the synchronous replication of all the write commands sent in the context of the current connection
|
4504 | * - _group_: generic
|
4505 | * - _complexity_: O(1)
|
4506 | * - _since_: 3.0.0
|
4507 | */
|
4508 | wait(numreplicas: number | string, timeout: number | string, callback?: Callback<number>): Result<number, Context>;
|
4509 | /**
|
4510 | * Watch the given keys to determine execution of the MULTI/EXEC block
|
4511 | * - _group_: transactions
|
4512 | * - _complexity_: O(1) for every key.
|
4513 | * - _since_: 2.2.0
|
4514 | */
|
4515 | watch(...args: [...keys: RedisKey[], callback: Callback<"OK">]): Result<"OK", Context>;
|
4516 | watch(...args: [keys: RedisKey[], callback: Callback<"OK">]): Result<"OK", Context>;
|
4517 | watch(...args: [...keys: RedisKey[]]): Result<"OK", Context>;
|
4518 | watch(...args: [keys: RedisKey[]]): Result<"OK", Context>;
|
4519 | /**
|
4520 | * Marks a pending message as correctly processed, effectively removing it from the pending entries list of the consumer group. Return value of the command is the number of messages successfully acknowledged, that is, the IDs we were actually able to resolve in the PEL.
|
4521 | * - _group_: stream
|
4522 | * - _complexity_: O(1) for each message ID processed.
|
4523 | * - _since_: 5.0.0
|
4524 | */
|
4525 | xack(...args: [
|
4526 | key: RedisKey,
|
4527 | group: string | Buffer,
|
4528 | ...ids: (string | Buffer | number)[],
|
4529 | callback: Callback<number>
|
4530 | ]): Result<number, Context>;
|
4531 | xack(...args: [
|
4532 | key: RedisKey,
|
4533 | group: string | Buffer,
|
4534 | ...ids: (string | Buffer | number)[]
|
4535 | ]): Result<number, Context>;
|
4536 | /**
|
4537 | * Appends a new entry to a stream
|
4538 | * - _group_: stream
|
4539 | * - _complexity_: O(1) when adding a new entry, O(N) when trimming where N being the number of entries evicted.
|
4540 | * - _since_: 5.0.0
|
4541 | */
|
4542 | xadd(...args: [
|
4543 | key: RedisKey,
|
4544 | ...args: RedisValue[],
|
4545 | callback: Callback<string | null>
|
4546 | ]): Result<string | null, Context>;
|
4547 | xaddBuffer(...args: [
|
4548 | key: RedisKey,
|
4549 | ...args: RedisValue[],
|
4550 | callback: Callback<Buffer | null>
|
4551 | ]): Result<Buffer | null, Context>;
|
4552 | xadd(...args: [key: RedisKey, ...args: RedisValue[]]): Result<string | null, Context>;
|
4553 | xaddBuffer(...args: [key: RedisKey, ...args: RedisValue[]]): Result<Buffer | null, Context>;
|
4554 | /**
|
4555 | * Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to the specified consumer.
|
4556 | * - _group_: stream
|
4557 | * - _complexity_: O(1) if COUNT is small.
|
4558 | * - _since_: 6.2.0
|
4559 | */
|
4560 | xautoclaim(key: RedisKey, group: string | Buffer, consumer: string | Buffer, minIdleTime: string | Buffer | number, start: string | Buffer | number, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
4561 | xautoclaim(key: RedisKey, group: string | Buffer, consumer: string | Buffer, minIdleTime: string | Buffer | number, start: string | Buffer | number, justid: "JUSTID", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
4562 | xautoclaim(key: RedisKey, group: string | Buffer, consumer: string | Buffer, minIdleTime: string | Buffer | number, start: string | Buffer | number, countToken: "COUNT", count: number | string, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
4563 | xautoclaim(key: RedisKey, group: string | Buffer, consumer: string | Buffer, minIdleTime: string | Buffer | number, start: string | Buffer | number, countToken: "COUNT", count: number | string, justid: "JUSTID", callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
4564 | /**
|
4565 | * Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer.
|
4566 | * - _group_: stream
|
4567 | * - _complexity_: O(log N) with N being the number of messages in the PEL of the consumer group.
|
4568 | * - _since_: 5.0.0
|
4569 | */
|
4570 | xclaim(...args: [
|
4571 | key: RedisKey,
|
4572 | group: string | Buffer,
|
4573 | consumer: string | Buffer,
|
4574 | minIdleTime: string | Buffer | number,
|
4575 | ...ids: (string | Buffer | number)[],
|
4576 | callback: Callback<unknown[]>
|
4577 | ]): Result<unknown[], Context>;
|
4578 | xclaim(...args: [
|
4579 | key: RedisKey,
|
4580 | group: string | Buffer,
|
4581 | consumer: string | Buffer,
|
4582 | minIdleTime: string | Buffer | number,
|
4583 | ...ids: (string | Buffer | number)[]
|
4584 | ]): Result<unknown[], Context>;
|
4585 | xclaim(...args: [
|
4586 | key: RedisKey,
|
4587 | group: string | Buffer,
|
4588 | consumer: string | Buffer,
|
4589 | minIdleTime: string | Buffer | number,
|
4590 | ...ids: (string | Buffer | number)[],
|
4591 | justid: "JUSTID",
|
4592 | callback: Callback<unknown[]>
|
4593 | ]): Result<unknown[], Context>;
|
4594 | xclaim(...args: [
|
4595 | key: RedisKey,
|
4596 | group: string | Buffer,
|
4597 | consumer: string | Buffer,
|
4598 | minIdleTime: string | Buffer | number,
|
4599 | ...ids: (string | Buffer | number)[],
|
4600 | justid: "JUSTID"
|
4601 | ]): Result<unknown[], Context>;
|
4602 | xclaim(...args: [
|
4603 | key: RedisKey,
|
4604 | group: string | Buffer,
|
4605 | consumer: string | Buffer,
|
4606 | minIdleTime: string | Buffer | number,
|
4607 | ...ids: (string | Buffer | number)[],
|
4608 | force: "FORCE",
|
4609 | callback: Callback<unknown[]>
|
4610 | ]): Result<unknown[], Context>;
|
4611 | xclaim(...args: [
|
4612 | key: RedisKey,
|
4613 | group: string | Buffer,
|
4614 | consumer: string | Buffer,
|
4615 | minIdleTime: string | Buffer | number,
|
4616 | ...ids: (string | Buffer | number)[],
|
4617 | force: "FORCE"
|
4618 | ]): Result<unknown[], Context>;
|
4619 | xclaim(...args: [
|
4620 | key: RedisKey,
|
4621 | group: string | Buffer,
|
4622 | consumer: string | Buffer,
|
4623 | minIdleTime: string | Buffer | number,
|
4624 | ...ids: (string | Buffer | number)[],
|
4625 | force: "FORCE",
|
4626 | justid: "JUSTID",
|
4627 | callback: Callback<unknown[]>
|
4628 | ]): Result<unknown[], Context>;
|
4629 | xclaim(...args: [
|
4630 | key: RedisKey,
|
4631 | group: string | Buffer,
|
4632 | consumer: string | Buffer,
|
4633 | minIdleTime: string | Buffer | number,
|
4634 | ...ids: (string | Buffer | number)[],
|
4635 | force: "FORCE",
|
4636 | justid: "JUSTID"
|
4637 | ]): Result<unknown[], Context>;
|
4638 | xclaim(...args: [
|
4639 | key: RedisKey,
|
4640 | group: string | Buffer,
|
4641 | consumer: string | Buffer,
|
4642 | minIdleTime: string | Buffer | number,
|
4643 | ...ids: (string | Buffer | number)[],
|
4644 | countToken: "RETRYCOUNT",
|
4645 | count: number | string,
|
4646 | callback: Callback<unknown[]>
|
4647 | ]): Result<unknown[], Context>;
|
4648 | xclaim(...args: [
|
4649 | key: RedisKey,
|
4650 | group: string | Buffer,
|
4651 | consumer: string | Buffer,
|
4652 | minIdleTime: string | Buffer | number,
|
4653 | ...ids: (string | Buffer | number)[],
|
4654 | countToken: "RETRYCOUNT",
|
4655 | count: number | string
|
4656 | ]): Result<unknown[], Context>;
|
4657 | xclaim(...args: [
|
4658 | key: RedisKey,
|
4659 | group: string | Buffer,
|
4660 | consumer: string | Buffer,
|
4661 | minIdleTime: string | Buffer | number,
|
4662 | ...ids: (string | Buffer | number)[],
|
4663 | countToken: "RETRYCOUNT",
|
4664 | count: number | string,
|
4665 | justid: "JUSTID",
|
4666 | callback: Callback<unknown[]>
|
4667 | ]): Result<unknown[], Context>;
|
4668 | xclaim(...args: [
|
4669 | key: RedisKey,
|
4670 | group: string | Buffer,
|
4671 | consumer: string | Buffer,
|
4672 | minIdleTime: string | Buffer | number,
|
4673 | ...ids: (string | Buffer | number)[],
|
4674 | countToken: "RETRYCOUNT",
|
4675 | count: number | string,
|
4676 | justid: "JUSTID"
|
4677 | ]): Result<unknown[], Context>;
|
4678 | xclaim(...args: [
|
4679 | key: RedisKey,
|
4680 | group: string | Buffer,
|
4681 | consumer: string | Buffer,
|
4682 | minIdleTime: string | Buffer | number,
|
4683 | ...ids: (string | Buffer | number)[],
|
4684 | countToken: "RETRYCOUNT",
|
4685 | count: number | string,
|
4686 | force: "FORCE",
|
4687 | callback: Callback<unknown[]>
|
4688 | ]): Result<unknown[], Context>;
|
4689 | xclaim(...args: [
|
4690 | key: RedisKey,
|
4691 | group: string | Buffer,
|
4692 | consumer: string | Buffer,
|
4693 | minIdleTime: string | Buffer | number,
|
4694 | ...ids: (string | Buffer | number)[],
|
4695 | countToken: "RETRYCOUNT",
|
4696 | count: number | string,
|
4697 | force: "FORCE"
|
4698 | ]): Result<unknown[], Context>;
|
4699 | xclaim(...args: [
|
4700 | key: RedisKey,
|
4701 | group: string | Buffer,
|
4702 | consumer: string | Buffer,
|
4703 | minIdleTime: string | Buffer | number,
|
4704 | ...ids: (string | Buffer | number)[],
|
4705 | countToken: "RETRYCOUNT",
|
4706 | count: number | string,
|
4707 | force: "FORCE",
|
4708 | justid: "JUSTID",
|
4709 | callback: Callback<unknown[]>
|
4710 | ]): Result<unknown[], Context>;
|
4711 | xclaim(...args: [
|
4712 | key: RedisKey,
|
4713 | group: string | Buffer,
|
4714 | consumer: string | Buffer,
|
4715 | minIdleTime: string | Buffer | number,
|
4716 | ...ids: (string | Buffer | number)[],
|
4717 | countToken: "RETRYCOUNT",
|
4718 | count: number | string,
|
4719 | force: "FORCE",
|
4720 | justid: "JUSTID"
|
4721 | ]): Result<unknown[], Context>;
|
4722 | xclaim(...args: [
|
4723 | key: RedisKey,
|
4724 | group: string | Buffer,
|
4725 | consumer: string | Buffer,
|
4726 | minIdleTime: string | Buffer | number,
|
4727 | ...ids: (string | Buffer | number)[],
|
4728 | unixTimeMillisecondsToken: "TIME",
|
4729 | unixTimeMilliseconds: number | string,
|
4730 | callback: Callback<unknown[]>
|
4731 | ]): Result<unknown[], Context>;
|
4732 | xclaim(...args: [
|
4733 | key: RedisKey,
|
4734 | group: string | Buffer,
|
4735 | consumer: string | Buffer,
|
4736 | minIdleTime: string | Buffer | number,
|
4737 | ...ids: (string | Buffer | number)[],
|
4738 | unixTimeMillisecondsToken: "TIME",
|
4739 | unixTimeMilliseconds: number | string
|
4740 | ]): Result<unknown[], Context>;
|
4741 | xclaim(...args: [
|
4742 | key: RedisKey,
|
4743 | group: string | Buffer,
|
4744 | consumer: string | Buffer,
|
4745 | minIdleTime: string | Buffer | number,
|
4746 | ...ids: (string | Buffer | number)[],
|
4747 | unixTimeMillisecondsToken: "TIME",
|
4748 | unixTimeMilliseconds: number | string,
|
4749 | justid: "JUSTID",
|
4750 | callback: Callback<unknown[]>
|
4751 | ]): Result<unknown[], Context>;
|
4752 | xclaim(...args: [
|
4753 | key: RedisKey,
|
4754 | group: string | Buffer,
|
4755 | consumer: string | Buffer,
|
4756 | minIdleTime: string | Buffer | number,
|
4757 | ...ids: (string | Buffer | number)[],
|
4758 | unixTimeMillisecondsToken: "TIME",
|
4759 | unixTimeMilliseconds: number | string,
|
4760 | justid: "JUSTID"
|
4761 | ]): Result<unknown[], Context>;
|
4762 | xclaim(...args: [
|
4763 | key: RedisKey,
|
4764 | group: string | Buffer,
|
4765 | consumer: string | Buffer,
|
4766 | minIdleTime: string | Buffer | number,
|
4767 | ...ids: (string | Buffer | number)[],
|
4768 | unixTimeMillisecondsToken: "TIME",
|
4769 | unixTimeMilliseconds: number | string,
|
4770 | force: "FORCE",
|
4771 | callback: Callback<unknown[]>
|
4772 | ]): Result<unknown[], Context>;
|
4773 | xclaim(...args: [
|
4774 | key: RedisKey,
|
4775 | group: string | Buffer,
|
4776 | consumer: string | Buffer,
|
4777 | minIdleTime: string | Buffer | number,
|
4778 | ...ids: (string | Buffer | number)[],
|
4779 | unixTimeMillisecondsToken: "TIME",
|
4780 | unixTimeMilliseconds: number | string,
|
4781 | force: "FORCE"
|
4782 | ]): Result<unknown[], Context>;
|
4783 | xclaim(...args: [
|
4784 | key: RedisKey,
|
4785 | group: string | Buffer,
|
4786 | consumer: string | Buffer,
|
4787 | minIdleTime: string | Buffer | number,
|
4788 | ...ids: (string | Buffer | number)[],
|
4789 | unixTimeMillisecondsToken: "TIME",
|
4790 | unixTimeMilliseconds: number | string,
|
4791 | force: "FORCE",
|
4792 | justid: "JUSTID",
|
4793 | callback: Callback<unknown[]>
|
4794 | ]): Result<unknown[], Context>;
|
4795 | xclaim(...args: [
|
4796 | key: RedisKey,
|
4797 | group: string | Buffer,
|
4798 | consumer: string | Buffer,
|
4799 | minIdleTime: string | Buffer | number,
|
4800 | ...ids: (string | Buffer | number)[],
|
4801 | unixTimeMillisecondsToken: "TIME",
|
4802 | unixTimeMilliseconds: number | string,
|
4803 | force: "FORCE",
|
4804 | justid: "JUSTID"
|
4805 | ]): Result<unknown[], Context>;
|
4806 | xclaim(...args: [
|
4807 | key: RedisKey,
|
4808 | group: string | Buffer,
|
4809 | consumer: string | Buffer,
|
4810 | minIdleTime: string | Buffer | number,
|
4811 | ...ids: (string | Buffer | number)[],
|
4812 | unixTimeMillisecondsToken: "TIME",
|
4813 | unixTimeMilliseconds: number | string,
|
4814 | countToken: "RETRYCOUNT",
|
4815 | count: number | string,
|
4816 | callback: Callback<unknown[]>
|
4817 | ]): Result<unknown[], Context>;
|
4818 | xclaim(...args: [
|
4819 | key: RedisKey,
|
4820 | group: string | Buffer,
|
4821 | consumer: string | Buffer,
|
4822 | minIdleTime: string | Buffer | number,
|
4823 | ...ids: (string | Buffer | number)[],
|
4824 | unixTimeMillisecondsToken: "TIME",
|
4825 | unixTimeMilliseconds: number | string,
|
4826 | countToken: "RETRYCOUNT",
|
4827 | count: number | string
|
4828 | ]): Result<unknown[], Context>;
|
4829 | xclaim(...args: [
|
4830 | key: RedisKey,
|
4831 | group: string | Buffer,
|
4832 | consumer: string | Buffer,
|
4833 | minIdleTime: string | Buffer | number,
|
4834 | ...ids: (string | Buffer | number)[],
|
4835 | unixTimeMillisecondsToken: "TIME",
|
4836 | unixTimeMilliseconds: number | string,
|
4837 | countToken: "RETRYCOUNT",
|
4838 | count: number | string,
|
4839 | justid: "JUSTID",
|
4840 | callback: Callback<unknown[]>
|
4841 | ]): Result<unknown[], Context>;
|
4842 | xclaim(...args: [
|
4843 | key: RedisKey,
|
4844 | group: string | Buffer,
|
4845 | consumer: string | Buffer,
|
4846 | minIdleTime: string | Buffer | number,
|
4847 | ...ids: (string | Buffer | number)[],
|
4848 | unixTimeMillisecondsToken: "TIME",
|
4849 | unixTimeMilliseconds: number | string,
|
4850 | countToken: "RETRYCOUNT",
|
4851 | count: number | string,
|
4852 | justid: "JUSTID"
|
4853 | ]): Result<unknown[], Context>;
|
4854 | xclaim(...args: [
|
4855 | key: RedisKey,
|
4856 | group: string | Buffer,
|
4857 | consumer: string | Buffer,
|
4858 | minIdleTime: string | Buffer | number,
|
4859 | ...ids: (string | Buffer | number)[],
|
4860 | unixTimeMillisecondsToken: "TIME",
|
4861 | unixTimeMilliseconds: number | string,
|
4862 | countToken: "RETRYCOUNT",
|
4863 | count: number | string,
|
4864 | force: "FORCE",
|
4865 | callback: Callback<unknown[]>
|
4866 | ]): Result<unknown[], Context>;
|
4867 | xclaim(...args: [
|
4868 | key: RedisKey,
|
4869 | group: string | Buffer,
|
4870 | consumer: string | Buffer,
|
4871 | minIdleTime: string | Buffer | number,
|
4872 | ...ids: (string | Buffer | number)[],
|
4873 | unixTimeMillisecondsToken: "TIME",
|
4874 | unixTimeMilliseconds: number | string,
|
4875 | countToken: "RETRYCOUNT",
|
4876 | count: number | string,
|
4877 | force: "FORCE"
|
4878 | ]): Result<unknown[], Context>;
|
4879 | xclaim(...args: [
|
4880 | key: RedisKey,
|
4881 | group: string | Buffer,
|
4882 | consumer: string | Buffer,
|
4883 | minIdleTime: string | Buffer | number,
|
4884 | ...ids: (string | Buffer | number)[],
|
4885 | unixTimeMillisecondsToken: "TIME",
|
4886 | unixTimeMilliseconds: number | string,
|
4887 | countToken: "RETRYCOUNT",
|
4888 | count: number | string,
|
4889 | force: "FORCE",
|
4890 | justid: "JUSTID",
|
4891 | callback: Callback<unknown[]>
|
4892 | ]): Result<unknown[], Context>;
|
4893 | xclaim(...args: [
|
4894 | key: RedisKey,
|
4895 | group: string | Buffer,
|
4896 | consumer: string | Buffer,
|
4897 | minIdleTime: string | Buffer | number,
|
4898 | ...ids: (string | Buffer | number)[],
|
4899 | unixTimeMillisecondsToken: "TIME",
|
4900 | unixTimeMilliseconds: number | string,
|
4901 | countToken: "RETRYCOUNT",
|
4902 | count: number | string,
|
4903 | force: "FORCE",
|
4904 | justid: "JUSTID"
|
4905 | ]): Result<unknown[], Context>;
|
4906 | xclaim(...args: [
|
4907 | key: RedisKey,
|
4908 | group: string | Buffer,
|
4909 | consumer: string | Buffer,
|
4910 | minIdleTime: string | Buffer | number,
|
4911 | ...ids: (string | Buffer | number)[],
|
4912 | msToken: "IDLE",
|
4913 | ms: number | string,
|
4914 | callback: Callback<unknown[]>
|
4915 | ]): Result<unknown[], Context>;
|
4916 | xclaim(...args: [
|
4917 | key: RedisKey,
|
4918 | group: string | Buffer,
|
4919 | consumer: string | Buffer,
|
4920 | minIdleTime: string | Buffer | number,
|
4921 | ...ids: (string | Buffer | number)[],
|
4922 | msToken: "IDLE",
|
4923 | ms: number | string
|
4924 | ]): Result<unknown[], Context>;
|
4925 | xclaim(...args: [
|
4926 | key: RedisKey,
|
4927 | group: string | Buffer,
|
4928 | consumer: string | Buffer,
|
4929 | minIdleTime: string | Buffer | number,
|
4930 | ...ids: (string | Buffer | number)[],
|
4931 | msToken: "IDLE",
|
4932 | ms: number | string,
|
4933 | justid: "JUSTID",
|
4934 | callback: Callback<unknown[]>
|
4935 | ]): Result<unknown[], Context>;
|
4936 | xclaim(...args: [
|
4937 | key: RedisKey,
|
4938 | group: string | Buffer,
|
4939 | consumer: string | Buffer,
|
4940 | minIdleTime: string | Buffer | number,
|
4941 | ...ids: (string | Buffer | number)[],
|
4942 | msToken: "IDLE",
|
4943 | ms: number | string,
|
4944 | justid: "JUSTID"
|
4945 | ]): Result<unknown[], Context>;
|
4946 | xclaim(...args: [
|
4947 | key: RedisKey,
|
4948 | group: string | Buffer,
|
4949 | consumer: string | Buffer,
|
4950 | minIdleTime: string | Buffer | number,
|
4951 | ...ids: (string | Buffer | number)[],
|
4952 | msToken: "IDLE",
|
4953 | ms: number | string,
|
4954 | force: "FORCE",
|
4955 | callback: Callback<unknown[]>
|
4956 | ]): Result<unknown[], Context>;
|
4957 | xclaim(...args: [
|
4958 | key: RedisKey,
|
4959 | group: string | Buffer,
|
4960 | consumer: string | Buffer,
|
4961 | minIdleTime: string | Buffer | number,
|
4962 | ...ids: (string | Buffer | number)[],
|
4963 | msToken: "IDLE",
|
4964 | ms: number | string,
|
4965 | force: "FORCE"
|
4966 | ]): Result<unknown[], Context>;
|
4967 | xclaim(...args: [
|
4968 | key: RedisKey,
|
4969 | group: string | Buffer,
|
4970 | consumer: string | Buffer,
|
4971 | minIdleTime: string | Buffer | number,
|
4972 | ...ids: (string | Buffer | number)[],
|
4973 | msToken: "IDLE",
|
4974 | ms: number | string,
|
4975 | force: "FORCE",
|
4976 | justid: "JUSTID",
|
4977 | callback: Callback<unknown[]>
|
4978 | ]): Result<unknown[], Context>;
|
4979 | xclaim(...args: [
|
4980 | key: RedisKey,
|
4981 | group: string | Buffer,
|
4982 | consumer: string | Buffer,
|
4983 | minIdleTime: string | Buffer | number,
|
4984 | ...ids: (string | Buffer | number)[],
|
4985 | msToken: "IDLE",
|
4986 | ms: number | string,
|
4987 | force: "FORCE",
|
4988 | justid: "JUSTID"
|
4989 | ]): Result<unknown[], Context>;
|
4990 | xclaim(...args: [
|
4991 | key: RedisKey,
|
4992 | group: string | Buffer,
|
4993 | consumer: string | Buffer,
|
4994 | minIdleTime: string | Buffer | number,
|
4995 | ...ids: (string | Buffer | number)[],
|
4996 | msToken: "IDLE",
|
4997 | ms: number | string,
|
4998 | countToken: "RETRYCOUNT",
|
4999 | count: number | string,
|
5000 | callback: Callback<unknown[]>
|
5001 | ]): Result<unknown[], Context>;
|
5002 | xclaim(...args: [
|
5003 | key: RedisKey,
|
5004 | group: string | Buffer,
|
5005 | consumer: string | Buffer,
|
5006 | minIdleTime: string | Buffer | number,
|
5007 | ...ids: (string | Buffer | number)[],
|
5008 | msToken: "IDLE",
|
5009 | ms: number | string,
|
5010 | countToken: "RETRYCOUNT",
|
5011 | count: number | string
|
5012 | ]): Result<unknown[], Context>;
|
5013 | xclaim(...args: [
|
5014 | key: RedisKey,
|
5015 | group: string | Buffer,
|
5016 | consumer: string | Buffer,
|
5017 | minIdleTime: string | Buffer | number,
|
5018 | ...ids: (string | Buffer | number)[],
|
5019 | msToken: "IDLE",
|
5020 | ms: number | string,
|
5021 | countToken: "RETRYCOUNT",
|
5022 | count: number | string,
|
5023 | justid: "JUSTID",
|
5024 | callback: Callback<unknown[]>
|
5025 | ]): Result<unknown[], Context>;
|
5026 | xclaim(...args: [
|
5027 | key: RedisKey,
|
5028 | group: string | Buffer,
|
5029 | consumer: string | Buffer,
|
5030 | minIdleTime: string | Buffer | number,
|
5031 | ...ids: (string | Buffer | number)[],
|
5032 | msToken: "IDLE",
|
5033 | ms: number | string,
|
5034 | countToken: "RETRYCOUNT",
|
5035 | count: number | string,
|
5036 | justid: "JUSTID"
|
5037 | ]): Result<unknown[], Context>;
|
5038 | xclaim(...args: [
|
5039 | key: RedisKey,
|
5040 | group: string | Buffer,
|
5041 | consumer: string | Buffer,
|
5042 | minIdleTime: string | Buffer | number,
|
5043 | ...ids: (string | Buffer | number)[],
|
5044 | msToken: "IDLE",
|
5045 | ms: number | string,
|
5046 | countToken: "RETRYCOUNT",
|
5047 | count: number | string,
|
5048 | force: "FORCE",
|
5049 | callback: Callback<unknown[]>
|
5050 | ]): Result<unknown[], Context>;
|
5051 | xclaim(...args: [
|
5052 | key: RedisKey,
|
5053 | group: string | Buffer,
|
5054 | consumer: string | Buffer,
|
5055 | minIdleTime: string | Buffer | number,
|
5056 | ...ids: (string | Buffer | number)[],
|
5057 | msToken: "IDLE",
|
5058 | ms: number | string,
|
5059 | countToken: "RETRYCOUNT",
|
5060 | count: number | string,
|
5061 | force: "FORCE"
|
5062 | ]): Result<unknown[], Context>;
|
5063 | xclaim(...args: [
|
5064 | key: RedisKey,
|
5065 | group: string | Buffer,
|
5066 | consumer: string | Buffer,
|
5067 | minIdleTime: string | Buffer | number,
|
5068 | ...ids: (string | Buffer | number)[],
|
5069 | msToken: "IDLE",
|
5070 | ms: number | string,
|
5071 | countToken: "RETRYCOUNT",
|
5072 | count: number | string,
|
5073 | force: "FORCE",
|
5074 | justid: "JUSTID",
|
5075 | callback: Callback<unknown[]>
|
5076 | ]): Result<unknown[], Context>;
|
5077 | xclaim(...args: [
|
5078 | key: RedisKey,
|
5079 | group: string | Buffer,
|
5080 | consumer: string | Buffer,
|
5081 | minIdleTime: string | Buffer | number,
|
5082 | ...ids: (string | Buffer | number)[],
|
5083 | msToken: "IDLE",
|
5084 | ms: number | string,
|
5085 | countToken: "RETRYCOUNT",
|
5086 | count: number | string,
|
5087 | force: "FORCE",
|
5088 | justid: "JUSTID"
|
5089 | ]): Result<unknown[], Context>;
|
5090 | xclaim(...args: [
|
5091 | key: RedisKey,
|
5092 | group: string | Buffer,
|
5093 | consumer: string | Buffer,
|
5094 | minIdleTime: string | Buffer | number,
|
5095 | ...ids: (string | Buffer | number)[],
|
5096 | msToken: "IDLE",
|
5097 | ms: number | string,
|
5098 | unixTimeMillisecondsToken: "TIME",
|
5099 | unixTimeMilliseconds: number | string,
|
5100 | callback: Callback<unknown[]>
|
5101 | ]): Result<unknown[], Context>;
|
5102 | xclaim(...args: [
|
5103 | key: RedisKey,
|
5104 | group: string | Buffer,
|
5105 | consumer: string | Buffer,
|
5106 | minIdleTime: string | Buffer | number,
|
5107 | ...ids: (string | Buffer | number)[],
|
5108 | msToken: "IDLE",
|
5109 | ms: number | string,
|
5110 | unixTimeMillisecondsToken: "TIME",
|
5111 | unixTimeMilliseconds: number | string
|
5112 | ]): Result<unknown[], Context>;
|
5113 | xclaim(...args: [
|
5114 | key: RedisKey,
|
5115 | group: string | Buffer,
|
5116 | consumer: string | Buffer,
|
5117 | minIdleTime: string | Buffer | number,
|
5118 | ...ids: (string | Buffer | number)[],
|
5119 | msToken: "IDLE",
|
5120 | ms: number | string,
|
5121 | unixTimeMillisecondsToken: "TIME",
|
5122 | unixTimeMilliseconds: number | string,
|
5123 | justid: "JUSTID",
|
5124 | callback: Callback<unknown[]>
|
5125 | ]): Result<unknown[], Context>;
|
5126 | xclaim(...args: [
|
5127 | key: RedisKey,
|
5128 | group: string | Buffer,
|
5129 | consumer: string | Buffer,
|
5130 | minIdleTime: string | Buffer | number,
|
5131 | ...ids: (string | Buffer | number)[],
|
5132 | msToken: "IDLE",
|
5133 | ms: number | string,
|
5134 | unixTimeMillisecondsToken: "TIME",
|
5135 | unixTimeMilliseconds: number | string,
|
5136 | justid: "JUSTID"
|
5137 | ]): Result<unknown[], Context>;
|
5138 | xclaim(...args: [
|
5139 | key: RedisKey,
|
5140 | group: string | Buffer,
|
5141 | consumer: string | Buffer,
|
5142 | minIdleTime: string | Buffer | number,
|
5143 | ...ids: (string | Buffer | number)[],
|
5144 | msToken: "IDLE",
|
5145 | ms: number | string,
|
5146 | unixTimeMillisecondsToken: "TIME",
|
5147 | unixTimeMilliseconds: number | string,
|
5148 | force: "FORCE",
|
5149 | callback: Callback<unknown[]>
|
5150 | ]): Result<unknown[], Context>;
|
5151 | xclaim(...args: [
|
5152 | key: RedisKey,
|
5153 | group: string | Buffer,
|
5154 | consumer: string | Buffer,
|
5155 | minIdleTime: string | Buffer | number,
|
5156 | ...ids: (string | Buffer | number)[],
|
5157 | msToken: "IDLE",
|
5158 | ms: number | string,
|
5159 | unixTimeMillisecondsToken: "TIME",
|
5160 | unixTimeMilliseconds: number | string,
|
5161 | force: "FORCE"
|
5162 | ]): Result<unknown[], Context>;
|
5163 | xclaim(...args: [
|
5164 | key: RedisKey,
|
5165 | group: string | Buffer,
|
5166 | consumer: string | Buffer,
|
5167 | minIdleTime: string | Buffer | number,
|
5168 | ...ids: (string | Buffer | number)[],
|
5169 | msToken: "IDLE",
|
5170 | ms: number | string,
|
5171 | unixTimeMillisecondsToken: "TIME",
|
5172 | unixTimeMilliseconds: number | string,
|
5173 | force: "FORCE",
|
5174 | justid: "JUSTID",
|
5175 | callback: Callback<unknown[]>
|
5176 | ]): Result<unknown[], Context>;
|
5177 | xclaim(...args: [
|
5178 | key: RedisKey,
|
5179 | group: string | Buffer,
|
5180 | consumer: string | Buffer,
|
5181 | minIdleTime: string | Buffer | number,
|
5182 | ...ids: (string | Buffer | number)[],
|
5183 | msToken: "IDLE",
|
5184 | ms: number | string,
|
5185 | unixTimeMillisecondsToken: "TIME",
|
5186 | unixTimeMilliseconds: number | string,
|
5187 | force: "FORCE",
|
5188 | justid: "JUSTID"
|
5189 | ]): Result<unknown[], Context>;
|
5190 | xclaim(...args: [
|
5191 | key: RedisKey,
|
5192 | group: string | Buffer,
|
5193 | consumer: string | Buffer,
|
5194 | minIdleTime: string | Buffer | number,
|
5195 | ...ids: (string | Buffer | number)[],
|
5196 | msToken: "IDLE",
|
5197 | ms: number | string,
|
5198 | unixTimeMillisecondsToken: "TIME",
|
5199 | unixTimeMilliseconds: number | string,
|
5200 | countToken: "RETRYCOUNT",
|
5201 | count: number | string,
|
5202 | callback: Callback<unknown[]>
|
5203 | ]): Result<unknown[], Context>;
|
5204 | xclaim(...args: [
|
5205 | key: RedisKey,
|
5206 | group: string | Buffer,
|
5207 | consumer: string | Buffer,
|
5208 | minIdleTime: string | Buffer | number,
|
5209 | ...ids: (string | Buffer | number)[],
|
5210 | msToken: "IDLE",
|
5211 | ms: number | string,
|
5212 | unixTimeMillisecondsToken: "TIME",
|
5213 | unixTimeMilliseconds: number | string,
|
5214 | countToken: "RETRYCOUNT",
|
5215 | count: number | string
|
5216 | ]): Result<unknown[], Context>;
|
5217 | xclaim(...args: [
|
5218 | key: RedisKey,
|
5219 | group: string | Buffer,
|
5220 | consumer: string | Buffer,
|
5221 | minIdleTime: string | Buffer | number,
|
5222 | ...ids: (string | Buffer | number)[],
|
5223 | msToken: "IDLE",
|
5224 | ms: number | string,
|
5225 | unixTimeMillisecondsToken: "TIME",
|
5226 | unixTimeMilliseconds: number | string,
|
5227 | countToken: "RETRYCOUNT",
|
5228 | count: number | string,
|
5229 | justid: "JUSTID",
|
5230 | callback: Callback<unknown[]>
|
5231 | ]): Result<unknown[], Context>;
|
5232 | xclaim(...args: [
|
5233 | key: RedisKey,
|
5234 | group: string | Buffer,
|
5235 | consumer: string | Buffer,
|
5236 | minIdleTime: string | Buffer | number,
|
5237 | ...ids: (string | Buffer | number)[],
|
5238 | msToken: "IDLE",
|
5239 | ms: number | string,
|
5240 | unixTimeMillisecondsToken: "TIME",
|
5241 | unixTimeMilliseconds: number | string,
|
5242 | countToken: "RETRYCOUNT",
|
5243 | count: number | string,
|
5244 | justid: "JUSTID"
|
5245 | ]): Result<unknown[], Context>;
|
5246 | xclaim(...args: [
|
5247 | key: RedisKey,
|
5248 | group: string | Buffer,
|
5249 | consumer: string | Buffer,
|
5250 | minIdleTime: string | Buffer | number,
|
5251 | ...ids: (string | Buffer | number)[],
|
5252 | msToken: "IDLE",
|
5253 | ms: number | string,
|
5254 | unixTimeMillisecondsToken: "TIME",
|
5255 | unixTimeMilliseconds: number | string,
|
5256 | countToken: "RETRYCOUNT",
|
5257 | count: number | string,
|
5258 | force: "FORCE",
|
5259 | callback: Callback<unknown[]>
|
5260 | ]): Result<unknown[], Context>;
|
5261 | xclaim(...args: [
|
5262 | key: RedisKey,
|
5263 | group: string | Buffer,
|
5264 | consumer: string | Buffer,
|
5265 | minIdleTime: string | Buffer | number,
|
5266 | ...ids: (string | Buffer | number)[],
|
5267 | msToken: "IDLE",
|
5268 | ms: number | string,
|
5269 | unixTimeMillisecondsToken: "TIME",
|
5270 | unixTimeMilliseconds: number | string,
|
5271 | countToken: "RETRYCOUNT",
|
5272 | count: number | string,
|
5273 | force: "FORCE"
|
5274 | ]): Result<unknown[], Context>;
|
5275 | xclaim(...args: [
|
5276 | key: RedisKey,
|
5277 | group: string | Buffer,
|
5278 | consumer: string | Buffer,
|
5279 | minIdleTime: string | Buffer | number,
|
5280 | ...ids: (string | Buffer | number)[],
|
5281 | msToken: "IDLE",
|
5282 | ms: number | string,
|
5283 | unixTimeMillisecondsToken: "TIME",
|
5284 | unixTimeMilliseconds: number | string,
|
5285 | countToken: "RETRYCOUNT",
|
5286 | count: number | string,
|
5287 | force: "FORCE",
|
5288 | justid: "JUSTID",
|
5289 | callback: Callback<unknown[]>
|
5290 | ]): Result<unknown[], Context>;
|
5291 | xclaim(...args: [
|
5292 | key: RedisKey,
|
5293 | group: string | Buffer,
|
5294 | consumer: string | Buffer,
|
5295 | minIdleTime: string | Buffer | number,
|
5296 | ...ids: (string | Buffer | number)[],
|
5297 | msToken: "IDLE",
|
5298 | ms: number | string,
|
5299 | unixTimeMillisecondsToken: "TIME",
|
5300 | unixTimeMilliseconds: number | string,
|
5301 | countToken: "RETRYCOUNT",
|
5302 | count: number | string,
|
5303 | force: "FORCE",
|
5304 | justid: "JUSTID"
|
5305 | ]): Result<unknown[], Context>;
|
5306 | /**
|
5307 | * Removes the specified entries from the stream. Returns the number of items actually deleted, that may be different from the number of IDs passed in case certain IDs do not exist.
|
5308 | * - _group_: stream
|
5309 | * - _complexity_: O(1) for each single item to delete in the stream, regardless of the stream size.
|
5310 | * - _since_: 5.0.0
|
5311 | */
|
5312 | xdel(...args: [
|
5313 | key: RedisKey,
|
5314 | ...ids: (string | Buffer | number)[],
|
5315 | callback: Callback<number>
|
5316 | ]): Result<number, Context>;
|
5317 | xdel(...args: [key: RedisKey, ...ids: (string | Buffer | number)[]]): Result<number, Context>;
|
5318 | /**
|
5319 | * Create a consumer group.
|
5320 | * - _group_: stream
|
5321 | * - _complexity_: O(1)
|
5322 | * - _since_: 5.0.0
|
5323 | */
|
5324 | xgroup(subcommand: "CREATE", key: RedisKey, groupname: string | Buffer, id: string | Buffer | number, callback?: Callback<unknown>): Result<unknown, Context>;
|
5325 | xgroup(subcommand: "CREATE", key: RedisKey, groupname: string | Buffer, id: string | Buffer | number, entriesReadToken: "ENTRIESREAD", entriesRead: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
5326 | xgroup(subcommand: "CREATE", key: RedisKey, groupname: string | Buffer, id: string | Buffer | number, mkstream: "MKSTREAM", callback?: Callback<unknown>): Result<unknown, Context>;
|
5327 | xgroup(subcommand: "CREATE", key: RedisKey, groupname: string | Buffer, id: string | Buffer | number, mkstream: "MKSTREAM", entriesReadToken: "ENTRIESREAD", entriesRead: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
5328 | xgroup(subcommand: "CREATE", key: RedisKey, groupname: string | Buffer, newId: "$", callback?: Callback<unknown>): Result<unknown, Context>;
|
5329 | xgroup(subcommand: "CREATE", key: RedisKey, groupname: string | Buffer, newId: "$", entriesReadToken: "ENTRIESREAD", entriesRead: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
5330 | xgroup(subcommand: "CREATE", key: RedisKey, groupname: string | Buffer, newId: "$", mkstream: "MKSTREAM", callback?: Callback<unknown>): Result<unknown, Context>;
|
5331 | xgroup(subcommand: "CREATE", key: RedisKey, groupname: string | Buffer, newId: "$", mkstream: "MKSTREAM", entriesReadToken: "ENTRIESREAD", entriesRead: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
5332 | /**
|
5333 | * Create a consumer in a consumer group.
|
5334 | * - _group_: stream
|
5335 | * - _complexity_: O(1)
|
5336 | * - _since_: 6.2.0
|
5337 | */
|
5338 | xgroup(subcommand: "CREATECONSUMER", key: RedisKey, groupname: string | Buffer, consumername: string | Buffer, callback?: Callback<unknown>): Result<unknown, Context>;
|
5339 | /**
|
5340 | * Delete a consumer from a consumer group.
|
5341 | * - _group_: stream
|
5342 | * - _complexity_: O(1)
|
5343 | * - _since_: 5.0.0
|
5344 | */
|
5345 | xgroup(subcommand: "DELCONSUMER", key: RedisKey, groupname: string | Buffer, consumername: string | Buffer, callback?: Callback<unknown>): Result<unknown, Context>;
|
5346 | /**
|
5347 | * Destroy a consumer group.
|
5348 | * - _group_: stream
|
5349 | * - _complexity_: O(N) where N is the number of entries in the group's pending entries list (PEL).
|
5350 | * - _since_: 5.0.0
|
5351 | */
|
5352 | xgroup(subcommand: "DESTROY", key: RedisKey, groupname: string | Buffer, callback?: Callback<unknown>): Result<unknown, Context>;
|
5353 | /**
|
5354 | * Show helpful text about the different subcommands
|
5355 | * - _group_: stream
|
5356 | * - _complexity_: O(1)
|
5357 | * - _since_: 5.0.0
|
5358 | */
|
5359 | xgroup(subcommand: "HELP", callback?: Callback<unknown>): Result<unknown, Context>;
|
5360 | /**
|
5361 | * Set a consumer group to an arbitrary last delivered ID value.
|
5362 | * - _group_: stream
|
5363 | * - _complexity_: O(1)
|
5364 | * - _since_: 5.0.0
|
5365 | */
|
5366 | xgroup(subcommand: "SETID", key: RedisKey, groupname: string | Buffer, id: string | Buffer | number, callback?: Callback<unknown>): Result<unknown, Context>;
|
5367 | xgroup(subcommand: "SETID", key: RedisKey, groupname: string | Buffer, id: string | Buffer | number, entriesReadToken: "ENTRIESREAD", entriesRead: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
5368 | xgroup(subcommand: "SETID", key: RedisKey, groupname: string | Buffer, newId: "$", callback?: Callback<unknown>): Result<unknown, Context>;
|
5369 | xgroup(subcommand: "SETID", key: RedisKey, groupname: string | Buffer, newId: "$", entriesReadToken: "ENTRIESREAD", entriesRead: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
5370 | /**
|
5371 | * List the consumers in a consumer group
|
5372 | * - _group_: stream
|
5373 | * - _complexity_: O(1)
|
5374 | * - _since_: 5.0.0
|
5375 | */
|
5376 | xinfo(subcommand: "CONSUMERS", key: RedisKey, groupname: string | Buffer, callback?: Callback<unknown>): Result<unknown, Context>;
|
5377 | /**
|
5378 | * List the consumer groups of a stream
|
5379 | * - _group_: stream
|
5380 | * - _complexity_: O(1)
|
5381 | * - _since_: 5.0.0
|
5382 | */
|
5383 | xinfo(subcommand: "GROUPS", key: RedisKey, callback?: Callback<unknown>): Result<unknown, Context>;
|
5384 | /**
|
5385 | * Show helpful text about the different subcommands
|
5386 | * - _group_: stream
|
5387 | * - _complexity_: O(1)
|
5388 | * - _since_: 5.0.0
|
5389 | */
|
5390 | xinfo(subcommand: "HELP", callback?: Callback<unknown>): Result<unknown, Context>;
|
5391 | /**
|
5392 | * Get information about a stream
|
5393 | * - _group_: stream
|
5394 | * - _complexity_: O(1)
|
5395 | * - _since_: 5.0.0
|
5396 | */
|
5397 | xinfo(subcommand: "STREAM", key: RedisKey, callback?: Callback<unknown>): Result<unknown, Context>;
|
5398 | xinfo(subcommand: "STREAM", key: RedisKey, fullToken: "FULL", callback?: Callback<unknown>): Result<unknown, Context>;
|
5399 | xinfo(subcommand: "STREAM", key: RedisKey, fullToken: "FULL", countToken: "COUNT", count: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
5400 | /**
|
5401 | * Return the number of entries in a stream
|
5402 | * - _group_: stream
|
5403 | * - _complexity_: O(1)
|
5404 | * - _since_: 5.0.0
|
5405 | */
|
5406 | xlen(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
5407 | /**
|
5408 | * Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged.
|
5409 | * - _group_: stream
|
5410 | * - _complexity_: O(N) with N being the number of elements returned, so asking for a small fixed number of entries per call is O(1). O(M), where M is the total number of entries scanned when used with the IDLE filter. When the command returns just the summary and the list of consumers is small, it runs in O(1) time; otherwise, an additional O(N) time for iterating every consumer.
|
5411 | * - _since_: 5.0.0
|
5412 | */
|
5413 | xpending(key: RedisKey, group: string | Buffer, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
5414 | xpending(key: RedisKey, group: string | Buffer, start: string | Buffer | number, end: string | Buffer | number, count: number | string, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
5415 | xpending(key: RedisKey, group: string | Buffer, start: string | Buffer | number, end: string | Buffer | number, count: number | string, consumer: string | Buffer, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
5416 | xpending(key: RedisKey, group: string | Buffer, minIdleTimeToken: "IDLE", minIdleTime: number | string, start: string | Buffer | number, end: string | Buffer | number, count: number | string, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
5417 | xpending(key: RedisKey, group: string | Buffer, minIdleTimeToken: "IDLE", minIdleTime: number | string, start: string | Buffer | number, end: string | Buffer | number, count: number | string, consumer: string | Buffer, callback?: Callback<unknown[]>): Result<unknown[], Context>;
|
5418 | /**
|
5419 | * Return a range of elements in a stream, with IDs matching the specified IDs interval
|
5420 | * - _group_: stream
|
5421 | * - _complexity_: O(N) with N being the number of elements being returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1).
|
5422 | * - _since_: 5.0.0
|
5423 | */
|
5424 | xrange(key: RedisKey, start: string | Buffer | number, end: string | Buffer | number, callback?: Callback<[id: string, fields: string[]][]>): Result<[id: string, fields: string[]][], Context>;
|
5425 | xrangeBuffer(key: RedisKey, start: string | Buffer | number, end: string | Buffer | number, callback?: Callback<[id: Buffer, fields: Buffer[]][]>): Result<[id: Buffer, fields: Buffer[]][], Context>;
|
5426 | xrange(key: RedisKey, start: string | Buffer | number, end: string | Buffer | number, countToken: "COUNT", count: number | string, callback?: Callback<[id: string, fields: string[]][]>): Result<[id: string, fields: string[]][], Context>;
|
5427 | xrangeBuffer(key: RedisKey, start: string | Buffer | number, end: string | Buffer | number, countToken: "COUNT", count: number | string, callback?: Callback<[id: Buffer, fields: Buffer[]][]>): Result<[id: Buffer, fields: Buffer[]][], Context>;
|
5428 | /**
|
5429 | * Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block.
|
5430 | * - _group_: stream
|
5431 | * - _complexity_: For each stream mentioned: O(N) with N being the number of elements being returned, it means that XREAD-ing with a fixed COUNT is O(1). Note that when the BLOCK option is used, XADD will pay O(M) time in order to serve the M clients blocked on the stream getting new data.
|
5432 | * - _since_: 5.0.0
|
5433 | */
|
5434 | xread(...args: [
|
5435 | streamsToken: "STREAMS",
|
5436 | ...args: RedisValue[],
|
5437 | callback: Callback<[
|
5438 | key: string,
|
5439 | items: [id: string, fields: string[]][]
|
5440 | ][] | null>
|
5441 | ]): Result<[
|
5442 | key: string,
|
5443 | items: [id: string, fields: string[]][]
|
5444 | ][] | null, Context>;
|
5445 | xreadBuffer(...args: [
|
5446 | streamsToken: "STREAMS",
|
5447 | ...args: RedisValue[],
|
5448 | callback: Callback<[
|
5449 | key: Buffer,
|
5450 | items: [id: Buffer, fields: Buffer[]][]
|
5451 | ][] | null>
|
5452 | ]): Result<[
|
5453 | key: Buffer,
|
5454 | items: [id: Buffer, fields: Buffer[]][]
|
5455 | ][] | null, Context>;
|
5456 | xread(...args: [streamsToken: "STREAMS", ...args: RedisValue[]]): Result<[
|
5457 | key: string,
|
5458 | items: [id: string, fields: string[]][]
|
5459 | ][] | null, Context>;
|
5460 | xreadBuffer(...args: [streamsToken: "STREAMS", ...args: RedisValue[]]): Result<[
|
5461 | key: Buffer,
|
5462 | items: [id: Buffer, fields: Buffer[]][]
|
5463 | ][] | null, Context>;
|
5464 | xread(...args: [
|
5465 | millisecondsToken: "BLOCK",
|
5466 | milliseconds: number | string,
|
5467 | streamsToken: "STREAMS",
|
5468 | ...args: RedisValue[],
|
5469 | callback: Callback<[
|
5470 | key: string,
|
5471 | items: [id: string, fields: string[]][]
|
5472 | ][] | null>
|
5473 | ]): Result<[
|
5474 | key: string,
|
5475 | items: [id: string, fields: string[]][]
|
5476 | ][] | null, Context>;
|
5477 | xreadBuffer(...args: [
|
5478 | millisecondsToken: "BLOCK",
|
5479 | milliseconds: number | string,
|
5480 | streamsToken: "STREAMS",
|
5481 | ...args: RedisValue[],
|
5482 | callback: Callback<[
|
5483 | key: Buffer,
|
5484 | items: [id: Buffer, fields: Buffer[]][]
|
5485 | ][] | null>
|
5486 | ]): Result<[
|
5487 | key: Buffer,
|
5488 | items: [id: Buffer, fields: Buffer[]][]
|
5489 | ][] | null, Context>;
|
5490 | xread(...args: [
|
5491 | millisecondsToken: "BLOCK",
|
5492 | milliseconds: number | string,
|
5493 | streamsToken: "STREAMS",
|
5494 | ...args: RedisValue[]
|
5495 | ]): Result<[
|
5496 | key: string,
|
5497 | items: [id: string, fields: string[]][]
|
5498 | ][] | null, Context>;
|
5499 | xreadBuffer(...args: [
|
5500 | millisecondsToken: "BLOCK",
|
5501 | milliseconds: number | string,
|
5502 | streamsToken: "STREAMS",
|
5503 | ...args: RedisValue[]
|
5504 | ]): Result<[
|
5505 | key: Buffer,
|
5506 | items: [id: Buffer, fields: Buffer[]][]
|
5507 | ][] | null, Context>;
|
5508 | xread(...args: [
|
5509 | countToken: "COUNT",
|
5510 | count: number | string,
|
5511 | streamsToken: "STREAMS",
|
5512 | ...args: RedisValue[],
|
5513 | callback: Callback<[
|
5514 | key: string,
|
5515 | items: [id: string, fields: string[]][]
|
5516 | ][] | null>
|
5517 | ]): Result<[
|
5518 | key: string,
|
5519 | items: [id: string, fields: string[]][]
|
5520 | ][] | null, Context>;
|
5521 | xreadBuffer(...args: [
|
5522 | countToken: "COUNT",
|
5523 | count: number | string,
|
5524 | streamsToken: "STREAMS",
|
5525 | ...args: RedisValue[],
|
5526 | callback: Callback<[
|
5527 | key: Buffer,
|
5528 | items: [id: Buffer, fields: Buffer[]][]
|
5529 | ][] | null>
|
5530 | ]): Result<[
|
5531 | key: Buffer,
|
5532 | items: [id: Buffer, fields: Buffer[]][]
|
5533 | ][] | null, Context>;
|
5534 | xread(...args: [
|
5535 | countToken: "COUNT",
|
5536 | count: number | string,
|
5537 | streamsToken: "STREAMS",
|
5538 | ...args: RedisValue[]
|
5539 | ]): Result<[
|
5540 | key: string,
|
5541 | items: [id: string, fields: string[]][]
|
5542 | ][] | null, Context>;
|
5543 | xreadBuffer(...args: [
|
5544 | countToken: "COUNT",
|
5545 | count: number | string,
|
5546 | streamsToken: "STREAMS",
|
5547 | ...args: RedisValue[]
|
5548 | ]): Result<[
|
5549 | key: Buffer,
|
5550 | items: [id: Buffer, fields: Buffer[]][]
|
5551 | ][] | null, Context>;
|
5552 | xread(...args: [
|
5553 | countToken: "COUNT",
|
5554 | count: number | string,
|
5555 | millisecondsToken: "BLOCK",
|
5556 | milliseconds: number | string,
|
5557 | streamsToken: "STREAMS",
|
5558 | ...args: RedisValue[],
|
5559 | callback: Callback<[
|
5560 | key: string,
|
5561 | items: [id: string, fields: string[]][]
|
5562 | ][] | null>
|
5563 | ]): Result<[
|
5564 | key: string,
|
5565 | items: [id: string, fields: string[]][]
|
5566 | ][] | null, Context>;
|
5567 | xreadBuffer(...args: [
|
5568 | countToken: "COUNT",
|
5569 | count: number | string,
|
5570 | millisecondsToken: "BLOCK",
|
5571 | milliseconds: number | string,
|
5572 | streamsToken: "STREAMS",
|
5573 | ...args: RedisValue[],
|
5574 | callback: Callback<[
|
5575 | key: Buffer,
|
5576 | items: [id: Buffer, fields: Buffer[]][]
|
5577 | ][] | null>
|
5578 | ]): Result<[
|
5579 | key: Buffer,
|
5580 | items: [id: Buffer, fields: Buffer[]][]
|
5581 | ][] | null, Context>;
|
5582 | xread(...args: [
|
5583 | countToken: "COUNT",
|
5584 | count: number | string,
|
5585 | millisecondsToken: "BLOCK",
|
5586 | milliseconds: number | string,
|
5587 | streamsToken: "STREAMS",
|
5588 | ...args: RedisValue[]
|
5589 | ]): Result<[
|
5590 | key: string,
|
5591 | items: [id: string, fields: string[]][]
|
5592 | ][] | null, Context>;
|
5593 | xreadBuffer(...args: [
|
5594 | countToken: "COUNT",
|
5595 | count: number | string,
|
5596 | millisecondsToken: "BLOCK",
|
5597 | milliseconds: number | string,
|
5598 | streamsToken: "STREAMS",
|
5599 | ...args: RedisValue[]
|
5600 | ]): Result<[
|
5601 | key: Buffer,
|
5602 | items: [id: Buffer, fields: Buffer[]][]
|
5603 | ][] | null, Context>;
|
5604 | /**
|
5605 | * Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block.
|
5606 | * - _group_: stream
|
5607 | * - _complexity_: For each stream mentioned: O(M) with M being the number of elements returned. If M is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1). On the other side when XREADGROUP blocks, XADD will pay the O(N) time in order to serve the N clients blocked on the stream getting new data.
|
5608 | * - _since_: 5.0.0
|
5609 | */
|
5610 | xreadgroup(...args: [
|
5611 | groupConsumerToken: "GROUP",
|
5612 | group: string | Buffer,
|
5613 | consumer: string | Buffer,
|
5614 | streamsToken: "STREAMS",
|
5615 | ...args: RedisValue[],
|
5616 | callback: Callback<unknown[]>
|
5617 | ]): Result<unknown[], Context>;
|
5618 | xreadgroup(...args: [
|
5619 | groupConsumerToken: "GROUP",
|
5620 | group: string | Buffer,
|
5621 | consumer: string | Buffer,
|
5622 | streamsToken: "STREAMS",
|
5623 | ...args: RedisValue[]
|
5624 | ]): Result<unknown[], Context>;
|
5625 | xreadgroup(...args: [
|
5626 | groupConsumerToken: "GROUP",
|
5627 | group: string | Buffer,
|
5628 | consumer: string | Buffer,
|
5629 | noack: "NOACK",
|
5630 | streamsToken: "STREAMS",
|
5631 | ...args: RedisValue[],
|
5632 | callback: Callback<unknown[]>
|
5633 | ]): Result<unknown[], Context>;
|
5634 | xreadgroup(...args: [
|
5635 | groupConsumerToken: "GROUP",
|
5636 | group: string | Buffer,
|
5637 | consumer: string | Buffer,
|
5638 | noack: "NOACK",
|
5639 | streamsToken: "STREAMS",
|
5640 | ...args: RedisValue[]
|
5641 | ]): Result<unknown[], Context>;
|
5642 | xreadgroup(...args: [
|
5643 | groupConsumerToken: "GROUP",
|
5644 | group: string | Buffer,
|
5645 | consumer: string | Buffer,
|
5646 | millisecondsToken: "BLOCK",
|
5647 | milliseconds: number | string,
|
5648 | streamsToken: "STREAMS",
|
5649 | ...args: RedisValue[],
|
5650 | callback: Callback<unknown[]>
|
5651 | ]): Result<unknown[], Context>;
|
5652 | xreadgroup(...args: [
|
5653 | groupConsumerToken: "GROUP",
|
5654 | group: string | Buffer,
|
5655 | consumer: string | Buffer,
|
5656 | millisecondsToken: "BLOCK",
|
5657 | milliseconds: number | string,
|
5658 | streamsToken: "STREAMS",
|
5659 | ...args: RedisValue[]
|
5660 | ]): Result<unknown[], Context>;
|
5661 | xreadgroup(...args: [
|
5662 | groupConsumerToken: "GROUP",
|
5663 | group: string | Buffer,
|
5664 | consumer: string | Buffer,
|
5665 | millisecondsToken: "BLOCK",
|
5666 | milliseconds: number | string,
|
5667 | noack: "NOACK",
|
5668 | streamsToken: "STREAMS",
|
5669 | ...args: RedisValue[],
|
5670 | callback: Callback<unknown[]>
|
5671 | ]): Result<unknown[], Context>;
|
5672 | xreadgroup(...args: [
|
5673 | groupConsumerToken: "GROUP",
|
5674 | group: string | Buffer,
|
5675 | consumer: string | Buffer,
|
5676 | millisecondsToken: "BLOCK",
|
5677 | milliseconds: number | string,
|
5678 | noack: "NOACK",
|
5679 | streamsToken: "STREAMS",
|
5680 | ...args: RedisValue[]
|
5681 | ]): Result<unknown[], Context>;
|
5682 | xreadgroup(...args: [
|
5683 | groupConsumerToken: "GROUP",
|
5684 | group: string | Buffer,
|
5685 | consumer: string | Buffer,
|
5686 | countToken: "COUNT",
|
5687 | count: number | string,
|
5688 | streamsToken: "STREAMS",
|
5689 | ...args: RedisValue[],
|
5690 | callback: Callback<unknown[]>
|
5691 | ]): Result<unknown[], Context>;
|
5692 | xreadgroup(...args: [
|
5693 | groupConsumerToken: "GROUP",
|
5694 | group: string | Buffer,
|
5695 | consumer: string | Buffer,
|
5696 | countToken: "COUNT",
|
5697 | count: number | string,
|
5698 | streamsToken: "STREAMS",
|
5699 | ...args: RedisValue[]
|
5700 | ]): Result<unknown[], Context>;
|
5701 | xreadgroup(...args: [
|
5702 | groupConsumerToken: "GROUP",
|
5703 | group: string | Buffer,
|
5704 | consumer: string | Buffer,
|
5705 | countToken: "COUNT",
|
5706 | count: number | string,
|
5707 | noack: "NOACK",
|
5708 | streamsToken: "STREAMS",
|
5709 | ...args: RedisValue[],
|
5710 | callback: Callback<unknown[]>
|
5711 | ]): Result<unknown[], Context>;
|
5712 | xreadgroup(...args: [
|
5713 | groupConsumerToken: "GROUP",
|
5714 | group: string | Buffer,
|
5715 | consumer: string | Buffer,
|
5716 | countToken: "COUNT",
|
5717 | count: number | string,
|
5718 | noack: "NOACK",
|
5719 | streamsToken: "STREAMS",
|
5720 | ...args: RedisValue[]
|
5721 | ]): Result<unknown[], Context>;
|
5722 | xreadgroup(...args: [
|
5723 | groupConsumerToken: "GROUP",
|
5724 | group: string | Buffer,
|
5725 | consumer: string | Buffer,
|
5726 | countToken: "COUNT",
|
5727 | count: number | string,
|
5728 | millisecondsToken: "BLOCK",
|
5729 | milliseconds: number | string,
|
5730 | streamsToken: "STREAMS",
|
5731 | ...args: RedisValue[],
|
5732 | callback: Callback<unknown[]>
|
5733 | ]): Result<unknown[], Context>;
|
5734 | xreadgroup(...args: [
|
5735 | groupConsumerToken: "GROUP",
|
5736 | group: string | Buffer,
|
5737 | consumer: string | Buffer,
|
5738 | countToken: "COUNT",
|
5739 | count: number | string,
|
5740 | millisecondsToken: "BLOCK",
|
5741 | milliseconds: number | string,
|
5742 | streamsToken: "STREAMS",
|
5743 | ...args: RedisValue[]
|
5744 | ]): Result<unknown[], Context>;
|
5745 | xreadgroup(...args: [
|
5746 | groupConsumerToken: "GROUP",
|
5747 | group: string | Buffer,
|
5748 | consumer: string | Buffer,
|
5749 | countToken: "COUNT",
|
5750 | count: number | string,
|
5751 | millisecondsToken: "BLOCK",
|
5752 | milliseconds: number | string,
|
5753 | noack: "NOACK",
|
5754 | streamsToken: "STREAMS",
|
5755 | ...args: RedisValue[],
|
5756 | callback: Callback<unknown[]>
|
5757 | ]): Result<unknown[], Context>;
|
5758 | xreadgroup(...args: [
|
5759 | groupConsumerToken: "GROUP",
|
5760 | group: string | Buffer,
|
5761 | consumer: string | Buffer,
|
5762 | countToken: "COUNT",
|
5763 | count: number | string,
|
5764 | millisecondsToken: "BLOCK",
|
5765 | milliseconds: number | string,
|
5766 | noack: "NOACK",
|
5767 | streamsToken: "STREAMS",
|
5768 | ...args: RedisValue[]
|
5769 | ]): Result<unknown[], Context>;
|
5770 | /**
|
5771 | * Return a range of elements in a stream, with IDs matching the specified IDs interval, in reverse order (from greater to smaller IDs) compared to XRANGE
|
5772 | * - _group_: stream
|
5773 | * - _complexity_: O(N) with N being the number of elements returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1).
|
5774 | * - _since_: 5.0.0
|
5775 | */
|
5776 | xrevrange(key: RedisKey, end: string | Buffer | number, start: string | Buffer | number, callback?: Callback<[id: string, fields: string[]][]>): Result<[id: string, fields: string[]][], Context>;
|
5777 | xrevrangeBuffer(key: RedisKey, end: string | Buffer | number, start: string | Buffer | number, callback?: Callback<[id: Buffer, fields: Buffer[]][]>): Result<[id: Buffer, fields: Buffer[]][], Context>;
|
5778 | xrevrange(key: RedisKey, end: string | Buffer | number, start: string | Buffer | number, countToken: "COUNT", count: number | string, callback?: Callback<[id: string, fields: string[]][]>): Result<[id: string, fields: string[]][], Context>;
|
5779 | xrevrangeBuffer(key: RedisKey, end: string | Buffer | number, start: string | Buffer | number, countToken: "COUNT", count: number | string, callback?: Callback<[id: Buffer, fields: Buffer[]][]>): Result<[id: Buffer, fields: Buffer[]][], Context>;
|
5780 | /**
|
5781 | * An internal command for replicating stream values
|
5782 | * - _group_: stream
|
5783 | * - _complexity_: O(1)
|
5784 | * - _since_: 5.0.0
|
5785 | */
|
5786 | xsetid(key: RedisKey, lastId: string | Buffer | number, callback?: Callback<unknown>): Result<unknown, Context>;
|
5787 | xsetid(key: RedisKey, lastId: string | Buffer | number, maxDeletedEntryIdToken: "MAXDELETEDID", maxDeletedEntryId: string | Buffer | number, callback?: Callback<unknown>): Result<unknown, Context>;
|
5788 | xsetid(key: RedisKey, lastId: string | Buffer | number, entriesAddedToken: "ENTRIESADDED", entriesAdded: number | string, callback?: Callback<unknown>): Result<unknown, Context>;
|
5789 | xsetid(key: RedisKey, lastId: string | Buffer | number, entriesAddedToken: "ENTRIESADDED", entriesAdded: number | string, maxDeletedEntryIdToken: "MAXDELETEDID", maxDeletedEntryId: string | Buffer | number, callback?: Callback<unknown>): Result<unknown, Context>;
|
5790 | /**
|
5791 | * Trims the stream to (approximately if '~' is passed) a certain size
|
5792 | * - _group_: stream
|
5793 | * - _complexity_: O(N), with N being the number of evicted entries. Constant times are very small however, since entries are organized in macro nodes containing multiple entries that can be released with a single deallocation.
|
5794 | * - _since_: 5.0.0
|
5795 | */
|
5796 | xtrim(key: RedisKey, maxlen: "MAXLEN", threshold: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
5797 | xtrim(key: RedisKey, maxlen: "MAXLEN", threshold: string | Buffer | number, countToken: "LIMIT", count: number | string, callback?: Callback<number>): Result<number, Context>;
|
5798 | xtrim(key: RedisKey, maxlen: "MAXLEN", equal: "=", threshold: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
5799 | xtrim(key: RedisKey, maxlen: "MAXLEN", equal: "=", threshold: string | Buffer | number, countToken: "LIMIT", count: number | string, callback?: Callback<number>): Result<number, Context>;
|
5800 | xtrim(key: RedisKey, maxlen: "MAXLEN", approximately: "~", threshold: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
5801 | xtrim(key: RedisKey, maxlen: "MAXLEN", approximately: "~", threshold: string | Buffer | number, countToken: "LIMIT", count: number | string, callback?: Callback<number>): Result<number, Context>;
|
5802 | xtrim(key: RedisKey, minid: "MINID", threshold: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
5803 | xtrim(key: RedisKey, minid: "MINID", threshold: string | Buffer | number, countToken: "LIMIT", count: number | string, callback?: Callback<number>): Result<number, Context>;
|
5804 | xtrim(key: RedisKey, minid: "MINID", equal: "=", threshold: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
5805 | xtrim(key: RedisKey, minid: "MINID", equal: "=", threshold: string | Buffer | number, countToken: "LIMIT", count: number | string, callback?: Callback<number>): Result<number, Context>;
|
5806 | xtrim(key: RedisKey, minid: "MINID", approximately: "~", threshold: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
5807 | xtrim(key: RedisKey, minid: "MINID", approximately: "~", threshold: string | Buffer | number, countToken: "LIMIT", count: number | string, callback?: Callback<number>): Result<number, Context>;
|
5808 | /**
|
5809 | * Add one or more members to a sorted set, or update its score if it already exists
|
5810 | * - _group_: sorted-set
|
5811 | * - _complexity_: O(log(N)) for each item added, where N is the number of elements in the sorted set.
|
5812 | * - _since_: 1.2.0
|
5813 | */
|
5814 | zadd(...args: [
|
5815 | key: RedisKey,
|
5816 | ...scoreMembers: (string | Buffer | number)[],
|
5817 | callback: Callback<number>
|
5818 | ]): Result<number, Context>;
|
5819 | zadd(...args: [key: RedisKey, ...scoreMembers: (string | Buffer | number)[]]): Result<number, Context>;
|
5820 | zadd(...args: [
|
5821 | key: RedisKey,
|
5822 | incr: "INCR",
|
5823 | ...scoreMembers: (string | Buffer | number)[],
|
5824 | callback: Callback<string>
|
5825 | ]): Result<string, Context>;
|
5826 | zaddBuffer(...args: [
|
5827 | key: RedisKey,
|
5828 | incr: "INCR",
|
5829 | ...scoreMembers: (string | Buffer | number)[],
|
5830 | callback: Callback<Buffer>
|
5831 | ]): Result<Buffer, Context>;
|
5832 | zadd(...args: [
|
5833 | key: RedisKey,
|
5834 | incr: "INCR",
|
5835 | ...scoreMembers: (string | Buffer | number)[]
|
5836 | ]): Result<string, Context>;
|
5837 | zaddBuffer(...args: [
|
5838 | key: RedisKey,
|
5839 | incr: "INCR",
|
5840 | ...scoreMembers: (string | Buffer | number)[]
|
5841 | ]): Result<Buffer, Context>;
|
5842 | zadd(...args: [
|
5843 | key: RedisKey,
|
5844 | ch: "CH",
|
5845 | ...scoreMembers: (string | Buffer | number)[],
|
5846 | callback: Callback<number>
|
5847 | ]): Result<number, Context>;
|
5848 | zadd(...args: [
|
5849 | key: RedisKey,
|
5850 | ch: "CH",
|
5851 | ...scoreMembers: (string | Buffer | number)[]
|
5852 | ]): Result<number, Context>;
|
5853 | zadd(...args: [
|
5854 | key: RedisKey,
|
5855 | ch: "CH",
|
5856 | incr: "INCR",
|
5857 | ...scoreMembers: (string | Buffer | number)[],
|
5858 | callback: Callback<string>
|
5859 | ]): Result<string, Context>;
|
5860 | zaddBuffer(...args: [
|
5861 | key: RedisKey,
|
5862 | ch: "CH",
|
5863 | incr: "INCR",
|
5864 | ...scoreMembers: (string | Buffer | number)[],
|
5865 | callback: Callback<Buffer>
|
5866 | ]): Result<Buffer, Context>;
|
5867 | zadd(...args: [
|
5868 | key: RedisKey,
|
5869 | ch: "CH",
|
5870 | incr: "INCR",
|
5871 | ...scoreMembers: (string | Buffer | number)[]
|
5872 | ]): Result<string, Context>;
|
5873 | zaddBuffer(...args: [
|
5874 | key: RedisKey,
|
5875 | ch: "CH",
|
5876 | incr: "INCR",
|
5877 | ...scoreMembers: (string | Buffer | number)[]
|
5878 | ]): Result<Buffer, Context>;
|
5879 | zadd(...args: [
|
5880 | key: RedisKey,
|
5881 | gt: "GT",
|
5882 | ...scoreMembers: (string | Buffer | number)[],
|
5883 | callback: Callback<number>
|
5884 | ]): Result<number, Context>;
|
5885 | zadd(...args: [
|
5886 | key: RedisKey,
|
5887 | gt: "GT",
|
5888 | ...scoreMembers: (string | Buffer | number)[]
|
5889 | ]): Result<number, Context>;
|
5890 | zadd(...args: [
|
5891 | key: RedisKey,
|
5892 | gt: "GT",
|
5893 | incr: "INCR",
|
5894 | ...scoreMembers: (string | Buffer | number)[],
|
5895 | callback: Callback<string>
|
5896 | ]): Result<string, Context>;
|
5897 | zaddBuffer(...args: [
|
5898 | key: RedisKey,
|
5899 | gt: "GT",
|
5900 | incr: "INCR",
|
5901 | ...scoreMembers: (string | Buffer | number)[],
|
5902 | callback: Callback<Buffer>
|
5903 | ]): Result<Buffer, Context>;
|
5904 | zadd(...args: [
|
5905 | key: RedisKey,
|
5906 | gt: "GT",
|
5907 | incr: "INCR",
|
5908 | ...scoreMembers: (string | Buffer | number)[]
|
5909 | ]): Result<string, Context>;
|
5910 | zaddBuffer(...args: [
|
5911 | key: RedisKey,
|
5912 | gt: "GT",
|
5913 | incr: "INCR",
|
5914 | ...scoreMembers: (string | Buffer | number)[]
|
5915 | ]): Result<Buffer, Context>;
|
5916 | zadd(...args: [
|
5917 | key: RedisKey,
|
5918 | gt: "GT",
|
5919 | ch: "CH",
|
5920 | ...scoreMembers: (string | Buffer | number)[],
|
5921 | callback: Callback<number>
|
5922 | ]): Result<number, Context>;
|
5923 | zadd(...args: [
|
5924 | key: RedisKey,
|
5925 | gt: "GT",
|
5926 | ch: "CH",
|
5927 | ...scoreMembers: (string | Buffer | number)[]
|
5928 | ]): Result<number, Context>;
|
5929 | zadd(...args: [
|
5930 | key: RedisKey,
|
5931 | gt: "GT",
|
5932 | ch: "CH",
|
5933 | incr: "INCR",
|
5934 | ...scoreMembers: (string | Buffer | number)[],
|
5935 | callback: Callback<string>
|
5936 | ]): Result<string, Context>;
|
5937 | zaddBuffer(...args: [
|
5938 | key: RedisKey,
|
5939 | gt: "GT",
|
5940 | ch: "CH",
|
5941 | incr: "INCR",
|
5942 | ...scoreMembers: (string | Buffer | number)[],
|
5943 | callback: Callback<Buffer>
|
5944 | ]): Result<Buffer, Context>;
|
5945 | zadd(...args: [
|
5946 | key: RedisKey,
|
5947 | gt: "GT",
|
5948 | ch: "CH",
|
5949 | incr: "INCR",
|
5950 | ...scoreMembers: (string | Buffer | number)[]
|
5951 | ]): Result<string, Context>;
|
5952 | zaddBuffer(...args: [
|
5953 | key: RedisKey,
|
5954 | gt: "GT",
|
5955 | ch: "CH",
|
5956 | incr: "INCR",
|
5957 | ...scoreMembers: (string | Buffer | number)[]
|
5958 | ]): Result<Buffer, Context>;
|
5959 | zadd(...args: [
|
5960 | key: RedisKey,
|
5961 | lt: "LT",
|
5962 | ...scoreMembers: (string | Buffer | number)[],
|
5963 | callback: Callback<number>
|
5964 | ]): Result<number, Context>;
|
5965 | zadd(...args: [
|
5966 | key: RedisKey,
|
5967 | lt: "LT",
|
5968 | ...scoreMembers: (string | Buffer | number)[]
|
5969 | ]): Result<number, Context>;
|
5970 | zadd(...args: [
|
5971 | key: RedisKey,
|
5972 | lt: "LT",
|
5973 | incr: "INCR",
|
5974 | ...scoreMembers: (string | Buffer | number)[],
|
5975 | callback: Callback<string>
|
5976 | ]): Result<string, Context>;
|
5977 | zaddBuffer(...args: [
|
5978 | key: RedisKey,
|
5979 | lt: "LT",
|
5980 | incr: "INCR",
|
5981 | ...scoreMembers: (string | Buffer | number)[],
|
5982 | callback: Callback<Buffer>
|
5983 | ]): Result<Buffer, Context>;
|
5984 | zadd(...args: [
|
5985 | key: RedisKey,
|
5986 | lt: "LT",
|
5987 | incr: "INCR",
|
5988 | ...scoreMembers: (string | Buffer | number)[]
|
5989 | ]): Result<string, Context>;
|
5990 | zaddBuffer(...args: [
|
5991 | key: RedisKey,
|
5992 | lt: "LT",
|
5993 | incr: "INCR",
|
5994 | ...scoreMembers: (string | Buffer | number)[]
|
5995 | ]): Result<Buffer, Context>;
|
5996 | zadd(...args: [
|
5997 | key: RedisKey,
|
5998 | lt: "LT",
|
5999 | ch: "CH",
|
6000 | ...scoreMembers: (string | Buffer | number)[],
|
6001 | callback: Callback<number>
|
6002 | ]): Result<number, Context>;
|
6003 | zadd(...args: [
|
6004 | key: RedisKey,
|
6005 | lt: "LT",
|
6006 | ch: "CH",
|
6007 | ...scoreMembers: (string | Buffer | number)[]
|
6008 | ]): Result<number, Context>;
|
6009 | zadd(...args: [
|
6010 | key: RedisKey,
|
6011 | lt: "LT",
|
6012 | ch: "CH",
|
6013 | incr: "INCR",
|
6014 | ...scoreMembers: (string | Buffer | number)[],
|
6015 | callback: Callback<string>
|
6016 | ]): Result<string, Context>;
|
6017 | zaddBuffer(...args: [
|
6018 | key: RedisKey,
|
6019 | lt: "LT",
|
6020 | ch: "CH",
|
6021 | incr: "INCR",
|
6022 | ...scoreMembers: (string | Buffer | number)[],
|
6023 | callback: Callback<Buffer>
|
6024 | ]): Result<Buffer, Context>;
|
6025 | zadd(...args: [
|
6026 | key: RedisKey,
|
6027 | lt: "LT",
|
6028 | ch: "CH",
|
6029 | incr: "INCR",
|
6030 | ...scoreMembers: (string | Buffer | number)[]
|
6031 | ]): Result<string, Context>;
|
6032 | zaddBuffer(...args: [
|
6033 | key: RedisKey,
|
6034 | lt: "LT",
|
6035 | ch: "CH",
|
6036 | incr: "INCR",
|
6037 | ...scoreMembers: (string | Buffer | number)[]
|
6038 | ]): Result<Buffer, Context>;
|
6039 | zadd(...args: [
|
6040 | key: RedisKey,
|
6041 | nx: "NX",
|
6042 | ...scoreMembers: (string | Buffer | number)[],
|
6043 | callback: Callback<number>
|
6044 | ]): Result<number, Context>;
|
6045 | zadd(...args: [
|
6046 | key: RedisKey,
|
6047 | nx: "NX",
|
6048 | ...scoreMembers: (string | Buffer | number)[]
|
6049 | ]): Result<number, Context>;
|
6050 | zadd(...args: [
|
6051 | key: RedisKey,
|
6052 | nx: "NX",
|
6053 | incr: "INCR",
|
6054 | ...scoreMembers: (string | Buffer | number)[],
|
6055 | callback: Callback<string | null>
|
6056 | ]): Result<string | null, Context>;
|
6057 | zaddBuffer(...args: [
|
6058 | key: RedisKey,
|
6059 | nx: "NX",
|
6060 | incr: "INCR",
|
6061 | ...scoreMembers: (string | Buffer | number)[],
|
6062 | callback: Callback<Buffer | null>
|
6063 | ]): Result<Buffer | null, Context>;
|
6064 | zadd(...args: [
|
6065 | key: RedisKey,
|
6066 | nx: "NX",
|
6067 | incr: "INCR",
|
6068 | ...scoreMembers: (string | Buffer | number)[]
|
6069 | ]): Result<string | null, Context>;
|
6070 | zaddBuffer(...args: [
|
6071 | key: RedisKey,
|
6072 | nx: "NX",
|
6073 | incr: "INCR",
|
6074 | ...scoreMembers: (string | Buffer | number)[]
|
6075 | ]): Result<Buffer | null, Context>;
|
6076 | zadd(...args: [
|
6077 | key: RedisKey,
|
6078 | nx: "NX",
|
6079 | ch: "CH",
|
6080 | ...scoreMembers: (string | Buffer | number)[],
|
6081 | callback: Callback<number>
|
6082 | ]): Result<number, Context>;
|
6083 | zadd(...args: [
|
6084 | key: RedisKey,
|
6085 | nx: "NX",
|
6086 | ch: "CH",
|
6087 | ...scoreMembers: (string | Buffer | number)[]
|
6088 | ]): Result<number, Context>;
|
6089 | zadd(...args: [
|
6090 | key: RedisKey,
|
6091 | nx: "NX",
|
6092 | ch: "CH",
|
6093 | incr: "INCR",
|
6094 | ...scoreMembers: (string | Buffer | number)[],
|
6095 | callback: Callback<string | null>
|
6096 | ]): Result<string | null, Context>;
|
6097 | zaddBuffer(...args: [
|
6098 | key: RedisKey,
|
6099 | nx: "NX",
|
6100 | ch: "CH",
|
6101 | incr: "INCR",
|
6102 | ...scoreMembers: (string | Buffer | number)[],
|
6103 | callback: Callback<Buffer | null>
|
6104 | ]): Result<Buffer | null, Context>;
|
6105 | zadd(...args: [
|
6106 | key: RedisKey,
|
6107 | nx: "NX",
|
6108 | ch: "CH",
|
6109 | incr: "INCR",
|
6110 | ...scoreMembers: (string | Buffer | number)[]
|
6111 | ]): Result<string | null, Context>;
|
6112 | zaddBuffer(...args: [
|
6113 | key: RedisKey,
|
6114 | nx: "NX",
|
6115 | ch: "CH",
|
6116 | incr: "INCR",
|
6117 | ...scoreMembers: (string | Buffer | number)[]
|
6118 | ]): Result<Buffer | null, Context>;
|
6119 | zadd(...args: [
|
6120 | key: RedisKey,
|
6121 | nx: "NX",
|
6122 | gt: "GT",
|
6123 | ...scoreMembers: (string | Buffer | number)[],
|
6124 | callback: Callback<number>
|
6125 | ]): Result<number, Context>;
|
6126 | zadd(...args: [
|
6127 | key: RedisKey,
|
6128 | nx: "NX",
|
6129 | gt: "GT",
|
6130 | ...scoreMembers: (string | Buffer | number)[]
|
6131 | ]): Result<number, Context>;
|
6132 | zadd(...args: [
|
6133 | key: RedisKey,
|
6134 | nx: "NX",
|
6135 | gt: "GT",
|
6136 | incr: "INCR",
|
6137 | ...scoreMembers: (string | Buffer | number)[],
|
6138 | callback: Callback<string | null>
|
6139 | ]): Result<string | null, Context>;
|
6140 | zaddBuffer(...args: [
|
6141 | key: RedisKey,
|
6142 | nx: "NX",
|
6143 | gt: "GT",
|
6144 | incr: "INCR",
|
6145 | ...scoreMembers: (string | Buffer | number)[],
|
6146 | callback: Callback<Buffer | null>
|
6147 | ]): Result<Buffer | null, Context>;
|
6148 | zadd(...args: [
|
6149 | key: RedisKey,
|
6150 | nx: "NX",
|
6151 | gt: "GT",
|
6152 | incr: "INCR",
|
6153 | ...scoreMembers: (string | Buffer | number)[]
|
6154 | ]): Result<string | null, Context>;
|
6155 | zaddBuffer(...args: [
|
6156 | key: RedisKey,
|
6157 | nx: "NX",
|
6158 | gt: "GT",
|
6159 | incr: "INCR",
|
6160 | ...scoreMembers: (string | Buffer | number)[]
|
6161 | ]): Result<Buffer | null, Context>;
|
6162 | zadd(...args: [
|
6163 | key: RedisKey,
|
6164 | nx: "NX",
|
6165 | gt: "GT",
|
6166 | ch: "CH",
|
6167 | ...scoreMembers: (string | Buffer | number)[],
|
6168 | callback: Callback<number>
|
6169 | ]): Result<number, Context>;
|
6170 | zadd(...args: [
|
6171 | key: RedisKey,
|
6172 | nx: "NX",
|
6173 | gt: "GT",
|
6174 | ch: "CH",
|
6175 | ...scoreMembers: (string | Buffer | number)[]
|
6176 | ]): Result<number, Context>;
|
6177 | zadd(...args: [
|
6178 | key: RedisKey,
|
6179 | nx: "NX",
|
6180 | gt: "GT",
|
6181 | ch: "CH",
|
6182 | incr: "INCR",
|
6183 | ...scoreMembers: (string | Buffer | number)[],
|
6184 | callback: Callback<string | null>
|
6185 | ]): Result<string | null, Context>;
|
6186 | zaddBuffer(...args: [
|
6187 | key: RedisKey,
|
6188 | nx: "NX",
|
6189 | gt: "GT",
|
6190 | ch: "CH",
|
6191 | incr: "INCR",
|
6192 | ...scoreMembers: (string | Buffer | number)[],
|
6193 | callback: Callback<Buffer | null>
|
6194 | ]): Result<Buffer | null, Context>;
|
6195 | zadd(...args: [
|
6196 | key: RedisKey,
|
6197 | nx: "NX",
|
6198 | gt: "GT",
|
6199 | ch: "CH",
|
6200 | incr: "INCR",
|
6201 | ...scoreMembers: (string | Buffer | number)[]
|
6202 | ]): Result<string | null, Context>;
|
6203 | zaddBuffer(...args: [
|
6204 | key: RedisKey,
|
6205 | nx: "NX",
|
6206 | gt: "GT",
|
6207 | ch: "CH",
|
6208 | incr: "INCR",
|
6209 | ...scoreMembers: (string | Buffer | number)[]
|
6210 | ]): Result<Buffer | null, Context>;
|
6211 | zadd(...args: [
|
6212 | key: RedisKey,
|
6213 | nx: "NX",
|
6214 | lt: "LT",
|
6215 | ...scoreMembers: (string | Buffer | number)[],
|
6216 | callback: Callback<number>
|
6217 | ]): Result<number, Context>;
|
6218 | zadd(...args: [
|
6219 | key: RedisKey,
|
6220 | nx: "NX",
|
6221 | lt: "LT",
|
6222 | ...scoreMembers: (string | Buffer | number)[]
|
6223 | ]): Result<number, Context>;
|
6224 | zadd(...args: [
|
6225 | key: RedisKey,
|
6226 | nx: "NX",
|
6227 | lt: "LT",
|
6228 | incr: "INCR",
|
6229 | ...scoreMembers: (string | Buffer | number)[],
|
6230 | callback: Callback<string | null>
|
6231 | ]): Result<string | null, Context>;
|
6232 | zaddBuffer(...args: [
|
6233 | key: RedisKey,
|
6234 | nx: "NX",
|
6235 | lt: "LT",
|
6236 | incr: "INCR",
|
6237 | ...scoreMembers: (string | Buffer | number)[],
|
6238 | callback: Callback<Buffer | null>
|
6239 | ]): Result<Buffer | null, Context>;
|
6240 | zadd(...args: [
|
6241 | key: RedisKey,
|
6242 | nx: "NX",
|
6243 | lt: "LT",
|
6244 | incr: "INCR",
|
6245 | ...scoreMembers: (string | Buffer | number)[]
|
6246 | ]): Result<string | null, Context>;
|
6247 | zaddBuffer(...args: [
|
6248 | key: RedisKey,
|
6249 | nx: "NX",
|
6250 | lt: "LT",
|
6251 | incr: "INCR",
|
6252 | ...scoreMembers: (string | Buffer | number)[]
|
6253 | ]): Result<Buffer | null, Context>;
|
6254 | zadd(...args: [
|
6255 | key: RedisKey,
|
6256 | nx: "NX",
|
6257 | lt: "LT",
|
6258 | ch: "CH",
|
6259 | ...scoreMembers: (string | Buffer | number)[],
|
6260 | callback: Callback<number>
|
6261 | ]): Result<number, Context>;
|
6262 | zadd(...args: [
|
6263 | key: RedisKey,
|
6264 | nx: "NX",
|
6265 | lt: "LT",
|
6266 | ch: "CH",
|
6267 | ...scoreMembers: (string | Buffer | number)[]
|
6268 | ]): Result<number, Context>;
|
6269 | zadd(...args: [
|
6270 | key: RedisKey,
|
6271 | nx: "NX",
|
6272 | lt: "LT",
|
6273 | ch: "CH",
|
6274 | incr: "INCR",
|
6275 | ...scoreMembers: (string | Buffer | number)[],
|
6276 | callback: Callback<string | null>
|
6277 | ]): Result<string | null, Context>;
|
6278 | zaddBuffer(...args: [
|
6279 | key: RedisKey,
|
6280 | nx: "NX",
|
6281 | lt: "LT",
|
6282 | ch: "CH",
|
6283 | incr: "INCR",
|
6284 | ...scoreMembers: (string | Buffer | number)[],
|
6285 | callback: Callback<Buffer | null>
|
6286 | ]): Result<Buffer | null, Context>;
|
6287 | zadd(...args: [
|
6288 | key: RedisKey,
|
6289 | nx: "NX",
|
6290 | lt: "LT",
|
6291 | ch: "CH",
|
6292 | incr: "INCR",
|
6293 | ...scoreMembers: (string | Buffer | number)[]
|
6294 | ]): Result<string | null, Context>;
|
6295 | zaddBuffer(...args: [
|
6296 | key: RedisKey,
|
6297 | nx: "NX",
|
6298 | lt: "LT",
|
6299 | ch: "CH",
|
6300 | incr: "INCR",
|
6301 | ...scoreMembers: (string | Buffer | number)[]
|
6302 | ]): Result<Buffer | null, Context>;
|
6303 | zadd(...args: [
|
6304 | key: RedisKey,
|
6305 | xx: "XX",
|
6306 | ...scoreMembers: (string | Buffer | number)[],
|
6307 | callback: Callback<number>
|
6308 | ]): Result<number, Context>;
|
6309 | zadd(...args: [
|
6310 | key: RedisKey,
|
6311 | xx: "XX",
|
6312 | ...scoreMembers: (string | Buffer | number)[]
|
6313 | ]): Result<number, Context>;
|
6314 | zadd(...args: [
|
6315 | key: RedisKey,
|
6316 | xx: "XX",
|
6317 | incr: "INCR",
|
6318 | ...scoreMembers: (string | Buffer | number)[],
|
6319 | callback: Callback<string | null>
|
6320 | ]): Result<string | null, Context>;
|
6321 | zaddBuffer(...args: [
|
6322 | key: RedisKey,
|
6323 | xx: "XX",
|
6324 | incr: "INCR",
|
6325 | ...scoreMembers: (string | Buffer | number)[],
|
6326 | callback: Callback<Buffer | null>
|
6327 | ]): Result<Buffer | null, Context>;
|
6328 | zadd(...args: [
|
6329 | key: RedisKey,
|
6330 | xx: "XX",
|
6331 | incr: "INCR",
|
6332 | ...scoreMembers: (string | Buffer | number)[]
|
6333 | ]): Result<string | null, Context>;
|
6334 | zaddBuffer(...args: [
|
6335 | key: RedisKey,
|
6336 | xx: "XX",
|
6337 | incr: "INCR",
|
6338 | ...scoreMembers: (string | Buffer | number)[]
|
6339 | ]): Result<Buffer | null, Context>;
|
6340 | zadd(...args: [
|
6341 | key: RedisKey,
|
6342 | xx: "XX",
|
6343 | ch: "CH",
|
6344 | ...scoreMembers: (string | Buffer | number)[],
|
6345 | callback: Callback<number>
|
6346 | ]): Result<number, Context>;
|
6347 | zadd(...args: [
|
6348 | key: RedisKey,
|
6349 | xx: "XX",
|
6350 | ch: "CH",
|
6351 | ...scoreMembers: (string | Buffer | number)[]
|
6352 | ]): Result<number, Context>;
|
6353 | zadd(...args: [
|
6354 | key: RedisKey,
|
6355 | xx: "XX",
|
6356 | ch: "CH",
|
6357 | incr: "INCR",
|
6358 | ...scoreMembers: (string | Buffer | number)[],
|
6359 | callback: Callback<string | null>
|
6360 | ]): Result<string | null, Context>;
|
6361 | zaddBuffer(...args: [
|
6362 | key: RedisKey,
|
6363 | xx: "XX",
|
6364 | ch: "CH",
|
6365 | incr: "INCR",
|
6366 | ...scoreMembers: (string | Buffer | number)[],
|
6367 | callback: Callback<Buffer | null>
|
6368 | ]): Result<Buffer | null, Context>;
|
6369 | zadd(...args: [
|
6370 | key: RedisKey,
|
6371 | xx: "XX",
|
6372 | ch: "CH",
|
6373 | incr: "INCR",
|
6374 | ...scoreMembers: (string | Buffer | number)[]
|
6375 | ]): Result<string | null, Context>;
|
6376 | zaddBuffer(...args: [
|
6377 | key: RedisKey,
|
6378 | xx: "XX",
|
6379 | ch: "CH",
|
6380 | incr: "INCR",
|
6381 | ...scoreMembers: (string | Buffer | number)[]
|
6382 | ]): Result<Buffer | null, Context>;
|
6383 | zadd(...args: [
|
6384 | key: RedisKey,
|
6385 | xx: "XX",
|
6386 | gt: "GT",
|
6387 | ...scoreMembers: (string | Buffer | number)[],
|
6388 | callback: Callback<number>
|
6389 | ]): Result<number, Context>;
|
6390 | zadd(...args: [
|
6391 | key: RedisKey,
|
6392 | xx: "XX",
|
6393 | gt: "GT",
|
6394 | ...scoreMembers: (string | Buffer | number)[]
|
6395 | ]): Result<number, Context>;
|
6396 | zadd(...args: [
|
6397 | key: RedisKey,
|
6398 | xx: "XX",
|
6399 | gt: "GT",
|
6400 | incr: "INCR",
|
6401 | ...scoreMembers: (string | Buffer | number)[],
|
6402 | callback: Callback<string | null>
|
6403 | ]): Result<string | null, Context>;
|
6404 | zaddBuffer(...args: [
|
6405 | key: RedisKey,
|
6406 | xx: "XX",
|
6407 | gt: "GT",
|
6408 | incr: "INCR",
|
6409 | ...scoreMembers: (string | Buffer | number)[],
|
6410 | callback: Callback<Buffer | null>
|
6411 | ]): Result<Buffer | null, Context>;
|
6412 | zadd(...args: [
|
6413 | key: RedisKey,
|
6414 | xx: "XX",
|
6415 | gt: "GT",
|
6416 | incr: "INCR",
|
6417 | ...scoreMembers: (string | Buffer | number)[]
|
6418 | ]): Result<string | null, Context>;
|
6419 | zaddBuffer(...args: [
|
6420 | key: RedisKey,
|
6421 | xx: "XX",
|
6422 | gt: "GT",
|
6423 | incr: "INCR",
|
6424 | ...scoreMembers: (string | Buffer | number)[]
|
6425 | ]): Result<Buffer | null, Context>;
|
6426 | zadd(...args: [
|
6427 | key: RedisKey,
|
6428 | xx: "XX",
|
6429 | gt: "GT",
|
6430 | ch: "CH",
|
6431 | ...scoreMembers: (string | Buffer | number)[],
|
6432 | callback: Callback<number>
|
6433 | ]): Result<number, Context>;
|
6434 | zadd(...args: [
|
6435 | key: RedisKey,
|
6436 | xx: "XX",
|
6437 | gt: "GT",
|
6438 | ch: "CH",
|
6439 | ...scoreMembers: (string | Buffer | number)[]
|
6440 | ]): Result<number, Context>;
|
6441 | zadd(...args: [
|
6442 | key: RedisKey,
|
6443 | xx: "XX",
|
6444 | gt: "GT",
|
6445 | ch: "CH",
|
6446 | incr: "INCR",
|
6447 | ...scoreMembers: (string | Buffer | number)[],
|
6448 | callback: Callback<string | null>
|
6449 | ]): Result<string | null, Context>;
|
6450 | zaddBuffer(...args: [
|
6451 | key: RedisKey,
|
6452 | xx: "XX",
|
6453 | gt: "GT",
|
6454 | ch: "CH",
|
6455 | incr: "INCR",
|
6456 | ...scoreMembers: (string | Buffer | number)[],
|
6457 | callback: Callback<Buffer | null>
|
6458 | ]): Result<Buffer | null, Context>;
|
6459 | zadd(...args: [
|
6460 | key: RedisKey,
|
6461 | xx: "XX",
|
6462 | gt: "GT",
|
6463 | ch: "CH",
|
6464 | incr: "INCR",
|
6465 | ...scoreMembers: (string | Buffer | number)[]
|
6466 | ]): Result<string | null, Context>;
|
6467 | zaddBuffer(...args: [
|
6468 | key: RedisKey,
|
6469 | xx: "XX",
|
6470 | gt: "GT",
|
6471 | ch: "CH",
|
6472 | incr: "INCR",
|
6473 | ...scoreMembers: (string | Buffer | number)[]
|
6474 | ]): Result<Buffer | null, Context>;
|
6475 | zadd(...args: [
|
6476 | key: RedisKey,
|
6477 | xx: "XX",
|
6478 | lt: "LT",
|
6479 | ...scoreMembers: (string | Buffer | number)[],
|
6480 | callback: Callback<number>
|
6481 | ]): Result<number, Context>;
|
6482 | zadd(...args: [
|
6483 | key: RedisKey,
|
6484 | xx: "XX",
|
6485 | lt: "LT",
|
6486 | ...scoreMembers: (string | Buffer | number)[]
|
6487 | ]): Result<number, Context>;
|
6488 | zadd(...args: [
|
6489 | key: RedisKey,
|
6490 | xx: "XX",
|
6491 | lt: "LT",
|
6492 | incr: "INCR",
|
6493 | ...scoreMembers: (string | Buffer | number)[],
|
6494 | callback: Callback<string | null>
|
6495 | ]): Result<string | null, Context>;
|
6496 | zaddBuffer(...args: [
|
6497 | key: RedisKey,
|
6498 | xx: "XX",
|
6499 | lt: "LT",
|
6500 | incr: "INCR",
|
6501 | ...scoreMembers: (string | Buffer | number)[],
|
6502 | callback: Callback<Buffer | null>
|
6503 | ]): Result<Buffer | null, Context>;
|
6504 | zadd(...args: [
|
6505 | key: RedisKey,
|
6506 | xx: "XX",
|
6507 | lt: "LT",
|
6508 | incr: "INCR",
|
6509 | ...scoreMembers: (string | Buffer | number)[]
|
6510 | ]): Result<string | null, Context>;
|
6511 | zaddBuffer(...args: [
|
6512 | key: RedisKey,
|
6513 | xx: "XX",
|
6514 | lt: "LT",
|
6515 | incr: "INCR",
|
6516 | ...scoreMembers: (string | Buffer | number)[]
|
6517 | ]): Result<Buffer | null, Context>;
|
6518 | zadd(...args: [
|
6519 | key: RedisKey,
|
6520 | xx: "XX",
|
6521 | lt: "LT",
|
6522 | ch: "CH",
|
6523 | ...scoreMembers: (string | Buffer | number)[],
|
6524 | callback: Callback<number>
|
6525 | ]): Result<number, Context>;
|
6526 | zadd(...args: [
|
6527 | key: RedisKey,
|
6528 | xx: "XX",
|
6529 | lt: "LT",
|
6530 | ch: "CH",
|
6531 | ...scoreMembers: (string | Buffer | number)[]
|
6532 | ]): Result<number, Context>;
|
6533 | zadd(...args: [
|
6534 | key: RedisKey,
|
6535 | xx: "XX",
|
6536 | lt: "LT",
|
6537 | ch: "CH",
|
6538 | incr: "INCR",
|
6539 | ...scoreMembers: (string | Buffer | number)[],
|
6540 | callback: Callback<string | null>
|
6541 | ]): Result<string | null, Context>;
|
6542 | zaddBuffer(...args: [
|
6543 | key: RedisKey,
|
6544 | xx: "XX",
|
6545 | lt: "LT",
|
6546 | ch: "CH",
|
6547 | incr: "INCR",
|
6548 | ...scoreMembers: (string | Buffer | number)[],
|
6549 | callback: Callback<Buffer | null>
|
6550 | ]): Result<Buffer | null, Context>;
|
6551 | zadd(...args: [
|
6552 | key: RedisKey,
|
6553 | xx: "XX",
|
6554 | lt: "LT",
|
6555 | ch: "CH",
|
6556 | incr: "INCR",
|
6557 | ...scoreMembers: (string | Buffer | number)[]
|
6558 | ]): Result<string | null, Context>;
|
6559 | zaddBuffer(...args: [
|
6560 | key: RedisKey,
|
6561 | xx: "XX",
|
6562 | lt: "LT",
|
6563 | ch: "CH",
|
6564 | incr: "INCR",
|
6565 | ...scoreMembers: (string | Buffer | number)[]
|
6566 | ]): Result<Buffer | null, Context>;
|
6567 | /**
|
6568 | * Get the number of members in a sorted set
|
6569 | * - _group_: sorted-set
|
6570 | * - _complexity_: O(1)
|
6571 | * - _since_: 1.2.0
|
6572 | */
|
6573 | zcard(key: RedisKey, callback?: Callback<number>): Result<number, Context>;
|
6574 | /**
|
6575 | * Count the members in a sorted set with scores within the given values
|
6576 | * - _group_: sorted-set
|
6577 | * - _complexity_: O(log(N)) with N being the number of elements in the sorted set.
|
6578 | * - _since_: 2.0.0
|
6579 | */
|
6580 | zcount(key: RedisKey, min: number | string, max: number | string, callback?: Callback<number>): Result<number, Context>;
|
6581 | /**
|
6582 | * Subtract multiple sorted sets
|
6583 | * - _group_: sorted-set
|
6584 | * - _complexity_: O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.
|
6585 | * - _since_: 6.2.0
|
6586 | */
|
6587 | zdiff(...args: [
|
6588 | numkeys: number | string,
|
6589 | ...keys: RedisKey[],
|
6590 | callback: Callback<string[]>
|
6591 | ]): Result<string[], Context>;
|
6592 | zdiffBuffer(...args: [
|
6593 | numkeys: number | string,
|
6594 | ...keys: RedisKey[],
|
6595 | callback: Callback<Buffer[]>
|
6596 | ]): Result<Buffer[], Context>;
|
6597 | zdiff(...args: [
|
6598 | numkeys: number | string,
|
6599 | keys: RedisKey[],
|
6600 | callback: Callback<string[]>
|
6601 | ]): Result<string[], Context>;
|
6602 | zdiffBuffer(...args: [
|
6603 | numkeys: number | string,
|
6604 | keys: RedisKey[],
|
6605 | callback: Callback<Buffer[]>
|
6606 | ]): Result<Buffer[], Context>;
|
6607 | zdiff(...args: [numkeys: number | string, ...keys: RedisKey[]]): Result<string[], Context>;
|
6608 | zdiffBuffer(...args: [numkeys: number | string, ...keys: RedisKey[]]): Result<Buffer[], Context>;
|
6609 | zdiff(...args: [numkeys: number | string, keys: RedisKey[]]): Result<string[], Context>;
|
6610 | zdiffBuffer(...args: [numkeys: number | string, keys: RedisKey[]]): Result<Buffer[], Context>;
|
6611 | zdiff(...args: [
|
6612 | numkeys: number | string,
|
6613 | ...keys: RedisKey[],
|
6614 | withscores: "WITHSCORES",
|
6615 | callback: Callback<string[]>
|
6616 | ]): Result<string[], Context>;
|
6617 | zdiffBuffer(...args: [
|
6618 | numkeys: number | string,
|
6619 | ...keys: RedisKey[],
|
6620 | withscores: "WITHSCORES",
|
6621 | callback: Callback<Buffer[]>
|
6622 | ]): Result<Buffer[], Context>;
|
6623 | zdiff(...args: [
|
6624 | numkeys: number | string,
|
6625 | keys: RedisKey[],
|
6626 | withscores: "WITHSCORES",
|
6627 | callback: Callback<string[]>
|
6628 | ]): Result<string[], Context>;
|
6629 | zdiffBuffer(...args: [
|
6630 | numkeys: number | string,
|
6631 | keys: RedisKey[],
|
6632 | withscores: "WITHSCORES",
|
6633 | callback: Callback<Buffer[]>
|
6634 | ]): Result<Buffer[], Context>;
|
6635 | zdiff(...args: [
|
6636 | numkeys: number | string,
|
6637 | ...keys: RedisKey[],
|
6638 | withscores: "WITHSCORES"
|
6639 | ]): Result<string[], Context>;
|
6640 | zdiffBuffer(...args: [
|
6641 | numkeys: number | string,
|
6642 | ...keys: RedisKey[],
|
6643 | withscores: "WITHSCORES"
|
6644 | ]): Result<Buffer[], Context>;
|
6645 | zdiff(...args: [
|
6646 | numkeys: number | string,
|
6647 | keys: RedisKey[],
|
6648 | withscores: "WITHSCORES"
|
6649 | ]): Result<string[], Context>;
|
6650 | zdiffBuffer(...args: [
|
6651 | numkeys: number | string,
|
6652 | keys: RedisKey[],
|
6653 | withscores: "WITHSCORES"
|
6654 | ]): Result<Buffer[], Context>;
|
6655 | /**
|
6656 | * Subtract multiple sorted sets and store the resulting sorted set in a new key
|
6657 | * - _group_: sorted-set
|
6658 | * - _complexity_: O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.
|
6659 | * - _since_: 6.2.0
|
6660 | */
|
6661 | zdiffstore(...args: [
|
6662 | destination: RedisKey,
|
6663 | numkeys: number | string,
|
6664 | ...keys: RedisKey[],
|
6665 | callback: Callback<number>
|
6666 | ]): Result<number, Context>;
|
6667 | zdiffstore(...args: [
|
6668 | destination: RedisKey,
|
6669 | numkeys: number | string,
|
6670 | keys: RedisKey[],
|
6671 | callback: Callback<number>
|
6672 | ]): Result<number, Context>;
|
6673 | zdiffstore(...args: [
|
6674 | destination: RedisKey,
|
6675 | numkeys: number | string,
|
6676 | ...keys: RedisKey[]
|
6677 | ]): Result<number, Context>;
|
6678 | zdiffstore(...args: [destination: RedisKey, numkeys: number | string, keys: RedisKey[]]): Result<number, Context>;
|
6679 | /**
|
6680 | * Increment the score of a member in a sorted set
|
6681 | * - _group_: sorted-set
|
6682 | * - _complexity_: O(log(N)) where N is the number of elements in the sorted set.
|
6683 | * - _since_: 1.2.0
|
6684 | */
|
6685 | zincrby(key: RedisKey, increment: number | string, member: string | Buffer | number, callback?: Callback<string>): Result<string, Context>;
|
6686 | zincrbyBuffer(key: RedisKey, increment: number | string, member: string | Buffer | number, callback?: Callback<Buffer>): Result<Buffer, Context>;
|
6687 | /**
|
6688 | * Intersect multiple sorted sets
|
6689 | * - _group_: sorted-set
|
6690 | * - _complexity_: O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.
|
6691 | * - _since_: 6.2.0
|
6692 | */
|
6693 | zinter(...args: [
|
6694 | numkeys: number | string,
|
6695 | ...keys: RedisKey[],
|
6696 | callback: Callback<string[]>
|
6697 | ]): Result<string[], Context>;
|
6698 | zinterBuffer(...args: [
|
6699 | numkeys: number | string,
|
6700 | ...keys: RedisKey[],
|
6701 | callback: Callback<Buffer[]>
|
6702 | ]): Result<Buffer[], Context>;
|
6703 | zinter(...args: [
|
6704 | numkeys: number | string,
|
6705 | keys: RedisKey[],
|
6706 | callback: Callback<string[]>
|
6707 | ]): Result<string[], Context>;
|
6708 | zinterBuffer(...args: [
|
6709 | numkeys: number | string,
|
6710 | keys: RedisKey[],
|
6711 | callback: Callback<Buffer[]>
|
6712 | ]): Result<Buffer[], Context>;
|
6713 | zinter(...args: [numkeys: number | string, ...keys: RedisKey[]]): Result<string[], Context>;
|
6714 | zinterBuffer(...args: [numkeys: number | string, ...keys: RedisKey[]]): Result<Buffer[], Context>;
|
6715 | zinter(...args: [numkeys: number | string, keys: RedisKey[]]): Result<string[], Context>;
|
6716 | zinterBuffer(...args: [numkeys: number | string, keys: RedisKey[]]): Result<Buffer[], Context>;
|
6717 | zinter(...args: [
|
6718 | numkeys: number | string,
|
6719 | ...keys: RedisKey[],
|
6720 | withscores: "WITHSCORES",
|
6721 | callback: Callback<string[]>
|
6722 | ]): Result<string[], Context>;
|
6723 | zinterBuffer(...args: [
|
6724 | numkeys: number | string,
|
6725 | ...keys: RedisKey[],
|
6726 | withscores: "WITHSCORES",
|
6727 | callback: Callback<Buffer[]>
|
6728 | ]): Result<Buffer[], Context>;
|
6729 | zinter(...args: [
|
6730 | numkeys: number | string,
|
6731 | keys: RedisKey[],
|
6732 | withscores: "WITHSCORES",
|
6733 | callback: Callback<string[]>
|
6734 | ]): Result<string[], Context>;
|
6735 | zinterBuffer(...args: [
|
6736 | numkeys: number | string,
|
6737 | keys: RedisKey[],
|
6738 | withscores: "WITHSCORES",
|
6739 | callback: Callback<Buffer[]>
|
6740 | ]): Result<Buffer[], Context>;
|
6741 | zinter(...args: [
|
6742 | numkeys: number | string,
|
6743 | ...keys: RedisKey[],
|
6744 | withscores: "WITHSCORES"
|
6745 | ]): Result<string[], Context>;
|
6746 | zinterBuffer(...args: [
|
6747 | numkeys: number | string,
|
6748 | ...keys: RedisKey[],
|
6749 | withscores: "WITHSCORES"
|
6750 | ]): Result<Buffer[], Context>;
|
6751 | zinter(...args: [
|
6752 | numkeys: number | string,
|
6753 | keys: RedisKey[],
|
6754 | withscores: "WITHSCORES"
|
6755 | ]): Result<string[], Context>;
|
6756 | zinterBuffer(...args: [
|
6757 | numkeys: number | string,
|
6758 | keys: RedisKey[],
|
6759 | withscores: "WITHSCORES"
|
6760 | ]): Result<Buffer[], Context>;
|
6761 | zinter(...args: [
|
6762 | numkeys: number | string,
|
6763 | ...keys: RedisKey[],
|
6764 | aggregate: "AGGREGATE",
|
6765 | sum: "SUM",
|
6766 | callback: Callback<string[]>
|
6767 | ]): Result<string[], Context>;
|
6768 | zinterBuffer(...args: [
|
6769 | numkeys: number | string,
|
6770 | ...keys: RedisKey[],
|
6771 | aggregate: "AGGREGATE",
|
6772 | sum: "SUM",
|
6773 | callback: Callback<Buffer[]>
|
6774 | ]): Result<Buffer[], Context>;
|
6775 | zinter(...args: [
|
6776 | numkeys: number | string,
|
6777 | keys: RedisKey[],
|
6778 | aggregate: "AGGREGATE",
|
6779 | sum: "SUM",
|
6780 | callback: Callback<string[]>
|
6781 | ]): Result<string[], Context>;
|
6782 | zinterBuffer(...args: [
|
6783 | numkeys: number | string,
|
6784 | keys: RedisKey[],
|
6785 | aggregate: "AGGREGATE",
|
6786 | sum: "SUM",
|
6787 | callback: Callback<Buffer[]>
|
6788 | ]): Result<Buffer[], Context>;
|
6789 | zinter(...args: [
|
6790 | numkeys: number | string,
|
6791 | ...keys: RedisKey[],
|
6792 | aggregate: "AGGREGATE",
|
6793 | sum: "SUM"
|
6794 | ]): Result<string[], Context>;
|
6795 | zinterBuffer(...args: [
|
6796 | numkeys: number | string,
|
6797 | ...keys: RedisKey[],
|
6798 | aggregate: "AGGREGATE",
|
6799 | sum: "SUM"
|
6800 | ]): Result<Buffer[], Context>;
|
6801 | zinter(...args: [
|
6802 | numkeys: number | string,
|
6803 | keys: RedisKey[],
|
6804 | aggregate: "AGGREGATE",
|
6805 | sum: "SUM"
|
6806 | ]): Result<string[], Context>;
|
6807 | zinterBuffer(...args: [
|
6808 | numkeys: number | string,
|
6809 | keys: RedisKey[],
|
6810 | aggregate: "AGGREGATE",
|
6811 | sum: "SUM"
|
6812 | ]): Result<Buffer[], Context>;
|
6813 | zinter(...args: [
|
6814 | numkeys: number | string,
|
6815 | ...keys: RedisKey[],
|
6816 | aggregate: "AGGREGATE",
|
6817 | sum: "SUM",
|
6818 | withscores: "WITHSCORES",
|
6819 | callback: Callback<string[]>
|
6820 | ]): Result<string[], Context>;
|
6821 | zinterBuffer(...args: [
|
6822 | numkeys: number | string,
|
6823 | ...keys: RedisKey[],
|
6824 | aggregate: "AGGREGATE",
|
6825 | sum: "SUM",
|
6826 | withscores: "WITHSCORES",
|
6827 | callback: Callback<Buffer[]>
|
6828 | ]): Result<Buffer[], Context>;
|
6829 | zinter(...args: [
|
6830 | numkeys: number | string,
|
6831 | keys: RedisKey[],
|
6832 | aggregate: "AGGREGATE",
|
6833 | sum: "SUM",
|
6834 | withscores: "WITHSCORES",
|
6835 | callback: Callback<string[]>
|
6836 | ]): Result<string[], Context>;
|
6837 | zinterBuffer(...args: [
|
6838 | numkeys: number | string,
|
6839 | keys: RedisKey[],
|
6840 | aggregate: "AGGREGATE",
|
6841 | sum: "SUM",
|
6842 | withscores: "WITHSCORES",
|
6843 | callback: Callback<Buffer[]>
|
6844 | ]): Result<Buffer[], Context>;
|
6845 | zinter(...args: [
|
6846 | numkeys: number | string,
|
6847 | ...keys: RedisKey[],
|
6848 | aggregate: "AGGREGATE",
|
6849 | sum: "SUM",
|
6850 | withscores: "WITHSCORES"
|
6851 | ]): Result<string[], Context>;
|
6852 | zinterBuffer(...args: [
|
6853 | numkeys: number | string,
|
6854 | ...keys: RedisKey[],
|
6855 | aggregate: "AGGREGATE",
|
6856 | sum: "SUM",
|
6857 | withscores: "WITHSCORES"
|
6858 | ]): Result<Buffer[], Context>;
|
6859 | zinter(...args: [
|
6860 | numkeys: number | string,
|
6861 | keys: RedisKey[],
|
6862 | aggregate: "AGGREGATE",
|
6863 | sum: "SUM",
|
6864 | withscores: "WITHSCORES"
|
6865 | ]): Result<string[], Context>;
|
6866 | zinterBuffer(...args: [
|
6867 | numkeys: number | string,
|
6868 | keys: RedisKey[],
|
6869 | aggregate: "AGGREGATE",
|
6870 | sum: "SUM",
|
6871 | withscores: "WITHSCORES"
|
6872 | ]): Result<Buffer[], Context>;
|
6873 | zinter(...args: [
|
6874 | numkeys: number | string,
|
6875 | ...keys: RedisKey[],
|
6876 | aggregate: "AGGREGATE",
|
6877 | min: "MIN",
|
6878 | callback: Callback<string[]>
|
6879 | ]): Result<string[], Context>;
|
6880 | zinterBuffer(...args: [
|
6881 | numkeys: number | string,
|
6882 | ...keys: RedisKey[],
|
6883 | aggregate: "AGGREGATE",
|
6884 | min: "MIN",
|
6885 | callback: Callback<Buffer[]>
|
6886 | ]): Result<Buffer[], Context>;
|
6887 | zinter(...args: [
|
6888 | numkeys: number | string,
|
6889 | keys: RedisKey[],
|
6890 | aggregate: "AGGREGATE",
|
6891 | min: "MIN",
|
6892 | callback: Callback<string[]>
|
6893 | ]): Result<string[], Context>;
|
6894 | zinterBuffer(...args: [
|
6895 | numkeys: number | string,
|
6896 | keys: RedisKey[],
|
6897 | aggregate: "AGGREGATE",
|
6898 | min: "MIN",
|
6899 | callback: Callback<Buffer[]>
|
6900 | ]): Result<Buffer[], Context>;
|
6901 | zinter(...args: [
|
6902 | numkeys: number | string,
|
6903 | ...keys: RedisKey[],
|
6904 | aggregate: "AGGREGATE",
|
6905 | min: "MIN"
|
6906 | ]): Result<string[], Context>;
|
6907 | zinterBuffer(...args: [
|
6908 | numkeys: number | string,
|
6909 | ...keys: RedisKey[],
|
6910 | aggregate: "AGGREGATE",
|
6911 | min: "MIN"
|
6912 | ]): Result<Buffer[], Context>;
|
6913 | zinter(...args: [
|
6914 | numkeys: number | string,
|
6915 | keys: RedisKey[],
|
6916 | aggregate: "AGGREGATE",
|
6917 | min: "MIN"
|
6918 | ]): Result<string[], Context>;
|
6919 | zinterBuffer(...args: [
|
6920 | numkeys: number | string,
|
6921 | keys: RedisKey[],
|
6922 | aggregate: "AGGREGATE",
|
6923 | min: "MIN"
|
6924 | ]): Result<Buffer[], Context>;
|
6925 | zinter(...args: [
|
6926 | numkeys: number | string,
|
6927 | ...keys: RedisKey[],
|
6928 | aggregate: "AGGREGATE",
|
6929 | min: "MIN",
|
6930 | withscores: "WITHSCORES",
|
6931 | callback: Callback<string[]>
|
6932 | ]): Result<string[], Context>;
|
6933 | zinterBuffer(...args: [
|
6934 | numkeys: number | string,
|
6935 | ...keys: RedisKey[],
|
6936 | aggregate: "AGGREGATE",
|
6937 | min: "MIN",
|
6938 | withscores: "WITHSCORES",
|
6939 | callback: Callback<Buffer[]>
|
6940 | ]): Result<Buffer[], Context>;
|
6941 | zinter(...args: [
|
6942 | numkeys: number | string,
|
6943 | keys: RedisKey[],
|
6944 | aggregate: "AGGREGATE",
|
6945 | min: "MIN",
|
6946 | withscores: "WITHSCORES",
|
6947 | callback: Callback<string[]>
|
6948 | ]): Result<string[], Context>;
|
6949 | zinterBuffer(...args: [
|
6950 | numkeys: number | string,
|
6951 | keys: RedisKey[],
|
6952 | aggregate: "AGGREGATE",
|
6953 | min: "MIN",
|
6954 | withscores: "WITHSCORES",
|
6955 | callback: Callback<Buffer[]>
|
6956 | ]): Result<Buffer[], Context>;
|
6957 | zinter(...args: [
|
6958 | numkeys: number | string,
|
6959 | ...keys: RedisKey[],
|
6960 | aggregate: "AGGREGATE",
|
6961 | min: "MIN",
|
6962 | withscores: "WITHSCORES"
|
6963 | ]): Result<string[], Context>;
|
6964 | zinterBuffer(...args: [
|
6965 | numkeys: number | string,
|
6966 | ...keys: RedisKey[],
|
6967 | aggregate: "AGGREGATE",
|
6968 | min: "MIN",
|
6969 | withscores: "WITHSCORES"
|
6970 | ]): Result<Buffer[], Context>;
|
6971 | zinter(...args: [
|
6972 | numkeys: number | string,
|
6973 | keys: RedisKey[],
|
6974 | aggregate: "AGGREGATE",
|
6975 | min: "MIN",
|
6976 | withscores: "WITHSCORES"
|
6977 | ]): Result<string[], Context>;
|
6978 | zinterBuffer(...args: [
|
6979 | numkeys: number | string,
|
6980 | keys: RedisKey[],
|
6981 | aggregate: "AGGREGATE",
|
6982 | min: "MIN",
|
6983 | withscores: "WITHSCORES"
|
6984 | ]): Result<Buffer[], Context>;
|
6985 | zinter(...args: [
|
6986 | numkeys: number | string,
|
6987 | ...keys: RedisKey[],
|
6988 | aggregate: "AGGREGATE",
|
6989 | max: "MAX",
|
6990 | callback: Callback<string[]>
|
6991 | ]): Result<string[], Context>;
|
6992 | zinterBuffer(...args: [
|
6993 | numkeys: number | string,
|
6994 | ...keys: RedisKey[],
|
6995 | aggregate: "AGGREGATE",
|
6996 | max: "MAX",
|
6997 | callback: Callback<Buffer[]>
|
6998 | ]): Result<Buffer[], Context>;
|
6999 | zinter(...args: [
|
7000 | numkeys: number | string,
|
7001 | keys: RedisKey[],
|
7002 | aggregate: "AGGREGATE",
|
7003 | max: "MAX",
|
7004 | callback: Callback<string[]>
|
7005 | ]): Result<string[], Context>;
|
7006 | zinterBuffer(...args: [
|
7007 | numkeys: number | string,
|
7008 | keys: RedisKey[],
|
7009 | aggregate: "AGGREGATE",
|
7010 | max: "MAX",
|
7011 | callback: Callback<Buffer[]>
|
7012 | ]): Result<Buffer[], Context>;
|
7013 | zinter(...args: [
|
7014 | numkeys: number | string,
|
7015 | ...keys: RedisKey[],
|
7016 | aggregate: "AGGREGATE",
|
7017 | max: "MAX"
|
7018 | ]): Result<string[], Context>;
|
7019 | zinterBuffer(...args: [
|
7020 | numkeys: number | string,
|
7021 | ...keys: RedisKey[],
|
7022 | aggregate: "AGGREGATE",
|
7023 | max: "MAX"
|
7024 | ]): Result<Buffer[], Context>;
|
7025 | zinter(...args: [
|
7026 | numkeys: number | string,
|
7027 | keys: RedisKey[],
|
7028 | aggregate: "AGGREGATE",
|
7029 | max: "MAX"
|
7030 | ]): Result<string[], Context>;
|
7031 | zinterBuffer(...args: [
|
7032 | numkeys: number | string,
|
7033 | keys: RedisKey[],
|
7034 | aggregate: "AGGREGATE",
|
7035 | max: "MAX"
|
7036 | ]): Result<Buffer[], Context>;
|
7037 | zinter(...args: [
|
7038 | numkeys: number | string,
|
7039 | ...keys: RedisKey[],
|
7040 | aggregate: "AGGREGATE",
|
7041 | max: "MAX",
|
7042 | withscores: "WITHSCORES",
|
7043 | callback: Callback<string[]>
|
7044 | ]): Result<string[], Context>;
|
7045 | zinterBuffer(...args: [
|
7046 | numkeys: number | string,
|
7047 | ...keys: RedisKey[],
|
7048 | aggregate: "AGGREGATE",
|
7049 | max: "MAX",
|
7050 | withscores: "WITHSCORES",
|
7051 | callback: Callback<Buffer[]>
|
7052 | ]): Result<Buffer[], Context>;
|
7053 | zinter(...args: [
|
7054 | numkeys: number | string,
|
7055 | keys: RedisKey[],
|
7056 | aggregate: "AGGREGATE",
|
7057 | max: "MAX",
|
7058 | withscores: "WITHSCORES",
|
7059 | callback: Callback<string[]>
|
7060 | ]): Result<string[], Context>;
|
7061 | zinterBuffer(...args: [
|
7062 | numkeys: number | string,
|
7063 | keys: RedisKey[],
|
7064 | aggregate: "AGGREGATE",
|
7065 | max: "MAX",
|
7066 | withscores: "WITHSCORES",
|
7067 | callback: Callback<Buffer[]>
|
7068 | ]): Result<Buffer[], Context>;
|
7069 | zinter(...args: [
|
7070 | numkeys: number | string,
|
7071 | ...keys: RedisKey[],
|
7072 | aggregate: "AGGREGATE",
|
7073 | max: "MAX",
|
7074 | withscores: "WITHSCORES"
|
7075 | ]): Result<string[], Context>;
|
7076 | zinterBuffer(...args: [
|
7077 | numkeys: number | string,
|
7078 | ...keys: RedisKey[],
|
7079 | aggregate: "AGGREGATE",
|
7080 | max: "MAX",
|
7081 | withscores: "WITHSCORES"
|
7082 | ]): Result<Buffer[], Context>;
|
7083 | zinter(...args: [
|
7084 | numkeys: number | string,
|
7085 | keys: RedisKey[],
|
7086 | aggregate: "AGGREGATE",
|
7087 | max: "MAX",
|
7088 | withscores: "WITHSCORES"
|
7089 | ]): Result<string[], Context>;
|
7090 | zinterBuffer(...args: [
|
7091 | numkeys: number | string,
|
7092 | keys: RedisKey[],
|
7093 | aggregate: "AGGREGATE",
|
7094 | max: "MAX",
|
7095 | withscores: "WITHSCORES"
|
7096 | ]): Result<Buffer[], Context>;
|
7097 | zinter(...args: [
|
7098 | numkeys: number | string,
|
7099 | ...args: RedisValue[],
|
7100 | callback: Callback<string[]>
|
7101 | ]): Result<string[], Context>;
|
7102 | zinterBuffer(...args: [
|
7103 | numkeys: number | string,
|
7104 | ...args: RedisValue[],
|
7105 | callback: Callback<Buffer[]>
|
7106 | ]): Result<Buffer[], Context>;
|
7107 | zinter(...args: [numkeys: number | string, ...args: RedisValue[]]): Result<string[], Context>;
|
7108 | zinterBuffer(...args: [numkeys: number | string, ...args: RedisValue[]]): Result<Buffer[], Context>;
|
7109 | zinter(...args: [
|
7110 | numkeys: number | string,
|
7111 | ...args: RedisValue[],
|
7112 | withscores: "WITHSCORES",
|
7113 | callback: Callback<string[]>
|
7114 | ]): Result<string[], Context>;
|
7115 | zinterBuffer(...args: [
|
7116 | numkeys: number | string,
|
7117 | ...args: RedisValue[],
|
7118 | withscores: "WITHSCORES",
|
7119 | callback: Callback<Buffer[]>
|
7120 | ]): Result<Buffer[], Context>;
|
7121 | zinter(...args: [
|
7122 | numkeys: number | string,
|
7123 | ...args: RedisValue[],
|
7124 | withscores: "WITHSCORES"
|
7125 | ]): Result<string[], Context>;
|
7126 | zinterBuffer(...args: [
|
7127 | numkeys: number | string,
|
7128 | ...args: RedisValue[],
|
7129 | withscores: "WITHSCORES"
|
7130 | ]): Result<Buffer[], Context>;
|
7131 | zinter(...args: [
|
7132 | numkeys: number | string,
|
7133 | ...args: RedisValue[],
|
7134 | aggregate: "AGGREGATE",
|
7135 | sum: "SUM",
|
7136 | callback: Callback<string[]>
|
7137 | ]): Result<string[], Context>;
|
7138 | zinterBuffer(...args: [
|
7139 | numkeys: number | string,
|
7140 | ...args: RedisValue[],
|
7141 | aggregate: "AGGREGATE",
|
7142 | sum: "SUM",
|
7143 | callback: Callback<Buffer[]>
|
7144 | ]): Result<Buffer[], Context>;
|
7145 | zinter(...args: [
|
7146 | numkeys: number | string,
|
7147 | ...args: RedisValue[],
|
7148 | aggregate: "AGGREGATE",
|
7149 | sum: "SUM"
|
7150 | ]): Result<string[], Context>;
|
7151 | zinterBuffer(...args: [
|
7152 | numkeys: number | string,
|
7153 | ...args: RedisValue[],
|
7154 | aggregate: "AGGREGATE",
|
7155 | sum: "SUM"
|
7156 | ]): Result<Buffer[], Context>;
|
7157 | zinter(...args: [
|
7158 | numkeys: number | string,
|
7159 | ...args: RedisValue[],
|
7160 | aggregate: "AGGREGATE",
|
7161 | sum: "SUM",
|
7162 | withscores: "WITHSCORES",
|
7163 | callback: Callback<string[]>
|
7164 | ]): Result<string[], Context>;
|
7165 | zinterBuffer(...args: [
|
7166 | numkeys: number | string,
|
7167 | ...args: RedisValue[],
|
7168 | aggregate: "AGGREGATE",
|
7169 | sum: "SUM",
|
7170 | withscores: "WITHSCORES",
|
7171 | callback: Callback<Buffer[]>
|
7172 | ]): Result<Buffer[], Context>;
|
7173 | zinter(...args: [
|
7174 | numkeys: number | string,
|
7175 | ...args: RedisValue[],
|
7176 | aggregate: "AGGREGATE",
|
7177 | sum: "SUM",
|
7178 | withscores: "WITHSCORES"
|
7179 | ]): Result<string[], Context>;
|
7180 | zinterBuffer(...args: [
|
7181 | numkeys: number | string,
|
7182 | ...args: RedisValue[],
|
7183 | aggregate: "AGGREGATE",
|
7184 | sum: "SUM",
|
7185 | withscores: "WITHSCORES"
|
7186 | ]): Result<Buffer[], Context>;
|
7187 | zinter(...args: [
|
7188 | numkeys: number | string,
|
7189 | ...args: RedisValue[],
|
7190 | aggregate: "AGGREGATE",
|
7191 | min: "MIN",
|
7192 | callback: Callback<string[]>
|
7193 | ]): Result<string[], Context>;
|
7194 | zinterBuffer(...args: [
|
7195 | numkeys: number | string,
|
7196 | ...args: RedisValue[],
|
7197 | aggregate: "AGGREGATE",
|
7198 | min: "MIN",
|
7199 | callback: Callback<Buffer[]>
|
7200 | ]): Result<Buffer[], Context>;
|
7201 | zinter(...args: [
|
7202 | numkeys: number | string,
|
7203 | ...args: RedisValue[],
|
7204 | aggregate: "AGGREGATE",
|
7205 | min: "MIN"
|
7206 | ]): Result<string[], Context>;
|
7207 | zinterBuffer(...args: [
|
7208 | numkeys: number | string,
|
7209 | ...args: RedisValue[],
|
7210 | aggregate: "AGGREGATE",
|
7211 | min: "MIN"
|
7212 | ]): Result<Buffer[], Context>;
|
7213 | zinter(...args: [
|
7214 | numkeys: number | string,
|
7215 | ...args: RedisValue[],
|
7216 | aggregate: "AGGREGATE",
|
7217 | min: "MIN",
|
7218 | withscores: "WITHSCORES",
|
7219 | callback: Callback<string[]>
|
7220 | ]): Result<string[], Context>;
|
7221 | zinterBuffer(...args: [
|
7222 | numkeys: number | string,
|
7223 | ...args: RedisValue[],
|
7224 | aggregate: "AGGREGATE",
|
7225 | min: "MIN",
|
7226 | withscores: "WITHSCORES",
|
7227 | callback: Callback<Buffer[]>
|
7228 | ]): Result<Buffer[], Context>;
|
7229 | zinter(...args: [
|
7230 | numkeys: number | string,
|
7231 | ...args: RedisValue[],
|
7232 | aggregate: "AGGREGATE",
|
7233 | min: "MIN",
|
7234 | withscores: "WITHSCORES"
|
7235 | ]): Result<string[], Context>;
|
7236 | zinterBuffer(...args: [
|
7237 | numkeys: number | string,
|
7238 | ...args: RedisValue[],
|
7239 | aggregate: "AGGREGATE",
|
7240 | min: "MIN",
|
7241 | withscores: "WITHSCORES"
|
7242 | ]): Result<Buffer[], Context>;
|
7243 | zinter(...args: [
|
7244 | numkeys: number | string,
|
7245 | ...args: RedisValue[],
|
7246 | aggregate: "AGGREGATE",
|
7247 | max: "MAX",
|
7248 | callback: Callback<string[]>
|
7249 | ]): Result<string[], Context>;
|
7250 | zinterBuffer(...args: [
|
7251 | numkeys: number | string,
|
7252 | ...args: RedisValue[],
|
7253 | aggregate: "AGGREGATE",
|
7254 | max: "MAX",
|
7255 | callback: Callback<Buffer[]>
|
7256 | ]): Result<Buffer[], Context>;
|
7257 | zinter(...args: [
|
7258 | numkeys: number | string,
|
7259 | ...args: RedisValue[],
|
7260 | aggregate: "AGGREGATE",
|
7261 | max: "MAX"
|
7262 | ]): Result<string[], Context>;
|
7263 | zinterBuffer(...args: [
|
7264 | numkeys: number | string,
|
7265 | ...args: RedisValue[],
|
7266 | aggregate: "AGGREGATE",
|
7267 | max: "MAX"
|
7268 | ]): Result<Buffer[], Context>;
|
7269 | zinter(...args: [
|
7270 | numkeys: number | string,
|
7271 | ...args: RedisValue[],
|
7272 | aggregate: "AGGREGATE",
|
7273 | max: "MAX",
|
7274 | withscores: "WITHSCORES",
|
7275 | callback: Callback<string[]>
|
7276 | ]): Result<string[], Context>;
|
7277 | zinterBuffer(...args: [
|
7278 | numkeys: number | string,
|
7279 | ...args: RedisValue[],
|
7280 | aggregate: "AGGREGATE",
|
7281 | max: "MAX",
|
7282 | withscores: "WITHSCORES",
|
7283 | callback: Callback<Buffer[]>
|
7284 | ]): Result<Buffer[], Context>;
|
7285 | zinter(...args: [
|
7286 | numkeys: number | string,
|
7287 | ...args: RedisValue[],
|
7288 | aggregate: "AGGREGATE",
|
7289 | max: "MAX",
|
7290 | withscores: "WITHSCORES"
|
7291 | ]): Result<string[], Context>;
|
7292 | zinterBuffer(...args: [
|
7293 | numkeys: number | string,
|
7294 | ...args: RedisValue[],
|
7295 | aggregate: "AGGREGATE",
|
7296 | max: "MAX",
|
7297 | withscores: "WITHSCORES"
|
7298 | ]): Result<Buffer[], Context>;
|
7299 | /**
|
7300 | * Intersect multiple sorted sets and return the cardinality of the result
|
7301 | * - _group_: sorted-set
|
7302 | * - _complexity_: O(N*K) worst case with N being the smallest input sorted set, K being the number of input sorted sets.
|
7303 | * - _since_: 7.0.0
|
7304 | */
|
7305 | zintercard(...args: [
|
7306 | numkeys: number | string,
|
7307 | ...keys: RedisKey[],
|
7308 | callback: Callback<number>
|
7309 | ]): Result<number, Context>;
|
7310 | zintercard(...args: [
|
7311 | numkeys: number | string,
|
7312 | keys: RedisKey[],
|
7313 | callback: Callback<number>
|
7314 | ]): Result<number, Context>;
|
7315 | zintercard(...args: [numkeys: number | string, ...keys: RedisKey[]]): Result<number, Context>;
|
7316 | zintercard(...args: [numkeys: number | string, keys: RedisKey[]]): Result<number, Context>;
|
7317 | zintercard(...args: [
|
7318 | numkeys: number | string,
|
7319 | ...keys: RedisKey[],
|
7320 | limitToken: "LIMIT",
|
7321 | limit: number | string,
|
7322 | callback: Callback<number>
|
7323 | ]): Result<number, Context>;
|
7324 | zintercard(...args: [
|
7325 | numkeys: number | string,
|
7326 | keys: RedisKey[],
|
7327 | limitToken: "LIMIT",
|
7328 | limit: number | string,
|
7329 | callback: Callback<number>
|
7330 | ]): Result<number, Context>;
|
7331 | zintercard(...args: [
|
7332 | numkeys: number | string,
|
7333 | ...keys: RedisKey[],
|
7334 | limitToken: "LIMIT",
|
7335 | limit: number | string
|
7336 | ]): Result<number, Context>;
|
7337 | zintercard(...args: [
|
7338 | numkeys: number | string,
|
7339 | keys: RedisKey[],
|
7340 | limitToken: "LIMIT",
|
7341 | limit: number | string
|
7342 | ]): Result<number, Context>;
|
7343 | /**
|
7344 | * Intersect multiple sorted sets and store the resulting sorted set in a new key
|
7345 | * - _group_: sorted-set
|
7346 | * - _complexity_: O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.
|
7347 | * - _since_: 2.0.0
|
7348 | */
|
7349 | zinterstore(...args: [
|
7350 | destination: RedisKey,
|
7351 | numkeys: number | string,
|
7352 | ...keys: RedisKey[],
|
7353 | callback: Callback<number>
|
7354 | ]): Result<number, Context>;
|
7355 | zinterstore(...args: [
|
7356 | destination: RedisKey,
|
7357 | numkeys: number | string,
|
7358 | keys: RedisKey[],
|
7359 | callback: Callback<number>
|
7360 | ]): Result<number, Context>;
|
7361 | zinterstore(...args: [
|
7362 | destination: RedisKey,
|
7363 | numkeys: number | string,
|
7364 | ...keys: RedisKey[]
|
7365 | ]): Result<number, Context>;
|
7366 | zinterstore(...args: [destination: RedisKey, numkeys: number | string, keys: RedisKey[]]): Result<number, Context>;
|
7367 | zinterstore(...args: [
|
7368 | destination: RedisKey,
|
7369 | numkeys: number | string,
|
7370 | ...keys: RedisKey[],
|
7371 | aggregate: "AGGREGATE",
|
7372 | sum: "SUM",
|
7373 | callback: Callback<number>
|
7374 | ]): Result<number, Context>;
|
7375 | zinterstore(...args: [
|
7376 | destination: RedisKey,
|
7377 | numkeys: number | string,
|
7378 | keys: RedisKey[],
|
7379 | aggregate: "AGGREGATE",
|
7380 | sum: "SUM",
|
7381 | callback: Callback<number>
|
7382 | ]): Result<number, Context>;
|
7383 | zinterstore(...args: [
|
7384 | destination: RedisKey,
|
7385 | numkeys: number | string,
|
7386 | ...keys: RedisKey[],
|
7387 | aggregate: "AGGREGATE",
|
7388 | sum: "SUM"
|
7389 | ]): Result<number, Context>;
|
7390 | zinterstore(...args: [
|
7391 | destination: RedisKey,
|
7392 | numkeys: number | string,
|
7393 | keys: RedisKey[],
|
7394 | aggregate: "AGGREGATE",
|
7395 | sum: "SUM"
|
7396 | ]): Result<number, Context>;
|
7397 | zinterstore(...args: [
|
7398 | destination: RedisKey,
|
7399 | numkeys: number | string,
|
7400 | ...keys: RedisKey[],
|
7401 | aggregate: "AGGREGATE",
|
7402 | min: "MIN",
|
7403 | callback: Callback<number>
|
7404 | ]): Result<number, Context>;
|
7405 | zinterstore(...args: [
|
7406 | destination: RedisKey,
|
7407 | numkeys: number | string,
|
7408 | keys: RedisKey[],
|
7409 | aggregate: "AGGREGATE",
|
7410 | min: "MIN",
|
7411 | callback: Callback<number>
|
7412 | ]): Result<number, Context>;
|
7413 | zinterstore(...args: [
|
7414 | destination: RedisKey,
|
7415 | numkeys: number | string,
|
7416 | ...keys: RedisKey[],
|
7417 | aggregate: "AGGREGATE",
|
7418 | min: "MIN"
|
7419 | ]): Result<number, Context>;
|
7420 | zinterstore(...args: [
|
7421 | destination: RedisKey,
|
7422 | numkeys: number | string,
|
7423 | keys: RedisKey[],
|
7424 | aggregate: "AGGREGATE",
|
7425 | min: "MIN"
|
7426 | ]): Result<number, Context>;
|
7427 | zinterstore(...args: [
|
7428 | destination: RedisKey,
|
7429 | numkeys: number | string,
|
7430 | ...keys: RedisKey[],
|
7431 | aggregate: "AGGREGATE",
|
7432 | max: "MAX",
|
7433 | callback: Callback<number>
|
7434 | ]): Result<number, Context>;
|
7435 | zinterstore(...args: [
|
7436 | destination: RedisKey,
|
7437 | numkeys: number | string,
|
7438 | keys: RedisKey[],
|
7439 | aggregate: "AGGREGATE",
|
7440 | max: "MAX",
|
7441 | callback: Callback<number>
|
7442 | ]): Result<number, Context>;
|
7443 | zinterstore(...args: [
|
7444 | destination: RedisKey,
|
7445 | numkeys: number | string,
|
7446 | ...keys: RedisKey[],
|
7447 | aggregate: "AGGREGATE",
|
7448 | max: "MAX"
|
7449 | ]): Result<number, Context>;
|
7450 | zinterstore(...args: [
|
7451 | destination: RedisKey,
|
7452 | numkeys: number | string,
|
7453 | keys: RedisKey[],
|
7454 | aggregate: "AGGREGATE",
|
7455 | max: "MAX"
|
7456 | ]): Result<number, Context>;
|
7457 | zinterstore(...args: [
|
7458 | destination: RedisKey,
|
7459 | numkeys: number | string,
|
7460 | ...args: RedisValue[],
|
7461 | callback: Callback<number>
|
7462 | ]): Result<number, Context>;
|
7463 | zinterstore(...args: [
|
7464 | destination: RedisKey,
|
7465 | numkeys: number | string,
|
7466 | ...args: RedisValue[]
|
7467 | ]): Result<number, Context>;
|
7468 | zinterstore(...args: [
|
7469 | destination: RedisKey,
|
7470 | numkeys: number | string,
|
7471 | ...args: RedisValue[],
|
7472 | aggregate: "AGGREGATE",
|
7473 | sum: "SUM",
|
7474 | callback: Callback<number>
|
7475 | ]): Result<number, Context>;
|
7476 | zinterstore(...args: [
|
7477 | destination: RedisKey,
|
7478 | numkeys: number | string,
|
7479 | ...args: RedisValue[],
|
7480 | aggregate: "AGGREGATE",
|
7481 | sum: "SUM"
|
7482 | ]): Result<number, Context>;
|
7483 | zinterstore(...args: [
|
7484 | destination: RedisKey,
|
7485 | numkeys: number | string,
|
7486 | ...args: RedisValue[],
|
7487 | aggregate: "AGGREGATE",
|
7488 | min: "MIN",
|
7489 | callback: Callback<number>
|
7490 | ]): Result<number, Context>;
|
7491 | zinterstore(...args: [
|
7492 | destination: RedisKey,
|
7493 | numkeys: number | string,
|
7494 | ...args: RedisValue[],
|
7495 | aggregate: "AGGREGATE",
|
7496 | min: "MIN"
|
7497 | ]): Result<number, Context>;
|
7498 | zinterstore(...args: [
|
7499 | destination: RedisKey,
|
7500 | numkeys: number | string,
|
7501 | ...args: RedisValue[],
|
7502 | aggregate: "AGGREGATE",
|
7503 | max: "MAX",
|
7504 | callback: Callback<number>
|
7505 | ]): Result<number, Context>;
|
7506 | zinterstore(...args: [
|
7507 | destination: RedisKey,
|
7508 | numkeys: number | string,
|
7509 | ...args: RedisValue[],
|
7510 | aggregate: "AGGREGATE",
|
7511 | max: "MAX"
|
7512 | ]): Result<number, Context>;
|
7513 | /**
|
7514 | * Count the number of members in a sorted set between a given lexicographical range
|
7515 | * - _group_: sorted-set
|
7516 | * - _complexity_: O(log(N)) with N being the number of elements in the sorted set.
|
7517 | * - _since_: 2.8.9
|
7518 | */
|
7519 | zlexcount(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
7520 | /**
|
7521 | * Remove and return members with scores in a sorted set
|
7522 | * - _group_: sorted-set
|
7523 | * - _complexity_: O(K) + O(N*log(M)) where K is the number of provided keys, N being the number of elements in the sorted set, and M being the number of elements popped.
|
7524 | * - _since_: 7.0.0
|
7525 | */
|
7526 | zmpop(...args: [
|
7527 | numkeys: number | string,
|
7528 | ...keys: RedisKey[],
|
7529 | min: "MIN",
|
7530 | callback: Callback<unknown>
|
7531 | ]): Result<unknown, Context>;
|
7532 | zmpop(...args: [
|
7533 | numkeys: number | string,
|
7534 | keys: RedisKey[],
|
7535 | min: "MIN",
|
7536 | callback: Callback<unknown>
|
7537 | ]): Result<unknown, Context>;
|
7538 | zmpop(...args: [numkeys: number | string, ...keys: RedisKey[], min: "MIN"]): Result<unknown, Context>;
|
7539 | zmpop(...args: [numkeys: number | string, keys: RedisKey[], min: "MIN"]): Result<unknown, Context>;
|
7540 | zmpop(...args: [
|
7541 | numkeys: number | string,
|
7542 | ...keys: RedisKey[],
|
7543 | min: "MIN",
|
7544 | countToken: "COUNT",
|
7545 | count: number | string,
|
7546 | callback: Callback<unknown>
|
7547 | ]): Result<unknown, Context>;
|
7548 | zmpop(...args: [
|
7549 | numkeys: number | string,
|
7550 | keys: RedisKey[],
|
7551 | min: "MIN",
|
7552 | countToken: "COUNT",
|
7553 | count: number | string,
|
7554 | callback: Callback<unknown>
|
7555 | ]): Result<unknown, Context>;
|
7556 | zmpop(...args: [
|
7557 | numkeys: number | string,
|
7558 | ...keys: RedisKey[],
|
7559 | min: "MIN",
|
7560 | countToken: "COUNT",
|
7561 | count: number | string
|
7562 | ]): Result<unknown, Context>;
|
7563 | zmpop(...args: [
|
7564 | numkeys: number | string,
|
7565 | keys: RedisKey[],
|
7566 | min: "MIN",
|
7567 | countToken: "COUNT",
|
7568 | count: number | string
|
7569 | ]): Result<unknown, Context>;
|
7570 | zmpop(...args: [
|
7571 | numkeys: number | string,
|
7572 | ...keys: RedisKey[],
|
7573 | max: "MAX",
|
7574 | callback: Callback<unknown>
|
7575 | ]): Result<unknown, Context>;
|
7576 | zmpop(...args: [
|
7577 | numkeys: number | string,
|
7578 | keys: RedisKey[],
|
7579 | max: "MAX",
|
7580 | callback: Callback<unknown>
|
7581 | ]): Result<unknown, Context>;
|
7582 | zmpop(...args: [numkeys: number | string, ...keys: RedisKey[], max: "MAX"]): Result<unknown, Context>;
|
7583 | zmpop(...args: [numkeys: number | string, keys: RedisKey[], max: "MAX"]): Result<unknown, Context>;
|
7584 | zmpop(...args: [
|
7585 | numkeys: number | string,
|
7586 | ...keys: RedisKey[],
|
7587 | max: "MAX",
|
7588 | countToken: "COUNT",
|
7589 | count: number | string,
|
7590 | callback: Callback<unknown>
|
7591 | ]): Result<unknown, Context>;
|
7592 | zmpop(...args: [
|
7593 | numkeys: number | string,
|
7594 | keys: RedisKey[],
|
7595 | max: "MAX",
|
7596 | countToken: "COUNT",
|
7597 | count: number | string,
|
7598 | callback: Callback<unknown>
|
7599 | ]): Result<unknown, Context>;
|
7600 | zmpop(...args: [
|
7601 | numkeys: number | string,
|
7602 | ...keys: RedisKey[],
|
7603 | max: "MAX",
|
7604 | countToken: "COUNT",
|
7605 | count: number | string
|
7606 | ]): Result<unknown, Context>;
|
7607 | zmpop(...args: [
|
7608 | numkeys: number | string,
|
7609 | keys: RedisKey[],
|
7610 | max: "MAX",
|
7611 | countToken: "COUNT",
|
7612 | count: number | string
|
7613 | ]): Result<unknown, Context>;
|
7614 | /**
|
7615 | * Get the score associated with the given members in a sorted set
|
7616 | * - _group_: sorted-set
|
7617 | * - _complexity_: O(N) where N is the number of members being requested.
|
7618 | * - _since_: 6.2.0
|
7619 | */
|
7620 | zmscore(...args: [
|
7621 | key: RedisKey,
|
7622 | ...members: (string | Buffer | number)[],
|
7623 | callback: Callback<(string | null)[]>
|
7624 | ]): Result<(string | null)[], Context>;
|
7625 | zmscoreBuffer(...args: [
|
7626 | key: RedisKey,
|
7627 | ...members: (string | Buffer | number)[],
|
7628 | callback: Callback<(Buffer | null)[]>
|
7629 | ]): Result<(Buffer | null)[], Context>;
|
7630 | zmscore(...args: [
|
7631 | key: RedisKey,
|
7632 | members: (string | Buffer | number)[],
|
7633 | callback: Callback<(string | null)[]>
|
7634 | ]): Result<(string | null)[], Context>;
|
7635 | zmscoreBuffer(...args: [
|
7636 | key: RedisKey,
|
7637 | members: (string | Buffer | number)[],
|
7638 | callback: Callback<(Buffer | null)[]>
|
7639 | ]): Result<(Buffer | null)[], Context>;
|
7640 | zmscore(...args: [key: RedisKey, ...members: (string | Buffer | number)[]]): Result<(string | null)[], Context>;
|
7641 | zmscoreBuffer(...args: [key: RedisKey, ...members: (string | Buffer | number)[]]): Result<(Buffer | null)[], Context>;
|
7642 | zmscore(...args: [key: RedisKey, members: (string | Buffer | number)[]]): Result<(string | null)[], Context>;
|
7643 | zmscoreBuffer(...args: [key: RedisKey, members: (string | Buffer | number)[]]): Result<(Buffer | null)[], Context>;
|
7644 | /**
|
7645 | * Remove and return members with the highest scores in a sorted set
|
7646 | * - _group_: sorted-set
|
7647 | * - _complexity_: O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped.
|
7648 | * - _since_: 5.0.0
|
7649 | */
|
7650 | zpopmax(key: RedisKey, callback?: Callback<string[]>): Result<string[], Context>;
|
7651 | zpopmaxBuffer(key: RedisKey, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7652 | zpopmax(key: RedisKey, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7653 | zpopmaxBuffer(key: RedisKey, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7654 | /**
|
7655 | * Remove and return members with the lowest scores in a sorted set
|
7656 | * - _group_: sorted-set
|
7657 | * - _complexity_: O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped.
|
7658 | * - _since_: 5.0.0
|
7659 | */
|
7660 | zpopmin(key: RedisKey, callback?: Callback<string[]>): Result<string[], Context>;
|
7661 | zpopminBuffer(key: RedisKey, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7662 | zpopmin(key: RedisKey, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7663 | zpopminBuffer(key: RedisKey, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7664 | /**
|
7665 | * Get one or multiple random elements from a sorted set
|
7666 | * - _group_: sorted-set
|
7667 | * - _complexity_: O(N) where N is the number of elements returned
|
7668 | * - _since_: 6.2.0
|
7669 | */
|
7670 | zrandmember(key: RedisKey, callback?: Callback<string | null>): Result<string | null, Context>;
|
7671 | zrandmemberBuffer(key: RedisKey, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
7672 | zrandmember(key: RedisKey, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7673 | zrandmemberBuffer(key: RedisKey, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7674 | zrandmember(key: RedisKey, count: number | string, withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7675 | zrandmemberBuffer(key: RedisKey, count: number | string, withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7676 | /**
|
7677 | * Return a range of members in a sorted set
|
7678 | * - _group_: sorted-set
|
7679 | * - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.
|
7680 | * - _since_: 1.2.0
|
7681 | */
|
7682 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, callback?: Callback<string[]>): Result<string[], Context>;
|
7683 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7684 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7685 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7686 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7687 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7688 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7689 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7690 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, rev: "REV", callback?: Callback<string[]>): Result<string[], Context>;
|
7691 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, rev: "REV", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7692 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, rev: "REV", withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7693 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, rev: "REV", withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7694 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7695 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7696 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7697 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7698 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", callback?: Callback<string[]>): Result<string[], Context>;
|
7699 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7700 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7701 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7702 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7703 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7704 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7705 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7706 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", rev: "REV", callback?: Callback<string[]>): Result<string[], Context>;
|
7707 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", rev: "REV", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7708 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", rev: "REV", withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7709 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", rev: "REV", withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7710 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7711 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7712 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7713 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7714 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", callback?: Callback<string[]>): Result<string[], Context>;
|
7715 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7716 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7717 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7718 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7719 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7720 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7721 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7722 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", rev: "REV", callback?: Callback<string[]>): Result<string[], Context>;
|
7723 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", rev: "REV", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7724 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", rev: "REV", withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7725 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", rev: "REV", withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7726 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7727 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7728 | zrange(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7729 | zrangeBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7730 | /**
|
7731 | * Return a range of members in a sorted set, by lexicographical range
|
7732 | * - _group_: sorted-set
|
7733 | * - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).
|
7734 | * - _since_: 2.8.9
|
7735 | */
|
7736 | zrangebylex(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, callback?: Callback<string[]>): Result<string[], Context>;
|
7737 | zrangebylexBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7738 | zrangebylex(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7739 | zrangebylexBuffer(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7740 | /**
|
7741 | * Return a range of members in a sorted set, by score
|
7742 | * - _group_: sorted-set
|
7743 | * - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).
|
7744 | * - _since_: 1.0.5
|
7745 | */
|
7746 | zrangebyscore(key: RedisKey, min: number | string, max: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7747 | zrangebyscoreBuffer(key: RedisKey, min: number | string, max: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7748 | zrangebyscore(key: RedisKey, min: number | string, max: number | string, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7749 | zrangebyscoreBuffer(key: RedisKey, min: number | string, max: number | string, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7750 | zrangebyscore(key: RedisKey, min: number | string, max: number | string, withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7751 | zrangebyscoreBuffer(key: RedisKey, min: number | string, max: number | string, withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7752 | zrangebyscore(key: RedisKey, min: number | string, max: number | string, withscores: "WITHSCORES", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7753 | zrangebyscoreBuffer(key: RedisKey, min: number | string, max: number | string, withscores: "WITHSCORES", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7754 | /**
|
7755 | * Store a range of members from sorted set into another key
|
7756 | * - _group_: sorted-set
|
7757 | * - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements stored into the destination key.
|
7758 | * - _since_: 6.2.0
|
7759 | */
|
7760 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
7761 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<number>): Result<number, Context>;
|
7762 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, rev: "REV", callback?: Callback<number>): Result<number, Context>;
|
7763 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<number>): Result<number, Context>;
|
7764 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", callback?: Callback<number>): Result<number, Context>;
|
7765 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<number>): Result<number, Context>;
|
7766 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", rev: "REV", callback?: Callback<number>): Result<number, Context>;
|
7767 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: "BYSCORE", rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<number>): Result<number, Context>;
|
7768 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", callback?: Callback<number>): Result<number, Context>;
|
7769 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<number>): Result<number, Context>;
|
7770 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", rev: "REV", callback?: Callback<number>): Result<number, Context>;
|
7771 | zrangestore(dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, bylex: "BYLEX", rev: "REV", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<number>): Result<number, Context>;
|
7772 | /**
|
7773 | * Determine the index of a member in a sorted set
|
7774 | * - _group_: sorted-set
|
7775 | * - _complexity_: O(log(N))
|
7776 | * - _since_: 2.0.0
|
7777 | */
|
7778 | zrank(key: RedisKey, member: string | Buffer | number, callback?: Callback<number | null>): Result<number | null, Context>;
|
7779 | /**
|
7780 | * Remove one or more members from a sorted set
|
7781 | * - _group_: sorted-set
|
7782 | * - _complexity_: O(M*log(N)) with N being the number of elements in the sorted set and M the number of elements to be removed.
|
7783 | * - _since_: 1.2.0
|
7784 | */
|
7785 | zrem(...args: [
|
7786 | key: RedisKey,
|
7787 | ...members: (string | Buffer | number)[],
|
7788 | callback: Callback<number>
|
7789 | ]): Result<number, Context>;
|
7790 | zrem(...args: [
|
7791 | key: RedisKey,
|
7792 | members: (string | Buffer | number)[],
|
7793 | callback: Callback<number>
|
7794 | ]): Result<number, Context>;
|
7795 | zrem(...args: [key: RedisKey, ...members: (string | Buffer | number)[]]): Result<number, Context>;
|
7796 | zrem(...args: [key: RedisKey, members: (string | Buffer | number)[]]): Result<number, Context>;
|
7797 | /**
|
7798 | * Remove all members in a sorted set between the given lexicographical range
|
7799 | * - _group_: sorted-set
|
7800 | * - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.
|
7801 | * - _since_: 2.8.9
|
7802 | */
|
7803 | zremrangebylex(key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, callback?: Callback<number>): Result<number, Context>;
|
7804 | /**
|
7805 | * Remove all members in a sorted set within the given indexes
|
7806 | * - _group_: sorted-set
|
7807 | * - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.
|
7808 | * - _since_: 2.0.0
|
7809 | */
|
7810 | zremrangebyrank(key: RedisKey, start: number | string, stop: number | string, callback?: Callback<number>): Result<number, Context>;
|
7811 | /**
|
7812 | * Remove all members in a sorted set within the given scores
|
7813 | * - _group_: sorted-set
|
7814 | * - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation.
|
7815 | * - _since_: 1.2.0
|
7816 | */
|
7817 | zremrangebyscore(key: RedisKey, min: number | string, max: number | string, callback?: Callback<number>): Result<number, Context>;
|
7818 | /**
|
7819 | * Return a range of members in a sorted set, by index, with scores ordered from high to low
|
7820 | * - _group_: sorted-set
|
7821 | * - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.
|
7822 | * - _since_: 1.2.0
|
7823 | */
|
7824 | zrevrange(key: RedisKey, start: number | string, stop: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7825 | zrevrangeBuffer(key: RedisKey, start: number | string, stop: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7826 | zrevrange(key: RedisKey, start: number | string, stop: number | string, withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7827 | zrevrangeBuffer(key: RedisKey, start: number | string, stop: number | string, withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7828 | /**
|
7829 | * Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.
|
7830 | * - _group_: sorted-set
|
7831 | * - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).
|
7832 | * - _since_: 2.8.9
|
7833 | */
|
7834 | zrevrangebylex(key: RedisKey, max: string | Buffer | number, min: string | Buffer | number, callback?: Callback<string[]>): Result<string[], Context>;
|
7835 | zrevrangebylexBuffer(key: RedisKey, max: string | Buffer | number, min: string | Buffer | number, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7836 | zrevrangebylex(key: RedisKey, max: string | Buffer | number, min: string | Buffer | number, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7837 | zrevrangebylexBuffer(key: RedisKey, max: string | Buffer | number, min: string | Buffer | number, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7838 | /**
|
7839 | * Return a range of members in a sorted set, by score, with scores ordered from high to low
|
7840 | * - _group_: sorted-set
|
7841 | * - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).
|
7842 | * - _since_: 2.2.0
|
7843 | */
|
7844 | zrevrangebyscore(key: RedisKey, max: number | string, min: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7845 | zrevrangebyscoreBuffer(key: RedisKey, max: number | string, min: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7846 | zrevrangebyscore(key: RedisKey, max: number | string, min: number | string, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7847 | zrevrangebyscoreBuffer(key: RedisKey, max: number | string, min: number | string, offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7848 | zrevrangebyscore(key: RedisKey, max: number | string, min: number | string, withscores: "WITHSCORES", callback?: Callback<string[]>): Result<string[], Context>;
|
7849 | zrevrangebyscoreBuffer(key: RedisKey, max: number | string, min: number | string, withscores: "WITHSCORES", callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7850 | zrevrangebyscore(key: RedisKey, max: number | string, min: number | string, withscores: "WITHSCORES", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<string[]>): Result<string[], Context>;
|
7851 | zrevrangebyscoreBuffer(key: RedisKey, max: number | string, min: number | string, withscores: "WITHSCORES", offsetCountToken: "LIMIT", offset: number | string, count: number | string, callback?: Callback<Buffer[]>): Result<Buffer[], Context>;
|
7852 | /**
|
7853 | * Determine the index of a member in a sorted set, with scores ordered from high to low
|
7854 | * - _group_: sorted-set
|
7855 | * - _complexity_: O(log(N))
|
7856 | * - _since_: 2.0.0
|
7857 | */
|
7858 | zrevrank(key: RedisKey, member: string | Buffer | number, callback?: Callback<number | null>): Result<number | null, Context>;
|
7859 | /**
|
7860 | * Incrementally iterate sorted sets elements and associated scores
|
7861 | * - _group_: sorted-set
|
7862 | * - _complexity_: O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection..
|
7863 | * - _since_: 2.8.0
|
7864 | */
|
7865 | zscan(key: RedisKey, cursor: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
7866 | zscanBuffer(key: RedisKey, cursor: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
7867 | zscan(key: RedisKey, cursor: number | string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
7868 | zscanBuffer(key: RedisKey, cursor: number | string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
7869 | zscan(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
7870 | zscanBuffer(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
7871 | zscan(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: string, elements: string[]]>): Result<[cursor: string, elements: string[]], Context>;
|
7872 | zscanBuffer(key: RedisKey, cursor: number | string, patternToken: "MATCH", pattern: string, countToken: "COUNT", count: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]>): Result<[cursor: Buffer, elements: Buffer[]], Context>;
|
7873 | /**
|
7874 | * Get the score associated with the given member in a sorted set
|
7875 | * - _group_: sorted-set
|
7876 | * - _complexity_: O(1)
|
7877 | * - _since_: 1.2.0
|
7878 | */
|
7879 | zscore(key: RedisKey, member: string | Buffer | number, callback?: Callback<string | null>): Result<string | null, Context>;
|
7880 | zscoreBuffer(key: RedisKey, member: string | Buffer | number, callback?: Callback<Buffer | null>): Result<Buffer | null, Context>;
|
7881 | /**
|
7882 | * Add multiple sorted sets
|
7883 | * - _group_: sorted-set
|
7884 | * - _complexity_: O(N)+O(M*log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.
|
7885 | * - _since_: 6.2.0
|
7886 | */
|
7887 | zunion(...args: [
|
7888 | numkeys: number | string,
|
7889 | ...keys: RedisKey[],
|
7890 | callback: Callback<string[]>
|
7891 | ]): Result<string[], Context>;
|
7892 | zunionBuffer(...args: [
|
7893 | numkeys: number | string,
|
7894 | ...keys: RedisKey[],
|
7895 | callback: Callback<Buffer[]>
|
7896 | ]): Result<Buffer[], Context>;
|
7897 | zunion(...args: [
|
7898 | numkeys: number | string,
|
7899 | keys: RedisKey[],
|
7900 | callback: Callback<string[]>
|
7901 | ]): Result<string[], Context>;
|
7902 | zunionBuffer(...args: [
|
7903 | numkeys: number | string,
|
7904 | keys: RedisKey[],
|
7905 | callback: Callback<Buffer[]>
|
7906 | ]): Result<Buffer[], Context>;
|
7907 | zunion(...args: [numkeys: number | string, ...keys: RedisKey[]]): Result<string[], Context>;
|
7908 | zunionBuffer(...args: [numkeys: number | string, ...keys: RedisKey[]]): Result<Buffer[], Context>;
|
7909 | zunion(...args: [numkeys: number | string, keys: RedisKey[]]): Result<string[], Context>;
|
7910 | zunionBuffer(...args: [numkeys: number | string, keys: RedisKey[]]): Result<Buffer[], Context>;
|
7911 | zunion(...args: [
|
7912 | numkeys: number | string,
|
7913 | ...keys: RedisKey[],
|
7914 | withscores: "WITHSCORES",
|
7915 | callback: Callback<string[]>
|
7916 | ]): Result<string[], Context>;
|
7917 | zunionBuffer(...args: [
|
7918 | numkeys: number | string,
|
7919 | ...keys: RedisKey[],
|
7920 | withscores: "WITHSCORES",
|
7921 | callback: Callback<Buffer[]>
|
7922 | ]): Result<Buffer[], Context>;
|
7923 | zunion(...args: [
|
7924 | numkeys: number | string,
|
7925 | keys: RedisKey[],
|
7926 | withscores: "WITHSCORES",
|
7927 | callback: Callback<string[]>
|
7928 | ]): Result<string[], Context>;
|
7929 | zunionBuffer(...args: [
|
7930 | numkeys: number | string,
|
7931 | keys: RedisKey[],
|
7932 | withscores: "WITHSCORES",
|
7933 | callback: Callback<Buffer[]>
|
7934 | ]): Result<Buffer[], Context>;
|
7935 | zunion(...args: [
|
7936 | numkeys: number | string,
|
7937 | ...keys: RedisKey[],
|
7938 | withscores: "WITHSCORES"
|
7939 | ]): Result<string[], Context>;
|
7940 | zunionBuffer(...args: [
|
7941 | numkeys: number | string,
|
7942 | ...keys: RedisKey[],
|
7943 | withscores: "WITHSCORES"
|
7944 | ]): Result<Buffer[], Context>;
|
7945 | zunion(...args: [
|
7946 | numkeys: number | string,
|
7947 | keys: RedisKey[],
|
7948 | withscores: "WITHSCORES"
|
7949 | ]): Result<string[], Context>;
|
7950 | zunionBuffer(...args: [
|
7951 | numkeys: number | string,
|
7952 | keys: RedisKey[],
|
7953 | withscores: "WITHSCORES"
|
7954 | ]): Result<Buffer[], Context>;
|
7955 | zunion(...args: [
|
7956 | numkeys: number | string,
|
7957 | ...keys: RedisKey[],
|
7958 | aggregate: "AGGREGATE",
|
7959 | sum: "SUM",
|
7960 | callback: Callback<string[]>
|
7961 | ]): Result<string[], Context>;
|
7962 | zunionBuffer(...args: [
|
7963 | numkeys: number | string,
|
7964 | ...keys: RedisKey[],
|
7965 | aggregate: "AGGREGATE",
|
7966 | sum: "SUM",
|
7967 | callback: Callback<Buffer[]>
|
7968 | ]): Result<Buffer[], Context>;
|
7969 | zunion(...args: [
|
7970 | numkeys: number | string,
|
7971 | keys: RedisKey[],
|
7972 | aggregate: "AGGREGATE",
|
7973 | sum: "SUM",
|
7974 | callback: Callback<string[]>
|
7975 | ]): Result<string[], Context>;
|
7976 | zunionBuffer(...args: [
|
7977 | numkeys: number | string,
|
7978 | keys: RedisKey[],
|
7979 | aggregate: "AGGREGATE",
|
7980 | sum: "SUM",
|
7981 | callback: Callback<Buffer[]>
|
7982 | ]): Result<Buffer[], Context>;
|
7983 | zunion(...args: [
|
7984 | numkeys: number | string,
|
7985 | ...keys: RedisKey[],
|
7986 | aggregate: "AGGREGATE",
|
7987 | sum: "SUM"
|
7988 | ]): Result<string[], Context>;
|
7989 | zunionBuffer(...args: [
|
7990 | numkeys: number | string,
|
7991 | ...keys: RedisKey[],
|
7992 | aggregate: "AGGREGATE",
|
7993 | sum: "SUM"
|
7994 | ]): Result<Buffer[], Context>;
|
7995 | zunion(...args: [
|
7996 | numkeys: number | string,
|
7997 | keys: RedisKey[],
|
7998 | aggregate: "AGGREGATE",
|
7999 | sum: "SUM"
|
8000 | ]): Result<string[], Context>;
|
8001 | zunionBuffer(...args: [
|
8002 | numkeys: number | string,
|
8003 | keys: RedisKey[],
|
8004 | aggregate: "AGGREGATE",
|
8005 | sum: "SUM"
|
8006 | ]): Result<Buffer[], Context>;
|
8007 | zunion(...args: [
|
8008 | numkeys: number | string,
|
8009 | ...keys: RedisKey[],
|
8010 | aggregate: "AGGREGATE",
|
8011 | sum: "SUM",
|
8012 | withscores: "WITHSCORES",
|
8013 | callback: Callback<string[]>
|
8014 | ]): Result<string[], Context>;
|
8015 | zunionBuffer(...args: [
|
8016 | numkeys: number | string,
|
8017 | ...keys: RedisKey[],
|
8018 | aggregate: "AGGREGATE",
|
8019 | sum: "SUM",
|
8020 | withscores: "WITHSCORES",
|
8021 | callback: Callback<Buffer[]>
|
8022 | ]): Result<Buffer[], Context>;
|
8023 | zunion(...args: [
|
8024 | numkeys: number | string,
|
8025 | keys: RedisKey[],
|
8026 | aggregate: "AGGREGATE",
|
8027 | sum: "SUM",
|
8028 | withscores: "WITHSCORES",
|
8029 | callback: Callback<string[]>
|
8030 | ]): Result<string[], Context>;
|
8031 | zunionBuffer(...args: [
|
8032 | numkeys: number | string,
|
8033 | keys: RedisKey[],
|
8034 | aggregate: "AGGREGATE",
|
8035 | sum: "SUM",
|
8036 | withscores: "WITHSCORES",
|
8037 | callback: Callback<Buffer[]>
|
8038 | ]): Result<Buffer[], Context>;
|
8039 | zunion(...args: [
|
8040 | numkeys: number | string,
|
8041 | ...keys: RedisKey[],
|
8042 | aggregate: "AGGREGATE",
|
8043 | sum: "SUM",
|
8044 | withscores: "WITHSCORES"
|
8045 | ]): Result<string[], Context>;
|
8046 | zunionBuffer(...args: [
|
8047 | numkeys: number | string,
|
8048 | ...keys: RedisKey[],
|
8049 | aggregate: "AGGREGATE",
|
8050 | sum: "SUM",
|
8051 | withscores: "WITHSCORES"
|
8052 | ]): Result<Buffer[], Context>;
|
8053 | zunion(...args: [
|
8054 | numkeys: number | string,
|
8055 | keys: RedisKey[],
|
8056 | aggregate: "AGGREGATE",
|
8057 | sum: "SUM",
|
8058 | withscores: "WITHSCORES"
|
8059 | ]): Result<string[], Context>;
|
8060 | zunionBuffer(...args: [
|
8061 | numkeys: number | string,
|
8062 | keys: RedisKey[],
|
8063 | aggregate: "AGGREGATE",
|
8064 | sum: "SUM",
|
8065 | withscores: "WITHSCORES"
|
8066 | ]): Result<Buffer[], Context>;
|
8067 | zunion(...args: [
|
8068 | numkeys: number | string,
|
8069 | ...keys: RedisKey[],
|
8070 | aggregate: "AGGREGATE",
|
8071 | min: "MIN",
|
8072 | callback: Callback<string[]>
|
8073 | ]): Result<string[], Context>;
|
8074 | zunionBuffer(...args: [
|
8075 | numkeys: number | string,
|
8076 | ...keys: RedisKey[],
|
8077 | aggregate: "AGGREGATE",
|
8078 | min: "MIN",
|
8079 | callback: Callback<Buffer[]>
|
8080 | ]): Result<Buffer[], Context>;
|
8081 | zunion(...args: [
|
8082 | numkeys: number | string,
|
8083 | keys: RedisKey[],
|
8084 | aggregate: "AGGREGATE",
|
8085 | min: "MIN",
|
8086 | callback: Callback<string[]>
|
8087 | ]): Result<string[], Context>;
|
8088 | zunionBuffer(...args: [
|
8089 | numkeys: number | string,
|
8090 | keys: RedisKey[],
|
8091 | aggregate: "AGGREGATE",
|
8092 | min: "MIN",
|
8093 | callback: Callback<Buffer[]>
|
8094 | ]): Result<Buffer[], Context>;
|
8095 | zunion(...args: [
|
8096 | numkeys: number | string,
|
8097 | ...keys: RedisKey[],
|
8098 | aggregate: "AGGREGATE",
|
8099 | min: "MIN"
|
8100 | ]): Result<string[], Context>;
|
8101 | zunionBuffer(...args: [
|
8102 | numkeys: number | string,
|
8103 | ...keys: RedisKey[],
|
8104 | aggregate: "AGGREGATE",
|
8105 | min: "MIN"
|
8106 | ]): Result<Buffer[], Context>;
|
8107 | zunion(...args: [
|
8108 | numkeys: number | string,
|
8109 | keys: RedisKey[],
|
8110 | aggregate: "AGGREGATE",
|
8111 | min: "MIN"
|
8112 | ]): Result<string[], Context>;
|
8113 | zunionBuffer(...args: [
|
8114 | numkeys: number | string,
|
8115 | keys: RedisKey[],
|
8116 | aggregate: "AGGREGATE",
|
8117 | min: "MIN"
|
8118 | ]): Result<Buffer[], Context>;
|
8119 | zunion(...args: [
|
8120 | numkeys: number | string,
|
8121 | ...keys: RedisKey[],
|
8122 | aggregate: "AGGREGATE",
|
8123 | min: "MIN",
|
8124 | withscores: "WITHSCORES",
|
8125 | callback: Callback<string[]>
|
8126 | ]): Result<string[], Context>;
|
8127 | zunionBuffer(...args: [
|
8128 | numkeys: number | string,
|
8129 | ...keys: RedisKey[],
|
8130 | aggregate: "AGGREGATE",
|
8131 | min: "MIN",
|
8132 | withscores: "WITHSCORES",
|
8133 | callback: Callback<Buffer[]>
|
8134 | ]): Result<Buffer[], Context>;
|
8135 | zunion(...args: [
|
8136 | numkeys: number | string,
|
8137 | keys: RedisKey[],
|
8138 | aggregate: "AGGREGATE",
|
8139 | min: "MIN",
|
8140 | withscores: "WITHSCORES",
|
8141 | callback: Callback<string[]>
|
8142 | ]): Result<string[], Context>;
|
8143 | zunionBuffer(...args: [
|
8144 | numkeys: number | string,
|
8145 | keys: RedisKey[],
|
8146 | aggregate: "AGGREGATE",
|
8147 | min: "MIN",
|
8148 | withscores: "WITHSCORES",
|
8149 | callback: Callback<Buffer[]>
|
8150 | ]): Result<Buffer[], Context>;
|
8151 | zunion(...args: [
|
8152 | numkeys: number | string,
|
8153 | ...keys: RedisKey[],
|
8154 | aggregate: "AGGREGATE",
|
8155 | min: "MIN",
|
8156 | withscores: "WITHSCORES"
|
8157 | ]): Result<string[], Context>;
|
8158 | zunionBuffer(...args: [
|
8159 | numkeys: number | string,
|
8160 | ...keys: RedisKey[],
|
8161 | aggregate: "AGGREGATE",
|
8162 | min: "MIN",
|
8163 | withscores: "WITHSCORES"
|
8164 | ]): Result<Buffer[], Context>;
|
8165 | zunion(...args: [
|
8166 | numkeys: number | string,
|
8167 | keys: RedisKey[],
|
8168 | aggregate: "AGGREGATE",
|
8169 | min: "MIN",
|
8170 | withscores: "WITHSCORES"
|
8171 | ]): Result<string[], Context>;
|
8172 | zunionBuffer(...args: [
|
8173 | numkeys: number | string,
|
8174 | keys: RedisKey[],
|
8175 | aggregate: "AGGREGATE",
|
8176 | min: "MIN",
|
8177 | withscores: "WITHSCORES"
|
8178 | ]): Result<Buffer[], Context>;
|
8179 | zunion(...args: [
|
8180 | numkeys: number | string,
|
8181 | ...keys: RedisKey[],
|
8182 | aggregate: "AGGREGATE",
|
8183 | max: "MAX",
|
8184 | callback: Callback<string[]>
|
8185 | ]): Result<string[], Context>;
|
8186 | zunionBuffer(...args: [
|
8187 | numkeys: number | string,
|
8188 | ...keys: RedisKey[],
|
8189 | aggregate: "AGGREGATE",
|
8190 | max: "MAX",
|
8191 | callback: Callback<Buffer[]>
|
8192 | ]): Result<Buffer[], Context>;
|
8193 | zunion(...args: [
|
8194 | numkeys: number | string,
|
8195 | keys: RedisKey[],
|
8196 | aggregate: "AGGREGATE",
|
8197 | max: "MAX",
|
8198 | callback: Callback<string[]>
|
8199 | ]): Result<string[], Context>;
|
8200 | zunionBuffer(...args: [
|
8201 | numkeys: number | string,
|
8202 | keys: RedisKey[],
|
8203 | aggregate: "AGGREGATE",
|
8204 | max: "MAX",
|
8205 | callback: Callback<Buffer[]>
|
8206 | ]): Result<Buffer[], Context>;
|
8207 | zunion(...args: [
|
8208 | numkeys: number | string,
|
8209 | ...keys: RedisKey[],
|
8210 | aggregate: "AGGREGATE",
|
8211 | max: "MAX"
|
8212 | ]): Result<string[], Context>;
|
8213 | zunionBuffer(...args: [
|
8214 | numkeys: number | string,
|
8215 | ...keys: RedisKey[],
|
8216 | aggregate: "AGGREGATE",
|
8217 | max: "MAX"
|
8218 | ]): Result<Buffer[], Context>;
|
8219 | zunion(...args: [
|
8220 | numkeys: number | string,
|
8221 | keys: RedisKey[],
|
8222 | aggregate: "AGGREGATE",
|
8223 | max: "MAX"
|
8224 | ]): Result<string[], Context>;
|
8225 | zunionBuffer(...args: [
|
8226 | numkeys: number | string,
|
8227 | keys: RedisKey[],
|
8228 | aggregate: "AGGREGATE",
|
8229 | max: "MAX"
|
8230 | ]): Result<Buffer[], Context>;
|
8231 | zunion(...args: [
|
8232 | numkeys: number | string,
|
8233 | ...keys: RedisKey[],
|
8234 | aggregate: "AGGREGATE",
|
8235 | max: "MAX",
|
8236 | withscores: "WITHSCORES",
|
8237 | callback: Callback<string[]>
|
8238 | ]): Result<string[], Context>;
|
8239 | zunionBuffer(...args: [
|
8240 | numkeys: number | string,
|
8241 | ...keys: RedisKey[],
|
8242 | aggregate: "AGGREGATE",
|
8243 | max: "MAX",
|
8244 | withscores: "WITHSCORES",
|
8245 | callback: Callback<Buffer[]>
|
8246 | ]): Result<Buffer[], Context>;
|
8247 | zunion(...args: [
|
8248 | numkeys: number | string,
|
8249 | keys: RedisKey[],
|
8250 | aggregate: "AGGREGATE",
|
8251 | max: "MAX",
|
8252 | withscores: "WITHSCORES",
|
8253 | callback: Callback<string[]>
|
8254 | ]): Result<string[], Context>;
|
8255 | zunionBuffer(...args: [
|
8256 | numkeys: number | string,
|
8257 | keys: RedisKey[],
|
8258 | aggregate: "AGGREGATE",
|
8259 | max: "MAX",
|
8260 | withscores: "WITHSCORES",
|
8261 | callback: Callback<Buffer[]>
|
8262 | ]): Result<Buffer[], Context>;
|
8263 | zunion(...args: [
|
8264 | numkeys: number | string,
|
8265 | ...keys: RedisKey[],
|
8266 | aggregate: "AGGREGATE",
|
8267 | max: "MAX",
|
8268 | withscores: "WITHSCORES"
|
8269 | ]): Result<string[], Context>;
|
8270 | zunionBuffer(...args: [
|
8271 | numkeys: number | string,
|
8272 | ...keys: RedisKey[],
|
8273 | aggregate: "AGGREGATE",
|
8274 | max: "MAX",
|
8275 | withscores: "WITHSCORES"
|
8276 | ]): Result<Buffer[], Context>;
|
8277 | zunion(...args: [
|
8278 | numkeys: number | string,
|
8279 | keys: RedisKey[],
|
8280 | aggregate: "AGGREGATE",
|
8281 | max: "MAX",
|
8282 | withscores: "WITHSCORES"
|
8283 | ]): Result<string[], Context>;
|
8284 | zunionBuffer(...args: [
|
8285 | numkeys: number | string,
|
8286 | keys: RedisKey[],
|
8287 | aggregate: "AGGREGATE",
|
8288 | max: "MAX",
|
8289 | withscores: "WITHSCORES"
|
8290 | ]): Result<Buffer[], Context>;
|
8291 | zunion(...args: [
|
8292 | numkeys: number | string,
|
8293 | ...args: RedisValue[],
|
8294 | callback: Callback<string[]>
|
8295 | ]): Result<string[], Context>;
|
8296 | zunionBuffer(...args: [
|
8297 | numkeys: number | string,
|
8298 | ...args: RedisValue[],
|
8299 | callback: Callback<Buffer[]>
|
8300 | ]): Result<Buffer[], Context>;
|
8301 | zunion(...args: [numkeys: number | string, ...args: RedisValue[]]): Result<string[], Context>;
|
8302 | zunionBuffer(...args: [numkeys: number | string, ...args: RedisValue[]]): Result<Buffer[], Context>;
|
8303 | zunion(...args: [
|
8304 | numkeys: number | string,
|
8305 | ...args: RedisValue[],
|
8306 | withscores: "WITHSCORES",
|
8307 | callback: Callback<string[]>
|
8308 | ]): Result<string[], Context>;
|
8309 | zunionBuffer(...args: [
|
8310 | numkeys: number | string,
|
8311 | ...args: RedisValue[],
|
8312 | withscores: "WITHSCORES",
|
8313 | callback: Callback<Buffer[]>
|
8314 | ]): Result<Buffer[], Context>;
|
8315 | zunion(...args: [
|
8316 | numkeys: number | string,
|
8317 | ...args: RedisValue[],
|
8318 | withscores: "WITHSCORES"
|
8319 | ]): Result<string[], Context>;
|
8320 | zunionBuffer(...args: [
|
8321 | numkeys: number | string,
|
8322 | ...args: RedisValue[],
|
8323 | withscores: "WITHSCORES"
|
8324 | ]): Result<Buffer[], Context>;
|
8325 | zunion(...args: [
|
8326 | numkeys: number | string,
|
8327 | ...args: RedisValue[],
|
8328 | aggregate: "AGGREGATE",
|
8329 | sum: "SUM",
|
8330 | callback: Callback<string[]>
|
8331 | ]): Result<string[], Context>;
|
8332 | zunionBuffer(...args: [
|
8333 | numkeys: number | string,
|
8334 | ...args: RedisValue[],
|
8335 | aggregate: "AGGREGATE",
|
8336 | sum: "SUM",
|
8337 | callback: Callback<Buffer[]>
|
8338 | ]): Result<Buffer[], Context>;
|
8339 | zunion(...args: [
|
8340 | numkeys: number | string,
|
8341 | ...args: RedisValue[],
|
8342 | aggregate: "AGGREGATE",
|
8343 | sum: "SUM"
|
8344 | ]): Result<string[], Context>;
|
8345 | zunionBuffer(...args: [
|
8346 | numkeys: number | string,
|
8347 | ...args: RedisValue[],
|
8348 | aggregate: "AGGREGATE",
|
8349 | sum: "SUM"
|
8350 | ]): Result<Buffer[], Context>;
|
8351 | zunion(...args: [
|
8352 | numkeys: number | string,
|
8353 | ...args: RedisValue[],
|
8354 | aggregate: "AGGREGATE",
|
8355 | sum: "SUM",
|
8356 | withscores: "WITHSCORES",
|
8357 | callback: Callback<string[]>
|
8358 | ]): Result<string[], Context>;
|
8359 | zunionBuffer(...args: [
|
8360 | numkeys: number | string,
|
8361 | ...args: RedisValue[],
|
8362 | aggregate: "AGGREGATE",
|
8363 | sum: "SUM",
|
8364 | withscores: "WITHSCORES",
|
8365 | callback: Callback<Buffer[]>
|
8366 | ]): Result<Buffer[], Context>;
|
8367 | zunion(...args: [
|
8368 | numkeys: number | string,
|
8369 | ...args: RedisValue[],
|
8370 | aggregate: "AGGREGATE",
|
8371 | sum: "SUM",
|
8372 | withscores: "WITHSCORES"
|
8373 | ]): Result<string[], Context>;
|
8374 | zunionBuffer(...args: [
|
8375 | numkeys: number | string,
|
8376 | ...args: RedisValue[],
|
8377 | aggregate: "AGGREGATE",
|
8378 | sum: "SUM",
|
8379 | withscores: "WITHSCORES"
|
8380 | ]): Result<Buffer[], Context>;
|
8381 | zunion(...args: [
|
8382 | numkeys: number | string,
|
8383 | ...args: RedisValue[],
|
8384 | aggregate: "AGGREGATE",
|
8385 | min: "MIN",
|
8386 | callback: Callback<string[]>
|
8387 | ]): Result<string[], Context>;
|
8388 | zunionBuffer(...args: [
|
8389 | numkeys: number | string,
|
8390 | ...args: RedisValue[],
|
8391 | aggregate: "AGGREGATE",
|
8392 | min: "MIN",
|
8393 | callback: Callback<Buffer[]>
|
8394 | ]): Result<Buffer[], Context>;
|
8395 | zunion(...args: [
|
8396 | numkeys: number | string,
|
8397 | ...args: RedisValue[],
|
8398 | aggregate: "AGGREGATE",
|
8399 | min: "MIN"
|
8400 | ]): Result<string[], Context>;
|
8401 | zunionBuffer(...args: [
|
8402 | numkeys: number | string,
|
8403 | ...args: RedisValue[],
|
8404 | aggregate: "AGGREGATE",
|
8405 | min: "MIN"
|
8406 | ]): Result<Buffer[], Context>;
|
8407 | zunion(...args: [
|
8408 | numkeys: number | string,
|
8409 | ...args: RedisValue[],
|
8410 | aggregate: "AGGREGATE",
|
8411 | min: "MIN",
|
8412 | withscores: "WITHSCORES",
|
8413 | callback: Callback<string[]>
|
8414 | ]): Result<string[], Context>;
|
8415 | zunionBuffer(...args: [
|
8416 | numkeys: number | string,
|
8417 | ...args: RedisValue[],
|
8418 | aggregate: "AGGREGATE",
|
8419 | min: "MIN",
|
8420 | withscores: "WITHSCORES",
|
8421 | callback: Callback<Buffer[]>
|
8422 | ]): Result<Buffer[], Context>;
|
8423 | zunion(...args: [
|
8424 | numkeys: number | string,
|
8425 | ...args: RedisValue[],
|
8426 | aggregate: "AGGREGATE",
|
8427 | min: "MIN",
|
8428 | withscores: "WITHSCORES"
|
8429 | ]): Result<string[], Context>;
|
8430 | zunionBuffer(...args: [
|
8431 | numkeys: number | string,
|
8432 | ...args: RedisValue[],
|
8433 | aggregate: "AGGREGATE",
|
8434 | min: "MIN",
|
8435 | withscores: "WITHSCORES"
|
8436 | ]): Result<Buffer[], Context>;
|
8437 | zunion(...args: [
|
8438 | numkeys: number | string,
|
8439 | ...args: RedisValue[],
|
8440 | aggregate: "AGGREGATE",
|
8441 | max: "MAX",
|
8442 | callback: Callback<string[]>
|
8443 | ]): Result<string[], Context>;
|
8444 | zunionBuffer(...args: [
|
8445 | numkeys: number | string,
|
8446 | ...args: RedisValue[],
|
8447 | aggregate: "AGGREGATE",
|
8448 | max: "MAX",
|
8449 | callback: Callback<Buffer[]>
|
8450 | ]): Result<Buffer[], Context>;
|
8451 | zunion(...args: [
|
8452 | numkeys: number | string,
|
8453 | ...args: RedisValue[],
|
8454 | aggregate: "AGGREGATE",
|
8455 | max: "MAX"
|
8456 | ]): Result<string[], Context>;
|
8457 | zunionBuffer(...args: [
|
8458 | numkeys: number | string,
|
8459 | ...args: RedisValue[],
|
8460 | aggregate: "AGGREGATE",
|
8461 | max: "MAX"
|
8462 | ]): Result<Buffer[], Context>;
|
8463 | zunion(...args: [
|
8464 | numkeys: number | string,
|
8465 | ...args: RedisValue[],
|
8466 | aggregate: "AGGREGATE",
|
8467 | max: "MAX",
|
8468 | withscores: "WITHSCORES",
|
8469 | callback: Callback<string[]>
|
8470 | ]): Result<string[], Context>;
|
8471 | zunionBuffer(...args: [
|
8472 | numkeys: number | string,
|
8473 | ...args: RedisValue[],
|
8474 | aggregate: "AGGREGATE",
|
8475 | max: "MAX",
|
8476 | withscores: "WITHSCORES",
|
8477 | callback: Callback<Buffer[]>
|
8478 | ]): Result<Buffer[], Context>;
|
8479 | zunion(...args: [
|
8480 | numkeys: number | string,
|
8481 | ...args: RedisValue[],
|
8482 | aggregate: "AGGREGATE",
|
8483 | max: "MAX",
|
8484 | withscores: "WITHSCORES"
|
8485 | ]): Result<string[], Context>;
|
8486 | zunionBuffer(...args: [
|
8487 | numkeys: number | string,
|
8488 | ...args: RedisValue[],
|
8489 | aggregate: "AGGREGATE",
|
8490 | max: "MAX",
|
8491 | withscores: "WITHSCORES"
|
8492 | ]): Result<Buffer[], Context>;
|
8493 | /**
|
8494 | * Add multiple sorted sets and store the resulting sorted set in a new key
|
8495 | * - _group_: sorted-set
|
8496 | * - _complexity_: O(N)+O(M log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.
|
8497 | * - _since_: 2.0.0
|
8498 | */
|
8499 | zunionstore(...args: [
|
8500 | destination: RedisKey,
|
8501 | numkeys: number | string,
|
8502 | ...keys: RedisKey[],
|
8503 | callback: Callback<number>
|
8504 | ]): Result<number, Context>;
|
8505 | zunionstore(...args: [
|
8506 | destination: RedisKey,
|
8507 | numkeys: number | string,
|
8508 | keys: RedisKey[],
|
8509 | callback: Callback<number>
|
8510 | ]): Result<number, Context>;
|
8511 | zunionstore(...args: [
|
8512 | destination: RedisKey,
|
8513 | numkeys: number | string,
|
8514 | ...keys: RedisKey[]
|
8515 | ]): Result<number, Context>;
|
8516 | zunionstore(...args: [destination: RedisKey, numkeys: number | string, keys: RedisKey[]]): Result<number, Context>;
|
8517 | zunionstore(...args: [
|
8518 | destination: RedisKey,
|
8519 | numkeys: number | string,
|
8520 | ...keys: RedisKey[],
|
8521 | aggregate: "AGGREGATE",
|
8522 | sum: "SUM",
|
8523 | callback: Callback<number>
|
8524 | ]): Result<number, Context>;
|
8525 | zunionstore(...args: [
|
8526 | destination: RedisKey,
|
8527 | numkeys: number | string,
|
8528 | keys: RedisKey[],
|
8529 | aggregate: "AGGREGATE",
|
8530 | sum: "SUM",
|
8531 | callback: Callback<number>
|
8532 | ]): Result<number, Context>;
|
8533 | zunionstore(...args: [
|
8534 | destination: RedisKey,
|
8535 | numkeys: number | string,
|
8536 | ...keys: RedisKey[],
|
8537 | aggregate: "AGGREGATE",
|
8538 | sum: "SUM"
|
8539 | ]): Result<number, Context>;
|
8540 | zunionstore(...args: [
|
8541 | destination: RedisKey,
|
8542 | numkeys: number | string,
|
8543 | keys: RedisKey[],
|
8544 | aggregate: "AGGREGATE",
|
8545 | sum: "SUM"
|
8546 | ]): Result<number, Context>;
|
8547 | zunionstore(...args: [
|
8548 | destination: RedisKey,
|
8549 | numkeys: number | string,
|
8550 | ...keys: RedisKey[],
|
8551 | aggregate: "AGGREGATE",
|
8552 | min: "MIN",
|
8553 | callback: Callback<number>
|
8554 | ]): Result<number, Context>;
|
8555 | zunionstore(...args: [
|
8556 | destination: RedisKey,
|
8557 | numkeys: number | string,
|
8558 | keys: RedisKey[],
|
8559 | aggregate: "AGGREGATE",
|
8560 | min: "MIN",
|
8561 | callback: Callback<number>
|
8562 | ]): Result<number, Context>;
|
8563 | zunionstore(...args: [
|
8564 | destination: RedisKey,
|
8565 | numkeys: number | string,
|
8566 | ...keys: RedisKey[],
|
8567 | aggregate: "AGGREGATE",
|
8568 | min: "MIN"
|
8569 | ]): Result<number, Context>;
|
8570 | zunionstore(...args: [
|
8571 | destination: RedisKey,
|
8572 | numkeys: number | string,
|
8573 | keys: RedisKey[],
|
8574 | aggregate: "AGGREGATE",
|
8575 | min: "MIN"
|
8576 | ]): Result<number, Context>;
|
8577 | zunionstore(...args: [
|
8578 | destination: RedisKey,
|
8579 | numkeys: number | string,
|
8580 | ...keys: RedisKey[],
|
8581 | aggregate: "AGGREGATE",
|
8582 | max: "MAX",
|
8583 | callback: Callback<number>
|
8584 | ]): Result<number, Context>;
|
8585 | zunionstore(...args: [
|
8586 | destination: RedisKey,
|
8587 | numkeys: number | string,
|
8588 | keys: RedisKey[],
|
8589 | aggregate: "AGGREGATE",
|
8590 | max: "MAX",
|
8591 | callback: Callback<number>
|
8592 | ]): Result<number, Context>;
|
8593 | zunionstore(...args: [
|
8594 | destination: RedisKey,
|
8595 | numkeys: number | string,
|
8596 | ...keys: RedisKey[],
|
8597 | aggregate: "AGGREGATE",
|
8598 | max: "MAX"
|
8599 | ]): Result<number, Context>;
|
8600 | zunionstore(...args: [
|
8601 | destination: RedisKey,
|
8602 | numkeys: number | string,
|
8603 | keys: RedisKey[],
|
8604 | aggregate: "AGGREGATE",
|
8605 | max: "MAX"
|
8606 | ]): Result<number, Context>;
|
8607 | zunionstore(...args: [
|
8608 | destination: RedisKey,
|
8609 | numkeys: number | string,
|
8610 | ...args: RedisValue[],
|
8611 | callback: Callback<number>
|
8612 | ]): Result<number, Context>;
|
8613 | zunionstore(...args: [
|
8614 | destination: RedisKey,
|
8615 | numkeys: number | string,
|
8616 | ...args: RedisValue[]
|
8617 | ]): Result<number, Context>;
|
8618 | zunionstore(...args: [
|
8619 | destination: RedisKey,
|
8620 | numkeys: number | string,
|
8621 | ...args: RedisValue[],
|
8622 | aggregate: "AGGREGATE",
|
8623 | sum: "SUM",
|
8624 | callback: Callback<number>
|
8625 | ]): Result<number, Context>;
|
8626 | zunionstore(...args: [
|
8627 | destination: RedisKey,
|
8628 | numkeys: number | string,
|
8629 | ...args: RedisValue[],
|
8630 | aggregate: "AGGREGATE",
|
8631 | sum: "SUM"
|
8632 | ]): Result<number, Context>;
|
8633 | zunionstore(...args: [
|
8634 | destination: RedisKey,
|
8635 | numkeys: number | string,
|
8636 | ...args: RedisValue[],
|
8637 | aggregate: "AGGREGATE",
|
8638 | min: "MIN",
|
8639 | callback: Callback<number>
|
8640 | ]): Result<number, Context>;
|
8641 | zunionstore(...args: [
|
8642 | destination: RedisKey,
|
8643 | numkeys: number | string,
|
8644 | ...args: RedisValue[],
|
8645 | aggregate: "AGGREGATE",
|
8646 | min: "MIN"
|
8647 | ]): Result<number, Context>;
|
8648 | zunionstore(...args: [
|
8649 | destination: RedisKey,
|
8650 | numkeys: number | string,
|
8651 | ...args: RedisValue[],
|
8652 | aggregate: "AGGREGATE",
|
8653 | max: "MAX",
|
8654 | callback: Callback<number>
|
8655 | ]): Result<number, Context>;
|
8656 | zunionstore(...args: [
|
8657 | destination: RedisKey,
|
8658 | numkeys: number | string,
|
8659 | ...args: RedisValue[],
|
8660 | aggregate: "AGGREGATE",
|
8661 | max: "MAX"
|
8662 | ]): Result<number, Context>;
|
8663 | }
|
8664 | export default RedisCommander;
|