Agent skill · software engineering · upstash

upstash-redis-js

Work with the @upstash/redis TypeScript/JavaScript SDK, a serverless HTTP-based Redis client for Next.js, Vercel, Cloudflare Workers, edge runtimes, and Node.js. Use when adding a cache (cache-aside, write-through, TTL and expiration strategies), session storage and user sessions, a key-value store, leaderboards and rankings with sorted sets, counters, distributed locks, queues with lists, streams and consumer groups, JSON documents, pipelines and MULTI/EXEC transactions, Lua scripting, read replicas, or full-text search, typo-tolerant search, facets, and aggregations with Upstash Redis Search (different from regular FT.SEARCH; also available for TCP clients via @upstash/search-redis and @upstash/search-ioredis). Also use when migrating from ioredis or node-redis, when a Redis connection is needed from a serverless function without connection pooling, when integrating @upstash/ratelimit, or when the user says Redis cache, KV store, session store, serverless Redis, or Upstash Redis. Supports automatic serialization/deserialization of JavaScript types.

Why this skill is useful

Provides domain-specific knowledge and patterns for using Upstash Redis that the AI wouldn't reliably generate on its own.

What it needs

Requires @upstash/redis installed locally. Requires upstash account access. About 4k tokens when loaded. Last updated 2026-07-14. 17 stars on the source repository.

What this skill does

Upstash Redis SDK - Complete Skills Guide This directory contains comprehensive guides for using the @upstash/redis SDK. These skill files are designed to help developers and AI assistants understand and use the SDK effectively. Installation Quick Start Basic Initialization Environment Variables Set these in your .env file: No credentials yet? If you're an agent that needs scratch Redis and the user hasn't provided a database, you can mint a temporary one with a single POST to https://upstash.com/start-redis (3-day TTL, no signup). Skill Files Overview Data Structures (data-structures/) Redis data types with auto-serialization examples: strings.md - GET, SET, INCR, DECR, APPEND with automatic type handling hashes.md - HSET, HGET, HMGET with object serialization lists.md - LPUSH, RPUSH, LRANGE with array handling sets.md - SADD, SMEMBERS, set operations sorted-sets.md - ZADD, ZRANGE, ZRANK, leaderboard patterns json.md - JSON.SET, JSON.GET, JSONPath queries for nested objects streams.md - XADD, XREAD, XGROUP, consumer groups Advanced Features (advanced-features/) Complex operations and optimizations: auto-pipeline.md - Automatic request batching, performance optimization pipeline-and-transactions.md - Manual pipelines, MULTI/EXEC for atomic operations scripting.md - Lua scripts, EVAL, EVALSHA for server-side logic Patterns (patterns/) Common use cases and architectural patterns: caching.md - Cache-aside, write-through, TTL strategies rate-limiting.md - Integration with @upstash/ratelimit package session-management.md - Session storage and user state management distributed-locks.md - Lock implementations, deadlock prevention leaderboard.md - Sorted set leaderboards, real-time rankings Performance (performance/) Optimization techniques and best practices: batching-operations.md - MGET, MSET, batch operations pipeline-optimization.md - When to use pipelines, performance tips ttl-expiration.md - Key expiration strategies, memory management data-serialization.md - Deep di …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills upstash/upstash-redis-js

View the source on GitHub

Browse the @skills marketplace