You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
16 lines
370 B
TypeScript
16 lines
370 B
TypeScript
import { SimpleStringReply, Command } from '../RESP/types';
|
|
import { RedisFlushModes } from './FLUSHALL';
|
|
|
|
export default {
|
|
transformArguments(mode?: RedisFlushModes) {
|
|
const args = ['FLUSHDB'];
|
|
|
|
if (mode) {
|
|
args.push(mode);
|
|
}
|
|
|
|
return args;
|
|
},
|
|
transformReply: undefined as unknown as () => SimpleStringReply
|
|
} as const satisfies Command;
|