import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/mget * @see node_modules/@upstash/redis/docs/commands/string/mget.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 MGetCommand extends Command<(string | null)[], TData> { constructor(cmd: [string[]] | [...string[]], opts?: CommandOptions<(string | null)[], TData>) { const keys = Array.isArray(cmd[0]) ? cmd[0] : (cmd as string[]); super(["mget", ...keys], opts); } }