# doctrine/cache

Doctrine Cache component

Repository: https://github.com/doctrine/cache
Canonical: https://ross.abutalabs.com/products/cache
Homepage: https://www.doctrine-project.org/projects/cache.html
Language: PHP
License: MIT
License Family: permissive
Last push: 2025-10-08T08:10:50+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 46, release rhythm 8, longevity 100
- inputs: {"age_days": 4983, "days_push": 329, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7855, forks 210 (observed 2026-08-28T04:10:07.679516+00:00)

## What it is
Doctrine Cache is a PHP caching library providing a common Cache interface with drivers for Redis, Memcache, APCu, MongoDB, filesystem, and more. It is deprecated; the 2.x series only ships interfaces for backward compatibility, and users are directed to PSR-6/PSR-16 libraries like symfony/cache.

## Use cases
- cache data in PHP with redis or memcache
- wrap a PSR-6 cache pool for Doctrine compatibility
- cache ORM query results in PHP
- in-memory array cache for single-process PHP apps
- chain multiple cache backends with fallback

## When to choose
- maintaining legacy code that depends on the Doctrine Cache interface
- you need the DoctrineProvider wrapper to adapt PSR-6 pools to Doctrine's interface

## When to avoid
- starting a new PHP project - use a PSR-6 or PSR-16 cache library like symfony/cache instead
- you need actively maintained cache drivers - the last driver release was 1.11

## Facets
- artifact type: library
- maturity: maintenance
- function: caching
- domain: backend, web-development, developer-tools
- platform: php
- tags: psr-6, psr-16, deprecated, doctrine, redis, memcache, apcu

## Member repositories
- doctrine/cache (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:07.679516+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-29T17:33:47.972714+00:00, confidence not recorded.
  - readme: https://github.com/doctrine/cache (fetched 2026-08-28T04:10:07.679516+00:00, sha 4c4b0d4b71fc)
  - homepage: https://www.doctrine-project.org/projects/cache.html (fetched 2026-08-29T08:30:26.165147+00:00, sha f1ba96c44be6)
  - site_page: https://www.doctrine-project.org/projects/doctrine-cache/en/2.2/index.html (fetched 2026-08-29T08:30:26.168087+00:00, sha b9e74d5a2ab6)
  - site_page: https://www.doctrine-project.org/projects/doctrine-cache/en/2.1/index.html (fetched 2026-08-29T08:30:26.170360+00:00, sha 4889dec8d145)
  - site_page: https://www.doctrine-project.org/projects/doctrine-cache/en/2.0/index.html (fetched 2026-08-29T08:30:26.172301+00:00, sha 25b7822aa1fe)
  - site_page: https://www.doctrine-project.org/projects/doctrine-cache/en/1.13/index.html (fetched 2026-08-29T08:30:26.173943+00:00, sha 12309af053ef)
  - site_page: https://www.doctrine-project.org/projects/doctrine-cache/en/1.12/index.html (fetched 2026-08-29T08:30:26.176077+00:00, sha e8d6137bcfd3)
  - site_page: https://www.doctrine-project.org/projects/doctrine-cache/en/1.11/index.html (fetched 2026-08-29T08:30:26.178092+00:00, sha bc96acc7004f)
  - site_page: https://www.doctrine-project.org/projects/doctrine-cache/en/1.10/index.html (fetched 2026-08-29T08:30:26.180018+00:00, sha 7fa4e192faf0)
  - site_page: https://www.doctrine-project.org/projects/doctrine-cache/en/1.9/index.html (fetched 2026-08-29T08:30:26.181838+00:00, sha 087f27c1df5e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
