redis-patterns
Redis patterns including caching strategies, pub/sub, streams for event processing, Lua scripts, and data structures
Content Preview
---
name: redis-patterns
description: Redis patterns including caching strategies, pub/sub, streams for event processing, Lua scripts, and data structures
---
# Redis Patterns
## Caching Strategies
```typescript
async function getUser(userId: string): Promise<User> {
const cacheKey = `user:${userId}`;
const cached = await redis.get(cacheKey);
if (cached) {
return JSON.parse(cached);
}
const user = await db.user.findUnique({ where: { id: userId } });
if (user) {
await redHow to Use
Recommended: Install to project (local)
mkdir -p .claude/skills
curl -o .claude/skills/redis-patterns.md \
https://raw.githubusercontent.com/rohitg00/awesome-claude-code-toolkit/main/skills/redis-patterns/SKILL.mdSkill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.
Alternative: Clone full repo
git clone https://github.com/rohitg00/awesome-claude-code-toolkitThen reference at skills/redis-patterns/SKILL.md
Related Skills
azure-resource-manager-redis-dotnet
Azure Resource Manager SDK for Redis in .NET.
developmentazureresourcemanager
by sickn33 (Antigravity) · antigravity-awesome-skills
red-team-tactics
Red team tactics principles based on MITRE ATT&CK. Attack phases, detection evasion, reporting.
securityredteamtactics
by sickn33 (Antigravity) · antigravity-awesome-skills
tdd-workflows-tdd-red
Generate failing tests for the TDD red phase to define expected behavior and edge cases.
testingtddred
by sickn33 (Antigravity) · antigravity-awesome-skills
websocket-engineer
Use when building real-time communication systems with WebSockets or Socket.IO. Invoke for bidirectional messaging, horizontal scaling with Redis, presence tracking, room management.
websocket-engineerwebsocketengineerredis
by Jeffallan · jeffallan-claude-skills