"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HMSetCommand = void 0;
const command_js_1 = require("./command.js");
/**
 * @see https://redis.io/commands/hmset
 */
class HMSetCommand extends command_js_1.Command {
    constructor([key, kv], opts) {
        super([
            "hmset",
            key,
            ...Object.entries(kv).flatMap(([field, value]) => [field, value]),
        ], opts);
    }
}
exports.HMSetCommand = HMSetCommand;
