Caching2 recipes

Data caching strategies and configs

redisINIintermediate
Production Redis Configuration with Persistence and Memory Policy

A hardened redis.conf for production use: disabled commands, maxmemory with LRU eviction, combined RDB + AOF persistence, bind to localhost, and requirepass authentication.

dockerYAMLbeginner
Local Dev docker-compose with PostgreSQL and Redis

A docker-compose.yml for local development that spins up the app, PostgreSQL 16, Redis 7 and an optional Adminer instance - volumes ensure data survives container restarts.