Runtime Cache
Keep cache logic in services, not controllers.Runtime setup
Environment behavior
APP_ENV=development: memory cacheAPP_ENV=staging: file cache usingCACHE_DIRAPP_ENV=production: Memcached, then file cache, then memory cache
Cache behavior at the service boundary, environment selection, and read-through invalidation patterns.
APP_ENV=development: memory cacheAPP_ENV=staging: file cache using CACHE_DIRAPP_ENV=production: Memcached, then file cache, then memory cache