"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SPopCommand = void 0;
const command_js_1 = require("./command.js");
/**
 * @see https://redis.io/commands/spop
 */
class SPopCommand extends command_js_1.Command {
    constructor([key, count], opts) {
        const command = ["spop", key];
        if (typeof count === "number") {
            command.push(count);
        }
        super(command, opts);
    }
}
exports.SPopCommand = SPopCommand;
