forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redis.d.ts
630 lines (609 loc) · 31.3 KB
/
redis.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
// Type definitions for redis 0.12.1
// Project: https://github.com/mranney/node_redis
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>, Peter Harris <https://github.com/CodeAnimal>, TANAKA Koichi <https://github.com/MugeSo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// Imported from: https://github.com/soywiz/typescript-node-definitions/redis.d.ts
/// <reference path="../node/node.d.ts" />
declare module "redis" {
export function createClient(port_arg:number, host_arg?:string, options?:ClientOpts):RedisClient;
export function createClient(unix_socket:string, options?:ClientOpts):RedisClient;
export function createClient(options?:ClientOpts):RedisClient;
export function print(err:Error, reply:any):void;
export var debug_mode:boolean;
export interface MessageHandler<M> {
(channel:string, message:M): void;
}
export interface CommandT<R> { //This is a placeholder to be used eventually, to not have to define each command twice, or four times if all caps versions are to be implemented.
(args:any[], callback?:ResCallbackT<R>): void;
(...args:any[]): void;
}
export interface ResCallbackT<R> {
(err:Error, res:R): void;
}
export interface ServerInfo {
redis_version: string;
versions: number[];
}
export interface ClientOpts {
parser?: string;
return_buffers?: boolean;
detect_buffers?: boolean;
socket_nodelay?: boolean;
socket_keepalive?: boolean;
no_ready_check?: boolean;
enable_offline_queue?: boolean;
retry_max_delay?: number;
connect_timeout?: number;
max_attempts?: number;
auth_pass?: string;
password?: string;
family?: string;
command_queue_high_water?: number;
command_queue_low_water?: number;
}
export interface RedisClient extends NodeJS.EventEmitter {
// event: connect
// event: error
// event: message
// event: pmessage
// event: subscribe
// event: psubscribe
// event: unsubscribe
// event: punsubscribe
connected: boolean;
retry_delay: number;
retry_backoff: number;
command_queue: any[];
offline_queue: any[];
server_info: ServerInfo;
end(): void;
unref(): void;
// Low level command execution
send_command(command:string, ...args:any[]): boolean;
// Connection (http://redis.io/commands#connection)
auth(password:string, callback?:ResCallbackT<any>): boolean;
ping(callback?:ResCallbackT<number>): boolean;
// Strings (http://redis.io/commands#strings)
append(key:string, value:string, callback?:ResCallbackT<number>): boolean;
bitcount(key:string, callback?:ResCallbackT<number>): boolean;
bitcount(key:string, start:number, end:number, callback?:ResCallbackT<number>): boolean;
set(key:string, value:string, callback?:ResCallbackT<string>): boolean;
get(key:string, callback?:ResCallbackT<string>): boolean;
exists(key:string, value:string, callback?:ResCallbackT<number>): boolean;
publish(channel:string, value:any): boolean;
subscribe(channel:string): boolean;
/*
commands = set_union([
"get", "set", "setnx", "setex", "append", "strlen", "del", "exists", "setbit", "getbit", "setrange", "getrange", "substr",
"incr", "decr", "mget", "rpush", "lpush", "rpushx", "lpushx", "linsert", "rpop", "lpop", "brpop", "brpoplpush", "blpop", "llen", "lindex",
"lset", "lrange", "ltrim", "lrem", "rpoplpush", "sadd", "srem", "smove", "sismember", "scard", "spop", "srandmember", "sinter", "sinterstore",
"sunion", "sunionstore", "sdiff", "sdiffstore", "smembers", "zadd", "zincrby", "zrem", "zremrangebyscore", "zremrangebyrank", "zunionstore",
"zinterstore", "zrange", "zrangebyscore", "zrevrangebyscore", "zcount", "zrevrange", "zcard", "zscore", "zrank", "zrevrank", "hset", "hsetnx",
"hget", "hmset", "hmget", "hincrby", "hdel", "hlen", "hkeys", "hvals", "hgetall", "hexists", "incrby", "decrby", "getset", "mset", "msetnx",
"randomkey", "select", "move", "rename", "renamenx", "expire", "expireat", "keys", "dbsize", "auth", "ping", "echo", "save", "bgsave",
"bgrewriteaof", "shutdown", "lastsave", "type", "multi", "exec", "discard", "sync", "flushdb", "flushall", "sort", "info", "monitor", "ttl",
"persist", "slaveof", "debug", "config", "subscribe", "unsubscribe", "psubscribe", "punsubscribe", "publish", "watch", "unwatch", "cluster",
"restore", "migrate", "dump", "object", "client", "eval", "evalsha"], require("./lib/commands"));
*/
get(args:any[], callback?:ResCallbackT<string>): boolean;
get(...args:any[]): boolean;
set(args:any[], callback?:ResCallbackT<string>): boolean;
set(...args:any[]): boolean;
setnx(args:any[], callback?:ResCallbackT<any>): boolean;
setnx(...args:any[]): boolean;
setex(args:any[], callback?:ResCallbackT<any>): boolean;
setex(...args:any[]): boolean;
append(args:any[], callback?:ResCallbackT<any>): boolean;
append(...args:any[]): boolean;
strlen(args:any[], callback?:ResCallbackT<any>): boolean;
strlen(...args:any[]): boolean;
del(args:any[], callback?:ResCallbackT<any>): boolean;
del(...args:any[]): boolean;
exists(args:any[], callback?:ResCallbackT<any>): boolean;
exists(...args:any[]): boolean;
setbit(args:any[], callback?:ResCallbackT<any>): boolean;
setbit(...args:any[]): boolean;
getbit(args:any[], callback?:ResCallbackT<any>): boolean;
getbit(...args:any[]): boolean;
setrange(args:any[], callback?:ResCallbackT<any>): boolean;
setrange(...args:any[]): boolean;
getrange(args:any[], callback?:ResCallbackT<any>): boolean;
getrange(...args:any[]): boolean;
substr(args:any[], callback?:ResCallbackT<any>): boolean;
substr(...args:any[]): boolean;
incr(args:any[], callback?:ResCallbackT<any>): boolean;
incr(...args:any[]): boolean;
decr(args:any[], callback?:ResCallbackT<any>): boolean;
decr(...args:any[]): boolean;
mget(args:any[], callback?:ResCallbackT<any>): boolean;
mget(...args:any[]): boolean;
rpush(...args:any[]): boolean;
lpush(args:any[], callback?:ResCallbackT<any>): boolean;
lpush(...args:any[]): boolean;
rpushx(args:any[], callback?:ResCallbackT<any>): boolean;
rpushx(...args:any[]): boolean;
lpushx(args:any[], callback?:ResCallbackT<any>): boolean;
lpushx(...args:any[]): boolean;
linsert(args:any[], callback?:ResCallbackT<any>): boolean;
linsert(...args:any[]): boolean;
rpop(args:any[], callback?:ResCallbackT<any>): boolean;
rpop(...args:any[]): boolean;
lpop(args:any[], callback?:ResCallbackT<any>): boolean;
lpop(...args:any[]): boolean;
brpop(args:any[], callback?:ResCallbackT<any>): boolean;
brpop(...args:any[]): boolean;
brpoplpush(args:any[], callback?:ResCallbackT<any>): boolean;
brpoplpush(...args:any[]): boolean;
blpop(args:any[], callback?:ResCallbackT<any>): boolean;
blpop(...args:any[]): boolean;
llen(args:any[], callback?:ResCallbackT<any>): boolean;
llen(...args:any[]): boolean;
lindex(args:any[], callback?:ResCallbackT<any>): boolean;
lindex(...args:any[]): boolean;
lset(args:any[], callback?:ResCallbackT<any>): boolean;
lset(...args:any[]): boolean;
lrange(args:any[], callback?:ResCallbackT<any>): boolean;
lrange(...args:any[]): boolean;
ltrim(args:any[], callback?:ResCallbackT<any>): boolean;
ltrim(...args:any[]): boolean;
lrem(args:any[], callback?:ResCallbackT<any>): boolean;
lrem(...args:any[]): boolean;
rpoplpush(args:any[], callback?:ResCallbackT<any>): boolean;
rpoplpush(...args:any[]): boolean;
sadd(args:any[], callback?:ResCallbackT<any>): boolean;
sadd(...args:any[]): boolean;
srem(args:any[], callback?:ResCallbackT<any>): boolean;
srem(...args:any[]): boolean;
smove(args:any[], callback?:ResCallbackT<any>): boolean;
smove(...args:any[]): boolean;
sismember(args:any[], callback?:ResCallbackT<any>): boolean;
sismember(...args:any[]): boolean;
scard(args:any[], callback?:ResCallbackT<any>): boolean;
scard(...args:any[]): boolean;
spop(args:any[], callback?:ResCallbackT<any>): boolean;
spop(...args:any[]): boolean;
srandmember(args:any[], callback?:ResCallbackT<any>): boolean;
srandmember(...args:any[]): boolean;
sinter(args:any[], callback?:ResCallbackT<any>): boolean;
sinter(...args:any[]): boolean;
sinterstore(args:any[], callback?:ResCallbackT<any>): boolean;
sinterstore(...args:any[]): boolean;
sunion(args:any[], callback?:ResCallbackT<any>): boolean;
sunion(...args:any[]): boolean;
sunionstore(args:any[], callback?:ResCallbackT<any>): boolean;
sunionstore(...args:any[]): boolean;
sdiff(args:any[], callback?:ResCallbackT<any>): boolean;
sdiff(...args:any[]): boolean;
sdiffstore(args:any[], callback?:ResCallbackT<any>): boolean;
sdiffstore(...args:any[]): boolean;
smembers(args:any[], callback?:ResCallbackT<any>): boolean;
smembers(...args:any[]): boolean;
zadd(args:any[], callback?:ResCallbackT<any>): boolean;
zadd(...args:any[]): boolean;
zincrby(args:any[], callback?:ResCallbackT<any>): boolean;
zincrby(...args:any[]): boolean;
zrem(args:any[], callback?:ResCallbackT<any>): boolean;
zrem(...args:any[]): boolean;
zremrangebyscore(args:any[], callback?:ResCallbackT<any>): boolean;
zremrangebyscore(...args:any[]): boolean;
zremrangebyrank(args:any[], callback?:ResCallbackT<any>): boolean;
zremrangebyrank(...args:any[]): boolean;
zunionstore(args:any[], callback?:ResCallbackT<any>): boolean;
zunionstore(...args:any[]): boolean;
zinterstore(args:any[], callback?:ResCallbackT<any>): boolean;
zinterstore(...args:any[]): boolean;
zrange(args:any[], callback?:ResCallbackT<any>): boolean;
zrange(...args:any[]): boolean;
zrangebyscore(args:any[], callback?:ResCallbackT<any>): boolean;
zrangebyscore(...args:any[]): boolean;
zrevrangebyscore(args:any[], callback?:ResCallbackT<any>): boolean;
zrevrangebyscore(...args:any[]): boolean;
zcount(args:any[], callback?:ResCallbackT<any>): boolean;
zcount(...args:any[]): boolean;
zrevrange(args:any[], callback?:ResCallbackT<any>): boolean;
zrevrange(...args:any[]): boolean;
zcard(args:any[], callback?:ResCallbackT<any>): boolean;
zcard(...args:any[]): boolean;
zscore(args:any[], callback?:ResCallbackT<any>): boolean;
zscore(...args:any[]): boolean;
zrank(args:any[], callback?:ResCallbackT<any>): boolean;
zrank(...args:any[]): boolean;
zrevrank(args:any[], callback?:ResCallbackT<any>): boolean;
zrevrank(...args:any[]): boolean;
hset(args:any[], callback?:ResCallbackT<any>): boolean;
hset(...args:any[]): boolean;
hsetnx(args:any[], callback?:ResCallbackT<any>): boolean;
hsetnx(...args:any[]): boolean;
hget(args:any[], callback?:ResCallbackT<any>): boolean;
hget(...args:any[]): boolean;
hmset(args:any[], callback?:ResCallbackT<any>): boolean;
hmset(key:string, hash:any, callback?:ResCallbackT<any>): boolean;
hmset(...args:any[]): boolean;
hmget(args:any[], callback?:ResCallbackT<any>): boolean;
hmget(...args:any[]): boolean;
hincrby(args:any[], callback?:ResCallbackT<any>): boolean;
hincrby(...args:any[]): boolean;
hdel(args:any[], callback?:ResCallbackT<any>): boolean;
hdel(...args:any[]): boolean;
hlen(args:any[], callback?:ResCallbackT<any>): boolean;
hlen(...args:any[]): boolean;
hkeys(args:any[], callback?:ResCallbackT<any>): boolean;
hkeys(...args:any[]): boolean;
hvals(args:any[], callback?:ResCallbackT<any>): boolean;
hvals(...args:any[]): boolean;
hgetall(args:any[], callback?:ResCallbackT<any>): boolean;
hgetall(...args:any[]): boolean;
hgetall(key:string, callback?:ResCallbackT<any>): boolean;
hexists(args:any[], callback?:ResCallbackT<any>): boolean;
hexists(...args:any[]): boolean;
incrby(args:any[], callback?:ResCallbackT<any>): boolean;
incrby(...args:any[]): boolean;
decrby(args:any[], callback?:ResCallbackT<any>): boolean;
decrby(...args:any[]): boolean;
getset(args:any[], callback?:ResCallbackT<any>): boolean;
getset(...args:any[]): boolean;
mset(args:any[], callback?:ResCallbackT<any>): boolean;
mset(...args:any[]): boolean;
msetnx(args:any[], callback?:ResCallbackT<any>): boolean;
msetnx(...args:any[]): boolean;
randomkey(args:any[], callback?:ResCallbackT<any>): boolean;
randomkey(...args:any[]): boolean;
select(args:any[], callback?:ResCallbackT<any>): void;
select(...args:any[]): void;
move(args:any[], callback?:ResCallbackT<any>): boolean;
move(...args:any[]): boolean;
rename(args:any[], callback?:ResCallbackT<any>): boolean;
rename(...args:any[]): boolean;
renamenx(args:any[], callback?:ResCallbackT<any>): boolean;
renamenx(...args:any[]): boolean;
expire(args:any[], callback?:ResCallbackT<any>): boolean;
expire(...args:any[]): boolean;
expireat(args:any[], callback?:ResCallbackT<any>): boolean;
expireat(...args:any[]): boolean;
keys(args:any[], callback?:ResCallbackT<any>): boolean;
keys(...args:any[]): boolean;
dbsize(args:any[], callback?:ResCallbackT<any>): boolean;
dbsize(...args:any[]): boolean;
auth(args:any[], callback?:ResCallbackT<any>): void;
auth(...args:any[]): void;
ping(args:any[], callback?:ResCallbackT<any>): boolean;
ping(...args:any[]): boolean;
echo(args:any[], callback?:ResCallbackT<any>): boolean;
echo(...args:any[]): boolean;
save(args:any[], callback?:ResCallbackT<any>): boolean;
save(...args:any[]): boolean;
bgsave(args:any[], callback?:ResCallbackT<any>): boolean;
bgsave(...args:any[]): boolean;
bgrewriteaof(args:any[], callback?:ResCallbackT<any>): boolean;
bgrewriteaof(...args:any[]): boolean;
shutdown(args:any[], callback?:ResCallbackT<any>): boolean;
shutdown(...args:any[]): boolean;
lastsave(args:any[], callback?:ResCallbackT<any>): boolean;
lastsave(...args:any[]): boolean;
type(args:any[], callback?:ResCallbackT<any>): boolean;
type(...args:any[]): boolean;
multi(args:any[], callback?:ResCallbackT<any>): Multi;
multi(...args:any[]): Multi;
exec(args:any[], callback?:ResCallbackT<any>): boolean;
exec(...args:any[]): boolean;
discard(args:any[], callback?:ResCallbackT<any>): boolean;
discard(...args:any[]): boolean;
sync(args:any[], callback?:ResCallbackT<any>): boolean;
sync(...args:any[]): boolean;
flushdb(args:any[], callback?:ResCallbackT<any>): boolean;
flushdb(...args:any[]): boolean;
flushall(args:any[], callback?:ResCallbackT<any>): boolean;
flushall(...args:any[]): boolean;
sort(args:any[], callback?:ResCallbackT<any>): boolean;
sort(...args:any[]): boolean;
info(args:any[], callback?:ResCallbackT<any>): boolean;
info(...args:any[]): boolean;
monitor(args:any[], callback?:ResCallbackT<any>): boolean;
monitor(...args:any[]): boolean;
ttl(args:any[], callback?:ResCallbackT<any>): boolean;
ttl(...args:any[]): boolean;
persist(args:any[], callback?:ResCallbackT<any>): boolean;
persist(...args:any[]): boolean;
slaveof(args:any[], callback?:ResCallbackT<any>): boolean;
slaveof(...args:any[]): boolean;
debug(args:any[], callback?:ResCallbackT<any>): boolean;
debug(...args:any[]): boolean;
config(args:any[], callback?:ResCallbackT<any>): boolean;
config(...args:any[]): boolean;
subscribe(args:any[], callback?:ResCallbackT<any>): boolean;
subscribe(...args:any[]): boolean;
unsubscribe(args:any[], callback?:ResCallbackT<any>): boolean;
unsubscribe(...args:any[]): boolean;
psubscribe(args:any[], callback?:ResCallbackT<any>): boolean;
psubscribe(...args:any[]): boolean;
punsubscribe(args:any[], callback?:ResCallbackT<any>): boolean;
punsubscribe(...args:any[]): boolean;
publish(args:any[], callback?:ResCallbackT<any>): boolean;
publish(...args:any[]): boolean;
watch(args:any[], callback?:ResCallbackT<any>): boolean;
watch(...args:any[]): boolean;
unwatch(args:any[], callback?:ResCallbackT<any>): boolean;
unwatch(...args:any[]): boolean;
cluster(args:any[], callback?:ResCallbackT<any>): boolean;
cluster(...args:any[]): boolean;
restore(args:any[], callback?:ResCallbackT<any>): boolean;
restore(...args:any[]): boolean;
migrate(args:any[], callback?:ResCallbackT<any>): boolean;
migrate(...args:any[]): boolean;
dump(args:any[], callback?:ResCallbackT<any>): boolean;
dump(...args:any[]): boolean;
object(args:any[], callback?:ResCallbackT<any>): boolean;
object(...args:any[]): boolean;
client(args:any[], callback?:ResCallbackT<any>): boolean;
client(...args:any[]): boolean;
eval(args:any[], callback?:ResCallbackT<any>): boolean;
eval(...args:any[]): boolean;
evalsha(args:any[], callback?:ResCallbackT<any>): boolean;
evalsha(...args:any[]): boolean;
script(args:any[], callback?:ResCallbackT<any>): boolean;
script(...args: any[]): boolean;
script(key: string, callback?: ResCallbackT<any>): boolean;
quit(args:any[], callback?:ResCallbackT<any>): boolean;
quit(...args:any[]): boolean;
}
export interface Multi {
exec(callback?:ResCallbackT<any[]>): boolean;
get(args:any[], callback?:ResCallbackT<string>): Multi;
get(...args:any[]): Multi;
set(args:any[], callback?:ResCallbackT<string>): Multi;
set(...args:any[]): Multi;
setnx(args:any[], callback?:ResCallbackT<any>): Multi;
setnx(...args:any[]): Multi;
setex(args:any[], callback?:ResCallbackT<any>): Multi;
setex(...args:any[]): Multi;
append(args:any[], callback?:ResCallbackT<any>): Multi;
append(...args:any[]): Multi;
strlen(args:any[], callback?:ResCallbackT<any>): Multi;
strlen(...args:any[]): Multi;
del(args:any[], callback?:ResCallbackT<any>): Multi;
del(...args:any[]): Multi;
exists(args:any[], callback?:ResCallbackT<any>): Multi;
exists(...args:any[]): Multi;
setbit(args:any[], callback?:ResCallbackT<any>): Multi;
setbit(...args:any[]): Multi;
getbit(args:any[], callback?:ResCallbackT<any>): Multi;
getbit(...args:any[]): Multi;
setrange(args:any[], callback?:ResCallbackT<any>): Multi;
setrange(...args:any[]): Multi;
getrange(args:any[], callback?:ResCallbackT<any>): Multi;
getrange(...args:any[]): Multi;
substr(args:any[], callback?:ResCallbackT<any>): Multi;
substr(...args:any[]): Multi;
incr(args:any[], callback?:ResCallbackT<any>): Multi;
incr(...args:any[]): Multi;
decr(args:any[], callback?:ResCallbackT<any>): Multi;
decr(...args:any[]): Multi;
mget(args:any[], callback?:ResCallbackT<any>): Multi;
mget(...args:any[]): Multi;
rpush(...args:any[]): Multi;
lpush(args:any[], callback?:ResCallbackT<any>): Multi;
lpush(...args:any[]): Multi;
rpushx(args:any[], callback?:ResCallbackT<any>): Multi;
rpushx(...args:any[]): Multi;
lpushx(args:any[], callback?:ResCallbackT<any>): Multi;
lpushx(...args:any[]): Multi;
linsert(args:any[], callback?:ResCallbackT<any>): Multi;
linsert(...args:any[]): Multi;
rpop(args:any[], callback?:ResCallbackT<any>): Multi;
rpop(...args:any[]): Multi;
lpop(args:any[], callback?:ResCallbackT<any>): Multi;
lpop(...args:any[]): Multi;
brpop(args:any[], callback?:ResCallbackT<any>): Multi;
brpop(...args:any[]): Multi;
brpoplpush(args:any[], callback?:ResCallbackT<any>): Multi;
brpoplpush(...args:any[]): Multi;
blpop(args:any[], callback?:ResCallbackT<any>): Multi;
blpop(...args:any[]): Multi;
llen(args:any[], callback?:ResCallbackT<any>): Multi;
llen(...args:any[]): Multi;
lindex(args:any[], callback?:ResCallbackT<any>): Multi;
lindex(...args:any[]): Multi;
lset(args:any[], callback?:ResCallbackT<any>): Multi;
lset(...args:any[]): Multi;
lrange(args:any[], callback?:ResCallbackT<any>): Multi;
lrange(...args:any[]): Multi;
ltrim(args:any[], callback?:ResCallbackT<any>): Multi;
ltrim(...args:any[]): Multi;
lrem(args:any[], callback?:ResCallbackT<any>): Multi;
lrem(...args:any[]): Multi;
rpoplpush(args:any[], callback?:ResCallbackT<any>): Multi;
rpoplpush(...args:any[]): Multi;
sadd(args:any[], callback?:ResCallbackT<any>): Multi;
sadd(...args:any[]): Multi;
srem(args:any[], callback?:ResCallbackT<any>): Multi;
srem(...args:any[]): Multi;
smove(args:any[], callback?:ResCallbackT<any>): Multi;
smove(...args:any[]): Multi;
sismember(args:any[], callback?:ResCallbackT<any>): Multi;
sismember(...args:any[]): Multi;
scard(args:any[], callback?:ResCallbackT<any>): Multi;
scard(...args:any[]): Multi;
spop(args:any[], callback?:ResCallbackT<any>): Multi;
spop(...args:any[]): Multi;
srandmember(args:any[], callback?:ResCallbackT<any>): Multi;
srandmember(...args:any[]): Multi;
sinter(args:any[], callback?:ResCallbackT<any>): Multi;
sinter(...args:any[]): Multi;
sinterstore(args:any[], callback?:ResCallbackT<any>): Multi;
sinterstore(...args:any[]): Multi;
sunion(args:any[], callback?:ResCallbackT<any>): Multi;
sunion(...args:any[]): Multi;
sunionstore(args:any[], callback?:ResCallbackT<any>): Multi;
sunionstore(...args:any[]): Multi;
sdiff(args:any[], callback?:ResCallbackT<any>): Multi;
sdiff(...args:any[]): Multi;
sdiffstore(args:any[], callback?:ResCallbackT<any>): Multi;
sdiffstore(...args:any[]): Multi;
smembers(args:any[], callback?:ResCallbackT<any>): Multi;
smembers(...args:any[]): Multi;
zadd(args:any[], callback?:ResCallbackT<any>): Multi;
zadd(...args:any[]): Multi;
zincrby(args:any[], callback?:ResCallbackT<any>): Multi;
zincrby(...args:any[]): Multi;
zrem(args:any[], callback?:ResCallbackT<any>): Multi;
zrem(...args:any[]): Multi;
zremrangebyscore(args:any[], callback?:ResCallbackT<any>): Multi;
zremrangebyscore(...args:any[]): Multi;
zremrangebyrank(args:any[], callback?:ResCallbackT<any>): Multi;
zremrangebyrank(...args:any[]): Multi;
zunionstore(args:any[], callback?:ResCallbackT<any>): Multi;
zunionstore(...args:any[]): Multi;
zinterstore(args:any[], callback?:ResCallbackT<any>): Multi;
zinterstore(...args:any[]): Multi;
zrange(args:any[], callback?:ResCallbackT<any>): Multi;
zrange(...args:any[]): Multi;
zrangebyscore(args:any[], callback?:ResCallbackT<any>): Multi;
zrangebyscore(...args:any[]): Multi;
zrevrangebyscore(args:any[], callback?:ResCallbackT<any>): Multi;
zrevrangebyscore(...args:any[]): Multi;
zcount(args:any[], callback?:ResCallbackT<any>): Multi;
zcount(...args:any[]): Multi;
zrevrange(args:any[], callback?:ResCallbackT<any>): Multi;
zrevrange(...args:any[]): Multi;
zcard(args:any[], callback?:ResCallbackT<any>): Multi;
zcard(...args:any[]): Multi;
zscore(args:any[], callback?:ResCallbackT<any>): Multi;
zscore(...args:any[]): Multi;
zrank(args:any[], callback?:ResCallbackT<any>): Multi;
zrank(...args:any[]): Multi;
zrevrank(args:any[], callback?:ResCallbackT<any>): Multi;
zrevrank(...args:any[]): Multi;
hset(args:any[], callback?:ResCallbackT<any>): Multi;
hset(...args:any[]): Multi;
hsetnx(args:any[], callback?:ResCallbackT<any>): Multi;
hsetnx(...args:any[]): Multi;
hget(args:any[], callback?:ResCallbackT<any>): Multi;
hget(...args:any[]): Multi;
hmset(args:any[], callback?:ResCallbackT<any>): Multi;
hmset(key:string, hash:any, callback?:ResCallbackT<any>): Multi;
hmset(...args:any[]): Multi;
hmget(args:any[], callback?:ResCallbackT<any>): Multi;
hmget(...args:any[]): Multi;
hincrby(args:any[], callback?:ResCallbackT<any>): Multi;
hincrby(...args:any[]): Multi;
hdel(args:any[], callback?:ResCallbackT<any>): Multi;
hdel(...args:any[]): Multi;
hlen(args:any[], callback?:ResCallbackT<any>): Multi;
hlen(...args:any[]): Multi;
hkeys(args:any[], callback?:ResCallbackT<any>): Multi;
hkeys(...args:any[]): Multi;
hvals(args:any[], callback?:ResCallbackT<any>): Multi;
hvals(...args:any[]): Multi;
hgetall(args:any[], callback?:ResCallbackT<any>): Multi;
hgetall(...args:any[]): Multi;
hgetall(key:string, callback?:ResCallbackT<any>): Multi;
hexists(args:any[], callback?:ResCallbackT<any>): Multi;
hexists(...args:any[]): Multi;
incrby(args:any[], callback?:ResCallbackT<any>): Multi;
incrby(...args:any[]): Multi;
decrby(args:any[], callback?:ResCallbackT<any>): Multi;
decrby(...args:any[]): Multi;
getset(args:any[], callback?:ResCallbackT<any>): Multi;
getset(...args:any[]): Multi;
mset(args:any[], callback?:ResCallbackT<any>): Multi;
mset(...args:any[]): Multi;
msetnx(args:any[], callback?:ResCallbackT<any>): Multi;
msetnx(...args:any[]): Multi;
randomkey(args:any[], callback?:ResCallbackT<any>): Multi;
randomkey(...args:any[]): Multi;
select(args:any[], callback?:ResCallbackT<any>): void;
select(...args:any[]): Multi;
move(args:any[], callback?:ResCallbackT<any>): Multi;
move(...args:any[]): Multi;
rename(args:any[], callback?:ResCallbackT<any>): Multi;
rename(...args:any[]): Multi;
renamenx(args:any[], callback?:ResCallbackT<any>): Multi;
renamenx(...args:any[]): Multi;
expire(args:any[], callback?:ResCallbackT<any>): Multi;
expire(...args:any[]): Multi;
expireat(args:any[], callback?:ResCallbackT<any>): Multi;
expireat(...args:any[]): Multi;
keys(args:any[], callback?:ResCallbackT<any>): Multi;
keys(...args:any[]): Multi;
dbsize(args:any[], callback?:ResCallbackT<any>): Multi;
dbsize(...args:any[]): Multi;
auth(args:any[], callback?:ResCallbackT<any>): void;
auth(...args:any[]): void;
ping(args:any[], callback?:ResCallbackT<any>): Multi;
ping(...args:any[]): Multi;
echo(args:any[], callback?:ResCallbackT<any>): Multi;
echo(...args:any[]): Multi;
save(args:any[], callback?:ResCallbackT<any>): Multi;
save(...args:any[]): Multi;
bgsave(args:any[], callback?:ResCallbackT<any>): Multi;
bgsave(...args:any[]): Multi;
bgrewriteaof(args:any[], callback?:ResCallbackT<any>): Multi;
bgrewriteaof(...args:any[]): Multi;
shutdown(args:any[], callback?:ResCallbackT<any>): Multi;
shutdown(...args:any[]): Multi;
lastsave(args:any[], callback?:ResCallbackT<any>): Multi;
lastsave(...args:any[]): Multi;
type(args:any[], callback?:ResCallbackT<any>): Multi;
type(...args:any[]): Multi;
multi(args:any[], callback?:ResCallbackT<any>): Multi;
multi(...args:any[]): Multi;
exec(args:any[], callback?:ResCallbackT<any>): Multi;
exec(...args:any[]): Multi;
discard(args:any[], callback?:ResCallbackT<any>): Multi;
discard(...args:any[]): Multi;
sync(args:any[], callback?:ResCallbackT<any>): Multi;
sync(...args:any[]): Multi;
flushdb(args:any[], callback?:ResCallbackT<any>): Multi;
flushdb(...args:any[]): Multi;
flushall(args:any[], callback?:ResCallbackT<any>): Multi;
flushall(...args:any[]): Multi;
sort(args:any[], callback?:ResCallbackT<any>): Multi;
sort(...args:any[]): Multi;
info(args:any[], callback?:ResCallbackT<any>): Multi;
info(...args:any[]): Multi;
monitor(args:any[], callback?:ResCallbackT<any>): Multi;
monitor(...args:any[]): Multi;
ttl(args:any[], callback?:ResCallbackT<any>): Multi;
ttl(...args:any[]): Multi;
persist(args:any[], callback?:ResCallbackT<any>): Multi;
persist(...args:any[]): Multi;
slaveof(args:any[], callback?:ResCallbackT<any>): Multi;
slaveof(...args:any[]): Multi;
debug(args:any[], callback?:ResCallbackT<any>): Multi;
debug(...args:any[]): Multi;
config(args:any[], callback?:ResCallbackT<any>): Multi;
config(...args:any[]): Multi;
subscribe(args:any[], callback?:ResCallbackT<any>): Multi;
subscribe(...args:any[]): Multi;
unsubscribe(args:any[], callback?:ResCallbackT<any>): Multi;
unsubscribe(...args:any[]): Multi;
psubscribe(args:any[], callback?:ResCallbackT<any>): Multi;
psubscribe(...args:any[]): Multi;
punsubscribe(args:any[], callback?:ResCallbackT<any>): Multi;
punsubscribe(...args:any[]): Multi;
publish(args:any[], callback?:ResCallbackT<any>): Multi;
publish(...args:any[]): Multi;
watch(args:any[], callback?:ResCallbackT<any>): Multi;
watch(...args:any[]): Multi;
unwatch(args:any[], callback?:ResCallbackT<any>): Multi;
unwatch(...args:any[]): Multi;
cluster(args:any[], callback?:ResCallbackT<any>): Multi;
cluster(...args:any[]): Multi;
restore(args:any[], callback?:ResCallbackT<any>): Multi;
restore(...args:any[]): Multi;
migrate(args:any[], callback?:ResCallbackT<any>): Multi;
migrate(...args:any[]): Multi;
dump(args:any[], callback?:ResCallbackT<any>): Multi;
dump(...args:any[]): Multi;
object(args:any[], callback?:ResCallbackT<any>): Multi;
object(...args:any[]): Multi;
client(args:any[], callback?:ResCallbackT<any>): Multi;
client(...args:any[]): Multi;
eval(args:any[], callback?:ResCallbackT<any>): Multi;
eval(...args:any[]): Multi;
evalsha(args:any[], callback?:ResCallbackT<any>): Multi;
evalsha(...args:any[]): Multi;
quit(args:any[], callback?:ResCallbackT<any>): Multi;
quit(...args:any[]): Multi;
}
}