import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * Returns the value stored at `index`, or `null` if the slot is empty or the key does not exist. * * @see https://upstash.com/docs/redis/commands/array/arget * @see node_modules/@upstash/redis/docs/commands/array/arget.mdx */ export class ArGetCommand extends Command { constructor( cmd: [key: string, index: number | string], opts?: CommandOptions ) { super(["ARGET", ...cmd], opts); } }