1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
Files
Leibale b46f08228c wip
2023-06-21 19:09:45 -04:00

21 lines
453 B
TypeScript

import { SimpleStringReply, Command } from '../RESP/types';
export interface BgSaveOptions {
SCHEDULE?: boolean;
}
export default {
FIRST_KEY_INDEX: undefined,
IS_READ_ONLY: true,
transformArguments(options?: BgSaveOptions) {
const args = ['BGSAVE'];
if (options?.SCHEDULE) {
args.push('SCHEDULE');
}
return args;
},
transformReply: undefined as unknown as () => SimpleStringReply
} as const satisfies Command;