Skip to main content
Module

x/upstash_redis/pkg/commands/hmget.ts>HMGetCommand

HTTP based Redis Client for Serverless and Edge Functions
Extremely Popular
Go to Latest
class HMGetCommand
extends Command<(string | null)[], TData | null>
import { HMGetCommand } from "https://deno.land/x/upstash_redis@v1.14.0-next.1/pkg/commands/hmget.ts";

hmget returns an object of all requested fields from a hash The field values are returned as an object like this:

{[fieldName: string]: T | null}

In case the hash does not exist or all fields are empty null is returned

Constructors

new
HMGetCommand(unnamed 0: [string, string[]], opts?: CommandOptions<(string | null)[], TData | null>)

Type Parameters

TData extends Record<string, unknown>