1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/packages/client/lib/commands/SCRIPT_FLUSH.ts
2023-04-24 19:50:58 -04:00

17 lines
381 B
TypeScript

import { SimpleStringReply, Command } from '../RESP/types';
export default {
IS_READ_ONLY: true,
FIRST_KEY_INDEX: undefined,
transformArguments(mode?: 'ASYNC' | 'SYNC') {
const args = ['SCRIPT', 'FLUSH'];
if (mode) {
args.push(mode);
}
return args;
},
transformReply: undefined as unknown as () => SimpleStringReply
} as const satisfies Command;