import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/zpopmax * @see node_modules/@upstash/redis/docs/commands/zset/zpopmax.mdx */ export class ZPopMaxCommand extends Command { constructor( [key, count]: [key: string, count?: number], opts?: CommandOptions ) { const command: unknown[] = ["zpopmax", key]; if (typeof count === "number") { command.push(count); } super(command, opts); } }