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