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

x/upstash_redis/platforms/node_with_fetch.ts>Redis.fromEnv

HTTP based Redis Client for Serverless and Edge Functions
Go to Latest
method Redis.fromEnv
import { Redis } from "https://deno.land/x/upstash_redis@v1.15.0/platforms/node_with_fetch.ts";

Create a new Upstash Redis instance from environment variables.

Use this to automatically load connection secrets from your environment variables. For instance when using the Vercel integration.

This tries to load UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN from your environment using process.env.

Parameters

optional
config: Omit<RedisConfigNodejs, "url" | "token">