import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/ping * @see node_modules/@upstash/redis/docs/commands/auth/ping.mdx */ export class PingCommand extends Command { constructor(cmd?: [message?: string], opts?: CommandOptions) { const command: string[] = ["ping"]; if (cmd?.[0] !== undefined) { command.push(cmd[0]); } super(command, opts); } }