import type { CommandOptions } from "./command"; import { Command } from "./command"; export type ClientSetInfoAttribute = "LIB-NAME" | "lib-name" | "LIB-VER" | "lib-ver"; /** * @see https://redis.io/commands/client-setinfo * @see node_modules/@upstash/redis/docs/commands/connection/client_setinfo.mdx */ export class ClientSetInfoCommand extends Command { constructor( [attribute, value]: [attribute: ClientSetInfoAttribute, value: string], opts?: CommandOptions ) { super(["CLIENT", "SETINFO", attribute.toUpperCase(), value], opts); } }