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.
SubscribeRelated
Redis.fromEnvRedis.getRedis.incrUPSTASH_REDIS_REST_URLUPSTASH_REDIS_REST_TOKENupstash_redis