Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.18.5-rc.0/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>