redis

Solid

Redis caching patterns, pub/sub, sessions, rate limiting, and data structures.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
44
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Redis Skill Expert assistance for Redis caching and data management. ## Capabilities - Implement caching strategies - Build pub/sub systems - Manage sessions - Implement rate limiting - Use Redis data structures ## Caching Pattern ```typescript async function getCachedUser(id: string) { const cached = await redis.get(`user:${id}`); if (cached) return JSON.parse(cached); const user = await db.user.findUnique({ where: { id } }); await redis.setex(`user:${id}`, 3600, JSON.stringify(user)); return user; } ``` ## Rate Limiting ```typescript async function rateLimit(ip: string, limit = 100, window = 60) { const key = `ratelimit:${ip}`; const count = await redis.incr(key); if (count === 1) await redis.expire(key, window); return count <= limit; } ``` ## Target Processes - caching-implementation - real-time-features - session-management

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Related Skills