import { type CommandOptions, Command } from "./command"; /** * Generic exec command for executing arbitrary Redis commands * Allows executing Redis commands that might not be directly supported by the SDK * * @example * // Execute MEMORY USAGE command * await redis.exec("MEMORY", "USAGE", "myKey") * * // Execute GET command * await redis.exec("GET", "foo") */ export class ExecCommand extends Command { constructor( cmd: [command: string, ...args: (string | number | boolean)[]], opts?: CommandOptions ) { const normalizedCmd = cmd.map((arg) => (typeof arg === "string" ? arg : String(arg))); super(normalizedCmd, opts); } }