You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
20 lines
456 B
TypeScript
20 lines
456 B
TypeScript
import { RedisCommandArgument } from '.';
|
|
|
|
export const IS_READ_ONLY = true;
|
|
|
|
export function transformArguments(version?: number, ...optionalArguments: Array<number>): Array<string> {
|
|
const args = ['LOLWUT'];
|
|
|
|
if (version) {
|
|
args.push(
|
|
'VERSION',
|
|
version.toString(),
|
|
...optionalArguments.map(String),
|
|
);
|
|
}
|
|
|
|
return args;
|
|
}
|
|
|
|
export declare function transformReply(): RedisCommandArgument;
|