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
Installs
1.5K
GitHub Stars
107
First Seen
Jan 25, 2026