redis-best-practices
Installation
Summary
Redis development best practices for caching, data structures, and high-performance operations.
- Covers five core data structures (strings, hashes, lists, sets, sorted sets) plus streams, with command examples and use-case guidance for each
- Includes three caching patterns (cache-aside, write-through, invalidation) with pseudo-code and TTL strategies to prevent thundering herd
- Addresses high availability via replication, Sentinel, and cluster configuration with hash tags for key distribution
- Provides transaction and Lua scripting patterns for atomic operations, plus pub/sub messaging, persistence (RDB/AOF), and security hardening
- Covers monitoring, connection pooling, and performance optimization techniques including pipelining and memory management
SKILL.md
Redis Best Practices
Core Principles
- Use Redis for caching, session storage, real-time analytics, and message queuing
- Choose appropriate data structures for your use case
- Implement proper key naming conventions and expiration policies
- Design for high availability and persistence requirements
- Monitor memory usage and optimize for performance
Key Naming Conventions
- Use colons as namespace separators
- Include object type and identifier in key names
- Keep keys short but descriptive
- Use consistent naming patterns across your application
# Good key naming examples
Related skills
More from mindrally/skills
fastapi-python
Expert in FastAPI Python development with best practices for APIs and async operations
8.6Knextjs-react-typescript
Expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind
2.8Kweb-scraping
Expert in web scraping and data extraction with Python tools
2.3Kcomputer-vision-opencv
Expert guidance for computer vision development using OpenCV, PyTorch, and modern deep learning techniques for image and video processing.
1.9Kaccessibility-a11y
Implement web accessibility (a11y) best practices following WCAG guidelines to create inclusive, accessible user interfaces.
1.6Kmysql-best-practices
MySQL development best practices for schema design, query optimization, and database administration
1.6K