import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/rpop * @see node_modules/@upstash/redis/docs/commands/list/rpop.mdx * Responses are JSON-parsed automatically: a stored "123" comes back as the number 123, "true" as * true, and '{"a":1}' as an object. Pass automaticDeserialization: false to the Redis constructor * to receive raw strings. */ export class RPopCommand extends Command< unknown | null, TData | null > { constructor( cmd: [key: string, count?: number], opts?: CommandOptions ) { super(["rpop", ...cmd], opts); } }