import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/flushall * @see node_modules/@upstash/redis/docs/commands/server/flushall.mdx */ export class FlushAllCommand extends Command<"OK", "OK"> { constructor(args?: [{ async?: boolean }], opts?: CommandOptions<"OK", "OK">) { const command = ["flushall"]; if (args && args.length > 0 && args[0].async) { command.push("async"); } super(command, opts); } }