"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FlushAllCommand = void 0;
const command_js_1 = require("./command.js");
/**
 * @see https://redis.io/commands/flushall
 */
class FlushAllCommand extends command_js_1.Command {
    constructor(args, opts) {
        const command = ["flushall"];
        if (args && args.length > 0 && args[0].async) {
            command.push("async");
        }
        super(command, opts);
    }
}
exports.FlushAllCommand = FlushAllCommand;
