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