mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Added methods cork and uncork for RedisClient.
This commit is contained in:
parent
756433aeb4
commit
453ffc9e8a
10
redis/index.d.ts
vendored
10
redis/index.d.ts
vendored
@ -94,6 +94,16 @@ export interface RedisClient extends NodeJS.EventEmitter {
|
||||
end(): void;
|
||||
unref(): void;
|
||||
|
||||
/**
|
||||
* Stop sending commands and queue the commands.
|
||||
*/
|
||||
cork(): void;
|
||||
|
||||
/**
|
||||
* Resume and send the queued commands at once.
|
||||
*/
|
||||
uncork(): void;
|
||||
|
||||
// Low level command execution
|
||||
send_command(command: string, ...args: any[]): boolean;
|
||||
|
||||
|
||||
@ -112,4 +112,10 @@ client.monitor(resCallback);
|
||||
// Send command
|
||||
client.send_command(str, args, resCallback);
|
||||
// Duplicate
|
||||
client.duplicate();
|
||||
client.duplicate();
|
||||
|
||||
// Pipeline
|
||||
client.cork();
|
||||
client.set("abc", "fff", strCallback);
|
||||
client.get("abc", resCallback);
|
||||
client.uncork();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user