Skip to main content
Module

x/upstash_redis/platforms/cloudflare.ts>Redis

HTTP based Redis Client for Serverless and Edge Functions
Extremely Popular
Go to Latest
class Redis
import { Redis } from "https://deno.land/x/upstash_redis@v1.22.0/platforms/cloudflare.ts";

Serverless redis client for upstash.

Constructors

new
Redis(config: RedisConfigCloudflare, env?: Env)

Create a new redis client

Static Methods

fromEnv(env?: { UPSTASH_REDIS_REST_URL: string; UPSTASH_REDIS_REST_TOKEN: string; UPSTASH_DISABLE_TELEMETRY?: string; }, opts?: Omit<RedisConfigCloudflare, "url" | "token">): Redis