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:
@@ -2,10 +2,16 @@ import { RedisArgument, SimpleStringReply, Command } from '../RESP/types';
|
||||
import { pushVariadicArguments } from './generic-transformers';
|
||||
|
||||
export default {
|
||||
IS_READ_ONLY: true,
|
||||
FIRST_KEY_INDEX: undefined,
|
||||
IS_READ_ONLY: true,
|
||||
transformArguments(path: RedisArgument, moduleArguments?: Array<RedisArgument>) {
|
||||
return pushVariadicArguments(['MODULE', 'LOAD', path], moduleArguments);
|
||||
const args = ['MODULE', 'LOAD', path];
|
||||
|
||||
if (moduleArguments) {
|
||||
return args.concat(moduleArguments);
|
||||
}
|
||||
|
||||
return args;
|
||||
},
|
||||
transformReply: undefined as unknown as () => SimpleStringReply
|
||||
} as const satisfies Command;
|
||||
|
Reference in New Issue
Block a user