You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
WIP
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { RedisCommandArgument, RedisCommandArguments } from '.';
|
||||
// import { RedisCommandArgument, RedisCommandArguments } from '.';
|
||||
|
||||
export function transformArguments(
|
||||
dump: RedisCommandArgument,
|
||||
mode?: 'FLUSH' | 'APPEND' | 'REPLACE'
|
||||
): RedisCommandArguments {
|
||||
const args = ['FUNCTION', 'RESTORE', dump];
|
||||
// export function transformArguments(
|
||||
// dump: RedisCommandArgument,
|
||||
// mode?: 'FLUSH' | 'APPEND' | 'REPLACE'
|
||||
// ): RedisCommandArguments {
|
||||
// const args = ['FUNCTION', 'RESTORE', dump];
|
||||
|
||||
if (mode) {
|
||||
args.push(mode);
|
||||
}
|
||||
// if (mode) {
|
||||
// args.push(mode);
|
||||
// }
|
||||
|
||||
return args;
|
||||
}
|
||||
// return args;
|
||||
// }
|
||||
|
||||
export declare function transformReply(): 'OK';
|
||||
// export declare function transformReply(): 'OK';
|
||||
|
Reference in New Issue
Block a user