Overview
Build a caching module that improves API performance through intelligent caching of frequently accessed data with Redis as the primary cache store.
Direction
This module should provide:
- Redis client configuration and connection management
- Cache key generation and TTL management
- Cache decorators for automatic memoization
- Cache invalidation strategies
- Cache statistics and monitoring
- Fallback to in-memory caching if Redis unavailable
- Cache warming capabilities
Implementation Details
The caching module should provide both automatic caching through decorators and manual cache operations. It should handle cache stampedes and provide strategies for graceful degradation when Redis is unavailable.
Acceptance Criteria
Overview
Build a caching module that improves API performance through intelligent caching of frequently accessed data with Redis as the primary cache store.
Direction
This module should provide:
Implementation Details
The caching module should provide both automatic caching through decorators and manual cache operations. It should handle cache stampedes and provide strategies for graceful degradation when Redis is unavailable.
Acceptance Criteria