import { Command } from "./command.js";
/**
 * @see https://redis.io/commands/hmset
 */
export class HMSetCommand extends Command {
    constructor([key, kv], opts) {
        super([
            "hmset",
            key,
            ...Object.entries(kv).flatMap(([field, value]) => [field, value]),
        ], opts);
    }
}
