import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * Writes one or more values into an array, starting at `index`: the first value goes to `index`, * the next to `index + 1`, and so on. * * Returns the number of slots that were newly occupied. Overwriting an existing value contributes `0`. * * @see https://upstash.com/docs/redis/commands/array/arset * @see node_modules/@upstash/redis/docs/commands/array/arset.mdx */ export class ArSetCommand extends Command { constructor( cmd: [key: string, index: number | string, ...values: TData[]], opts?: CommandOptions ) { super(["ARSET", ...cmd], opts); } }