1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Files
node-redis/packages/client/lib/commands/CLIENT_PAUSE.ts
Leibale Eidelman 94dbcc847b fix #1912 - CLIENT PAUSE (#2125)
* fix #1912 - CLIENT PAUSE

* fix client pause

* Update commands.ts
2022-05-11 10:02:29 -04:00

21 lines
369 B
TypeScript

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;