import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/setnx */ export class SetNxCommand extends Command { constructor(cmd: [key: string, value: TData], opts?: CommandOptions) { super(["setnx", ...cmd], opts); } }