# symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

Repository: https://github.com/symfony/cache
Canonical: https://ross.abutalabs.com/products/symfony-cache
Homepage: https://symfony.com/cache
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component, caching, psr6
Last push: 2026-08-25T14:25:57+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 3879, "days_push": 8, "days_rel": 11, "gap_med": 0.0, "n_releases_24m": 93}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4154, forks 66 (observed 2026-08-28T04:08:36.526342+00:00)

## What it is
The Symfony Cache component provides extended PSR-6 and PSR-16 caching implementations with adapters for common backends like Redis, Memcached, APCu, databases, and the filesystem. It adds advanced features such as tag-based invalidation, cache stampede prevention, and Symfony Cache Contracts interoperability, usable in any PHP application.

## Use cases
- cache expensive database queries in a PHP app
- add PSR-6 or PSR-16 compliant caching to any PHP project
- cache results of external HTTP API calls
- invalidate cached data by tags
- prevent cache stampedes on popular keys
- chain multiple cache backends with fallback
- store computed results on the filesystem or in Redis

## When to choose
- you need standards-compliant (PSR-6/PSR-16) caching in PHP
- you want adapters for many backends with one consistent API
- you need tag-based invalidation or stampede protection
- you are building a Symfony application and want first-party integration

## When to avoid
- you are not working in PHP
- you need a standalone caching server rather than a client library
- you want a framework-agnostic caching layer outside the PHP ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: caching, serialization
- domain: web-development, backend, performance, developer-tools
- platform: php, cross-platform
- tags: psr-6, psr-16, cache-adapters, tag-invalidation, symfony-component, redis, memcached, apcu

## Member repositories
- symfony/cache (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:36.526342+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:22:52.878169+00:00, confidence not recorded.
  - readme: https://github.com/symfony/cache (fetched 2026-08-28T04:08:36.526342+00:00, sha 854126aa65f2)
  - homepage: https://symfony.com/cache (fetched 2026-08-29T09:13:46.662531+00:00, sha 66798757756b)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T09:13:46.671790+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/doc/current/components/cache.html (fetched 2026-08-29T09:13:46.674009+00:00, sha 21f68e54b83e)
  - site_page: https://symfony.com/projects/phpmyfaq (fetched 2026-08-29T09:13:46.716740+00:00, sha b0b5a7438255)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T09:13:46.718777+00:00, sha f109a7a4a5da)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T09:13:46.720602+00:00, sha da84802d18f3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
