Skip to main content

Runtime Cache

Keep cache logic in services, not controllers.

Runtime setup

Environment behavior

Current runtime behavior:
  • APP_ENV=development: memory cache
  • APP_ENV=staging: file cache using CACHE_DIR
  • APP_ENV=production: Memcached, then file cache, then memory cache

Read-through pattern

Write-side invalidation

CLI helpers