You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
12 lines
389 B
TypeScript
12 lines
389 B
TypeScript
import { Command } from '@redis/client/dist/lib/RESP/types';
|
|
import INSERT, { parseCfInsertArguments } from './INSERT';
|
|
|
|
export default {
|
|
IS_READ_ONLY: INSERT.IS_READ_ONLY,
|
|
parseCommand(...args: Parameters<typeof parseCfInsertArguments>) {
|
|
args[0].push('CF.INSERTNX');
|
|
parseCfInsertArguments(...args);
|
|
},
|
|
transformReply: INSERT.transformReply
|
|
} as const satisfies Command;
|