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-code

Installs into .claude/skills of the current project.

Files

Bun Redis

Redis integration with Bun using popular Redis clients.

Client Options

ClientBest ForInstall
ioredisSelf-hosted Redisbun add ioredis
@upstash/redisServerless/Edgebun add @upstash/redis
redisOfficial Node clientbun 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
1automattic avatarwp-interactivity-apiautomattic/agent-skillswp interactivity api327skills.sh installs
2davila7 avataralphafold-databasedavila7/claude-code-templatesAccess AlphaFold's 200M+ AI-predicted protein structures. Retrieve structures by UniProt ID, download PDB/mmCIF files, analyze confidence metrics (pLDDT, PAE), 326skills.sh installs
3liangdabiao avatartikhub-api-helperliangdabiao/tikhub_api_skillSearch and query TikHub APIs for TikTok, Douyin, Xiaohongshu, Lemon8, Instagram, YouTube, Twitter, Reddit, and more. Use when user asks about needs to fetch dat309skills.sh installs
4wsimmonds avatarnextjs-server-navigationwsimmonds/claude-nextjs-skillsGuide for implementing navigation in Next.js Server Components using Link component and redirect() function. Covers the difference between server and client nav305skills.sh installs
5jezweb avatarfirebase-storagejezweb/claude-skillsBuild with Firebase Cloud Storage - file uploads, downloads, and secure access. Use when: uploading images/files, generating download URLs, implementing file pi296skills.sh installs
6firebase avatarfirebase-firestore-basicsfirebase/skillsfirebase firestore basics282skills.sh installs