Redis
Skill a5c-ai/babysitter/library/specializations/web-development/skills/redis
Babysitter enforces obedience on agentic workforces and enables them to manage extremely complex tasks and workflows through deterministic, hallucination-free self-orchestration
npx -y skills add a5c-ai/babysitter --skill redisAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Redis caching patterns, pub/sub, sessions, rate limiting, and data structures.
SKILL.md
1.3 KB, as published. Nobody here has run it
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
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
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