import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/hsetnx * @see node_modules/@upstash/redis/docs/commands/hash/hsetnx.mdx */ export class HSetNXCommand extends Command<"0" | "1", 0 | 1> { constructor( cmd: [key: string, field: string, value: TData], opts?: CommandOptions<"0" | "1", 0 | 1> ) { super(["hsetnx", ...cmd], opts); } }