Skip to content
Development
Skill

/symfony-cache

Implement caching with the Symfony Cache component; configure pools, use tags for invalidation, prevent stampede

From plugin
superpowers-symfony
22744 skills14 agents13 commands1 hook

Claude Code

$ npx -y skills add dev-toolings/superpowers-symfony --skill symfony-cache --agent claude-code

SKILL.md

symfony-cache.SKILL.md
name: symfony-cache
description: Implement caching with the Symfony Cache component; configure pools, use tags for invalidation, prevent stampede
capabilities: [read, search, edit, shell]
tags: [architecture, cache, performance]
# projected by `bun run build` — do not edit by hand
allowed-tools:
  - Read
  - Glob
  - Grep
  - Write
  - Edit
  - Bash

Symfony Cache (Symfony)

Use when

  • Caching expensive reads: repository results, computed values, third-party responses.
  • Choosing or configuring a pool and its adapter (filesystem, Redis, APCu, chained).
  • Invalidating by tag rather than clearing everything.
  • A hot key expires under load and every request recomputes it at once.
  • Adding HTTP cache headers, a cache warmer, or clearing pools on deploy.

Default workflow

1. Identify what is recomputed and how often, and whether it can go stale. 2. Pick the pool and adapter for the access pattern and the deployment shape. 3. Read through `CacheInterface::get()` with an explicit expiry. 4. Tag every entry by the data it derives from, and invalidate by tag on write. 5. Enable early expiration on keys whose recomputation is expensive.

Guardrails

  • Set an expiry on every entry. An entry without one never leaves the pool.
  • Never put user input in a cache key unhashed, and never put secrets in one.
  • Invalidate by tag, not by clearing the pool: a full clear is a cold start.
  • A cached value is stale by definition. Do not cache what must be exact.
  • Tag invalidation needs a tag-aware adapter, so decide it when configuring the pool.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • Pool and adapter configuration, with the expiry chosen for each entry.
  • The tag map: which write invalidates which tags.
  • Stampede protection where recomputation is expensive.
  • Evidence that a write invalidates what it should.

References

  • `reference.md`
Read more
@dev-toolings
Ships withsuperpowers-symfony

Superpowers Symfony gives coding agents deep, version-accurate Symfony expertise: from Doctrine schema design and API Platform REST/GraphQL APIs to test-driven development, async Messenger workflows, caching, rate limiting, and clean architecture.

22744 skills14 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
227
Star history of dev-toolings/superpowers-symfony on GitHub, a chart by star-history.com

Other skills on superpowers-symfony.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react3d252k
@facebook@facebookInstall Skill

Questions about symfony-cache.

Which coding agents can use symfony-cache?
symfony-cache installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.