You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
21 lines
369 B
TypeScript
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;
|