Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/upstash_redis/pkg/commands/mod.ts>HRandFieldCommand

HTTP based Redis Client for Serverless and Edge Functions
Go to Latest
class HRandFieldCommand
extends Command<string | string[], TData>
import { HRandFieldCommand } from "https://deno.land/x/upstash_redis@v1.19.1/pkg/commands/mod.ts";

Constructors

new
HRandFieldCommand(cmd: [string], opts?: CommandOptions<string, string>)
new
HRandFieldCommand(cmd: [string, number], opts?: CommandOptions<string[], string[]>)
new
HRandFieldCommand(cmd: [string, number, boolean], opts?: CommandOptions<string[], Partial<TData>>)
new
HRandFieldCommand(cmd: [string, number, boolean], opts?: CommandOptions<any, string | string[] | Partial<TData>>)

Type Parameters

TData extends string | string[] | Record<string, unknown>