Skip to content

Redis client patterns for Bun covering ioredis, Upstash, data structures, pub/sub, and caching.

CCM score
54 of 100
skills.sh installs
412
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers ioredis and Upstash clients, with setup for default, options, connection string, and TLS connections
  • Includes examples for strings, hashes, lists, sets, sorted sets, RedisJSON, transactions, and pipelines
  • Provides cache-aside, write-through, rate limiting, and session storage patterns for application code
  • Designed for Bun projects using self-hosted or serverless Redis, with references for clustering and Lua scripts

Install

$ npx -y skills add secondsky/claude-skills --skill bun-redis -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/secondsky/claude-skills
Categories
Databases, Backend & APIs
First seen
Jun 3, 2026

Questions

What is the bun-redis skill for?

The bun-redis skill helps an agent work with Redis inside Bun, covering caching, pub/sub, session storage and key-value operations. It shows how to use the ioredis, @upstash/redis and redis clients, including data structures, transactions and cache-aside patterns.

How do I install the bun-redis skill?

Run npx -y skills add secondsky/claude-skills --skill bun-redis -y in your project to install it. Once installed, the agent can write Redis code for Bun using the patterns in the skill.

Which Redis client does the bun-redis skill recommend?

The skill lists ioredis for self-hosted Redis, @upstash/redis for serverless and edge setups, and the official redis client for Node-style use. Each choice has its own install command, such as bun add ioredis.

Where does bun-redis stand in the Databases category?

bun-redis sits in the Databases category on Claude Marketplaces, alongside skills such as supabase-postgres-best-practices and several Prisma skills. Its focus is Redis in Bun rather than relational databases.

More from secondsky/claude-skills

All 116

Similar to Bun Redis

More Databases