You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
* fix #1912 - CLIENT PAUSE * fix client pause * Update commands.ts
This commit is contained in:
20
packages/client/lib/commands/CLIENT_PAUSE.ts
Normal file
20
packages/client/lib/commands/CLIENT_PAUSE.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { RedisCommandArguments } from '.';
|
||||
|
||||
export function transformArguments(
|
||||
timeout: number,
|
||||
mode?: 'WRITE' | 'ALL'
|
||||
): RedisCommandArguments {
|
||||
const args = [
|
||||
'CLIENT',
|
||||
'PAUSE',
|
||||
timeout.toString()
|
||||
];
|
||||
|
||||
if (mode) {
|
||||
args.push(mode);
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
export declare function transformReply(): 'OK' | Buffer;
|
Reference in New Issue
Block a user