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