symfonysymfony-cache
Implement caching with Symfony Cache component; configure pools, use cache tags for invalidation, and optimize performance
When & Why to Use This Skill
This Claude skill empowers developers to efficiently implement and manage the Symfony Cache component within PHP applications. It streamlines the process of configuring cache pools, implementing advanced tag-based invalidation, and fine-tuning performance to ensure high-speed data retrieval and reduced server overhead.
Use Cases
- Scenario 1: Configuring PSR-6 or PSR-16 cache adapters (such as Redis, Memcached, or Filesystem) to optimize data persistence in Symfony projects.
- Scenario 2: Implementing granular cache invalidation strategies using tags to clear specific data subsets without affecting the entire cache store.
- Scenario 3: Enhancing application performance by caching expensive database queries, complex computations, or external API responses.
- Scenario 4: Setting up multi-layered caching architectures using Chained Adapters to combine the speed of local memory with the persistence of distributed stores.
| name | symfony:symfony-cache |
|---|---|
| description | Use when symfony symfony cache |
symfony:symfony-cache (Micro)
Use when
- Use when symfony symfony cache
Rules
- Keep changes minimal and focused
- Ask before running servers/builds/tests
- Load reference/examples only on explicit request
References
reference.mddocs/complexity-tiers.md