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.