Highly Available,
Infinitely Scalable
- 99.99% uptime guarantee
- Automatic scaling to meet your demands
- No server management required
import { Redis } from "@upstash/redis";
const redis = Redis.fromEnv();
const cacheKey = `item:${itemId}`;
// Check cache
const cachedItem = await redis.get(cacheKey);
if (cachedItem) {
console.log("Cache hit");
return JSON.parse(cachedItem);
}
* weekly average
The platform tailored for the serverless revolution
Data is replicated across 8+ regions worldwide to provide lowest latency for your users. Add/remove regions without any downtime.
Start free, then pay only for what you use with per-request pricing. You'll never pay more than the cap price, guaranteed.
Upstash enables companies of all sizes to create at the moment of inspiration
“We chose Upstash specifically because it offers an HTTP interface for Redis, which perfectly suited our needs”
“The Upstash JS SDK is incredibly easy to use – all I needed to do was run npm install, initialize the Redis instance, and start running redis commands – super simple!”
The help you need, when you need it