Skip to content
masterclass Buddy

Upstash · Class

Redis

@upstash/redis is an HTTP-based Redis client for serverless and edge applications. Install it, configure the REST URL and token, then await Redis commands.

Last updated

Syntax

new Redis({ url: "UPSTASH_REDIS_REST_URL", token: "UPSTASH_REDIS_REST_TOKEN" })
Redis.fromEnv()

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Redis.fromEnv
  • Redis.get
  • Redis.incr
  • UPSTASH_REDIS_REST_URL
  • UPSTASH_REDIS_REST_TOKEN
  • upstash_redis

Source: Connect with @upstash/redis - Upstash Documentation. Checked 2026-11-03.