# php-fig/cache

Repository: https://github.com/php-fig/cache
Canonical: https://ross.abutalabs.com/products/php-fig-cache
Language: PHP
License: MIT
License Family: permissive
Last push: 2025-04-11T19:21:12+00:00

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

## Adoption (not part of the score)
Stars 5176, forks 46 (observed 2026-08-28T04:09:11.743742+00:00)

## What it is
The PSR-6 Caching Interface package from PHP-FIG, providing standard PHP interfaces for cache pools and cache items. It contains no implementation itself, only the contracts that caching libraries implement and applications consume.

## Use cases
- standardize cache usage across PHP libraries
- swap cache backends without changing application code
- write a PSR-6 compliant cache implementation
- type-hint against a common caching interface
- decouple framework code from specific cache vendors

## When to choose
- you are building a PHP library and want interoperable caching via a standard interface
- you need to implement or consume PSR-6 cache contracts
- you want vendor-agnostic caching in a framework-agnostic package

## When to avoid
- you need an actual working cache backend like Redis or Memcached
- your project uses PSR-16 simple cache instead of PSR-6
- you are not working in PHP

## Facets
- artifact type: library
- maturity: stable
- function: caching
- domain: developer-tools, web-development, backend
- platform: php
- tags: psr-6, psr, interfaces, standards, cache-interfaces

## Member repositories
- php-fig/cache (main) score 39

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:11.743742+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:01:49.779187+00:00, confidence not recorded.
  - readme: https://github.com/php-fig/cache (fetched 2026-08-28T04:09:11.743742+00:00, sha 8c67b845dd11)
- Data as of 2026-08-30T08:39:29.467469+00:00.
