
Bun Redis
Covers Redis integration in Bun across ioredis, Upstash, and the official client. You get practical examples for all the core data structures (hashes, lists, sets, sorted sets), plus pub/sub, transactions, and caching patterns like cache-aside and rate limiting. The Upstash section is especially clean if you're deploying to serverless environments. Includes session storage middleware and a troubleshooting table for common connection issues. It's a solid reference whether you're setting up basic key-value operations or building more complex features like leaderboards with sorted sets. The code examples are ready to copy and adapt, which saves time over digging through official docs.
- skills.sh installs
- 328
- GitHub stars
- 248
- last updated
- Aug 21, 2026
Install
$ npx -y skills add secondsky/claude-skills --skill bun-redis --agent claude-codeInstalls into .claude/skills of the current project.
Files
Bun Redis
Redis integration with Bun using popular Redis clients.
Client Options
| Client | Best For | Install |
|---|---|---|
ioredis | Self-hosted Redis | bun add ioredis |
@upstash/redis | Serverless/Edge | bun add @upstash/redis |
redis | Official Node client | bun add redis |
ioredis Setup
import Redis from "ioredis";
// Default connection
const redis = new Redis();
// With options
const redis = new Redis({
host: "localhost",
port: 6379,
password: "secret",
db: 0,
});
// Connection string
const redis = new Redis("redis://:password@localhost:6379/0");
// TLS connection
const redis = new Redis({
host: "redis.example.com",
port: 6380,
tls: {},
});
Basic Operations
import Redis from "ioredis";
const redis = new Redis();
// Strings
await redis.set("name", "Alice");
await redis.set("count", "100");
await redis.setex("temp", 60, "expires in 60s"); // With TTL
const name = await redis.get("name"); // "Alice"
const count = await redis.incr("count"); // 101
await redis.del("name");
// Check existence
const exists = await redis.exists("name"); // 0 or 1
Sponsors
Details
- Repository
- github.com/secondsky/claude-skills
- Categories
- Backend & APIs, Databases
- First seen
- Jun 3, 2026
More from secondsky/claude-skills
All 146- Bun Ffi326
- Bun Jest Migration326
- Bun Websocket Server326
- Cloudflare Workers Runtime Apis326
- Swift Best Practices326
- Bun Nuxt323
- Bun Macros322
- Cloudflare Workers Frameworks321
- Supabase Postgres Best Practices319
- Cloudflare Workers Ci Cd318
- Cloudflare Workers Dev Experience317
- Cloudflare Workers Observability315
- Cloudflare Workers Migration310
- Cloudflare Workers Multi Lang310
- Verification Before Completion310
- Nuxt Studio308
- Neon Vercel Postgres294
- Chrome Devtools288
- Database Sharding277
- Sveltia Cms277
- Google Gemini File Search272
- Tailwind V4 Shadcn8.2K
- Aceternity Ui1.6K
- Vitest Testing1.3K