import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/docs/latest/commands/fcall_ro/ * @see node_modules/@upstash/redis/docs/commands/functions/call_ro.mdx */ export class FCallRoCommand extends Command { constructor( [functionName, keys, args]: [functionName: string, keys?: string[], args?: string[]], opts?: CommandOptions ) { super( ["fcall_ro", functionName, ...(keys ? [keys.length, ...keys] : [0]), ...(args ?? [])], opts ); } }