Redis
Redis is an in-memory data structure store used as a database, cache, and message broker. It supports various data structures including strings, hashes, lists, sets, and streams.
Key Concepts
- Data structures (Strings, Hashes, Sets, Sorted Sets)
- Persistence (RDB, AOF)
- Pub/Sub messaging
- Lua scripting
- Cluster mode
Common Use Cases
- Session storage
- Cache layer
- Rate limiting
- Leaderboards
- Real-time analytics
Best Practices
- Use connection pooling
- Set appropriate TTLs
- Monitor memory usage
- Use Redis Cluster for scaling
- Leverage Lua for atomic operations
Resources
- Redis.io: redis.io/documentation
- Redislabs: redislabs.com
- Related Skills: caching, session-management, message-queues