PHPackages                             itk-dev/drupal\_psr6\_cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. itk-dev/drupal\_psr6\_cache

ActiveDrupal-module[Caching](/categories/caching)

itk-dev/drupal\_psr6\_cache
===========================

PSR-6: Caching Interface for Drupal 8+

1.1.3(10mo ago)020.6k↓50%1PHP

Since Jun 23Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/itk-dev/drupal_psr6_cache)[ Packagist](https://packagist.org/packages/itk-dev/drupal_psr6_cache)[ Docs](https://github.com/itk-dev/drupal_psr6_cache)[ RSS](/packages/itk-dev-drupal-psr6-cache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (6)Used By (1)

PSR-6: Caching Interface for Drupal 8+
======================================

[](#psr-6-caching-interface-for-drupal-8)

Installation
------------

[](#installation)

```
composer require itk-dev/drupal_psr6_cache
vendor/bin/drush pm:enable drupal_psr6_cache
```

or add a composer dependency on `itk-dev/drupal_psr6_cache` (see below for details).

Usage
-----

[](#usage)

Add a dependency on the `drupal_psr6_cache` module to a module:

```
# composer.json
{
    "name": "drupal/my_module",
    …
    "require": {
        "itk-dev/drupal_psr6_cache": "^1.0"
    }
}
```

```
# my_module.info.yml
…
dependencies:
  - drupal:drupal_psr6_cache
```

Inject the cache pool into a service:

```
# my_module.services.yml
my_module.some_service:
  class: Drupal/my_module/SomeService.php
  arguments:
    - '@drupal_psr6_cache.cache_item_pool'
```

Use the cache pool:

```
// src/SomeService.php
namespace Drupal/my_module;

use Psr\Cache\CacheItemPoolInterface;

class SomeService {
  __construct(CacheItemPoolInterface $cacheItemPool) {
    …
  }
}
```

Development
-----------

[](#development)

### Tests

[](#tests)

@todo

### Coding standards

[](#coding-standards)

The code must follow the [Drupal coding standards](https://www.drupal.org/docs/develop/standards).

Check coding standards (run `composer install` to install the required tools):

```
composer coding-standards-check
```

Apply coding standards:

```
composer coding-standards-apply
```

References and inspiration
--------------------------

[](#references-and-inspiration)

[https://git.drupalcode.org/project/drupal\_psr\_cache](https://git.drupalcode.org/project/drupal_psr_cache)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance54

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~368 days

Total

5

Last Release

319d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33924554?v=4)[ITK Development](/maintainers/itk-dev)[@itk-dev](https://github.com/itk-dev)

---

Top Contributors

[![martinyde](https://avatars.githubusercontent.com/u/545272?v=4)](https://github.com/martinyde "martinyde (51 commits)")[![rimi-itk](https://avatars.githubusercontent.com/u/11267554?v=4)](https://github.com/rimi-itk "rimi-itk (4 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/itk-dev-drupal-psr6-cache/health.svg)

```
[![Health](https://phpackages.com/badges/itk-dev-drupal-psr6-cache/health.svg)](https://phpackages.com/packages/itk-dev-drupal-psr6-cache)
```

###  Alternatives

[symfony/cache

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

4.2k348.9M2.5k](/packages/symfony-cache)[symfony/cache-contracts

Generic abstractions related to caching

2.4k308.9M198](/packages/symfony-cache-contracts)[tedivm/stash

The place to keep your cache.

9824.8M124](/packages/tedivm-stash)[league/flysystem-cached-adapter

An adapter decorator to enable meta-data caching.

35426.9M119](/packages/league-flysystem-cached-adapter)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1076.9M130](/packages/laminas-laminas-cache)[cache/adapter-common

Common classes for PSR-6 adapters

11124.4M38](/packages/cache-adapter-common)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
