You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
WIP
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
import { RedisCommandArguments } from '.';
|
||||
import { SimpleStringReply, Command } from '../RESP/types';
|
||||
import { RedisFlushModes } from './FLUSHALL';
|
||||
|
||||
export function transformArguments(mode?: 'ASYNC' | 'SYNC'): RedisCommandArguments {
|
||||
export default {
|
||||
IS_READ_ONLY: true,
|
||||
FIRST_KEY_INDEX: undefined,
|
||||
transformArguments(mode?: RedisFlushModes) {
|
||||
const args = ['FUNCTION', 'FLUSH'];
|
||||
|
||||
|
||||
if (mode) {
|
||||
args.push(mode);
|
||||
args.push(mode);
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
export declare function transformReply(): 'OK';
|
||||
},
|
||||
transformReply: undefined as unknown as () => SimpleStringReply
|
||||
} as const satisfies Command;
|
||||
|
Reference in New Issue
Block a user