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