redis-patterns
Installation
SKILL.md
Redis Patterns
Caching Strategies
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 redis.set(cacheKey, JSON.stringify(user), "EX", 3600);
}
Related skills
More from rohitg00/awesome-claude-code-toolkit
devops-automation
CI/CD pipeline design with GitHub Actions, Docker, Kubernetes, Helm, and GitOps patterns
116react-patterns
React 19 patterns including Server Components, Actions, Suspense, hooks, and component composition
88database-optimization
Query optimization, indexing strategies, and database performance tuning for PostgreSQL and MySQL
85api-design-patterns
REST API design with resource naming, pagination, versioning, and OpenAPI spec generation
81frontend-excellence
Modern frontend patterns for React Server Components, performance optimization, and Core Web Vitals
79mobile-development
Mobile development patterns for React Native and Flutter including navigation, state management, and responsive design
77