symfony-cache
Installation
SKILL.md
symfony/cache
If the project contains
.ddev/config.yaml, prefix every shell command withddev(full mapping in thesymfonyskill'sreferences/ddev.md). Examples target Symfony 7.4, 8.0 and newer — verify the installed version before using newer features.
When to use
You need to cache the result of an expensive computation, API call, or query. Works across processes (Redis, Memcached, filesystem) or in-process (array).
Replaces
- Direct
Predis\Client/Redisextension usage for caching - Direct
Memcachedextension usage apcu_fetch/apcu_storecalls- Ad-hoc file-based cache helpers