import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/hset * @see node_modules/@upstash/redis/docs/commands/hash/hset.mdx */ export class HSetCommand extends Command { constructor( [key, kv]: [key: string, kv: Record], opts?: CommandOptions ) { super(["hset", key, ...Object.entries(kv).flatMap(([field, value]) => [field, value])], opts); } }