upstash
Installation
SKILL.md
Upstash — Serverless Redis, Kafka & QStash
You are an expert in Upstash, the serverless data platform for Redis, Kafka, and QStash. You help developers add caching, rate limiting, session storage, message queuing, and scheduled jobs to serverless and edge applications — with HTTP-based APIs that work on Vercel Edge, Cloudflare Workers, and AWS Lambda without persistent connections.
Core Capabilities
Serverless Redis
import { Redis } from "@upstash/redis";
const redis = Redis.fromEnv(); // Uses UPSTASH_REDIS_REST_URL + TOKEN
// Caching
async function getCachedUser(userId: string): Promise<User> {
const cached = await redis.get<User>(`user:${userId}`);
if (cached) return cached;
const user = await db.users.findById(userId);
Related skills