FastAPI Caching - Redis caching patterns for FastAPI applications.
Provides Redis caching patterns, decorators, middleware, and invalidation strategies for FastAPI applications.
Tags
Updated: 2026-09-21Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Configure Redis connection pool
- Cache async function results
- Provide response caching middleware
- Implement cache-aside pattern
- Implement write-through pattern
- Invalidate cache keys and patterns
Inputs
- Redis connection URL
- HTTP request data
- Function arguments and parameters
Outputs
- Cached JSON data in Redis
- HTTP responses with X-Cache headers
- Invalidated Redis cache keys
Requirements
- FastAPI framework
- Redis server and redis-py client
- Starlette framework
