PHPackages                             cache/namespaced-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. cache/namespaced-cache

ActiveLibrary[Caching](/categories/caching)

cache/namespaced-cache
======================

A decorator that makes your cache support namespaces

1.2.0(4y ago)141.3M↓14.1%3MITPHPPHP &gt;=7.4

Since Feb 28Pushed 4y ago3 watchersCompare

[ Source](https://github.com/php-cache/namespaced-cache)[ Packagist](https://packagist.org/packages/cache/namespaced-cache)[ Docs](http://www.php-cache.com/en/latest/)[ RSS](/packages/cache-namespaced-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (4)Versions (8)Used By (3)

Namespaced PSR-6 cache pool
===========================

[](#namespaced-psr-6-cache-pool)

[![Gitter](https://camo.githubusercontent.com/2ded3ed1778dcfc9af5e2dfaad55e176ade49082cb6ea757169cc5ea23bf32ac/68747470733a2f2f6261646765732e6769747465722e696d2f7068702d63616368652f63616368652e737667)](https://gitter.im/php-cache/cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)[![Latest Stable Version](https://camo.githubusercontent.com/1a2064e4ef3c4f45a6f5a62e7719c5bcfff43a7f4b42a2bf9e87b6676a930fa2/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f6e616d657370616365642d63616368652f762f737461626c65)](https://packagist.org/packages/cache/namespaced-cache)[![codecov.io](https://camo.githubusercontent.com/94bb2daa7439495214d5b009bdeb1690cab3ac583743351135526b5fa5fe11cb/68747470733a2f2f636f6465636f762e696f2f6769746875622f7068702d63616368652f6e616d657370616365642d63616368652f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/php-cache/namespaced-cache?branch=master)[![Total Downloads](https://camo.githubusercontent.com/d0cce60f39323113f869ebd72c6a49fcaaf063f1e1e694bf2138719950aece34/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f6e616d657370616365642d63616368652f646f776e6c6f616473)](https://packagist.org/packages/cache/namespaced-cache)[![Monthly Downloads](https://camo.githubusercontent.com/5988edd033dc90a9ca4e6d2b18ba3eb60f5abceb99cf56e670a1380ee90c0a8e/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f6e616d657370616365642d63616368652f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/cache/namespaced-cache)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

This is a decorator for a PSR-6 hierarchical cache. It will allow you to use namespaces.

It is a part of the PHP Cache organisation. To read about features like tagging and hierarchy support please read the shared documentation at [www.php-cache.com](http://www.php-cache.com).

### Install

[](#install)

```
composer require cache/namespaced-cache
```

### Use

[](#use)

```
$hierarchyPool = new RedisCachePool($client);
$namespacedPool = new NamespacedCachePool($hierarchyPool, 'acme');
```

### Contribute

[](#contribute)

Contributions are very welcome! Send a pull request to the [main repository](https://github.com/php-cache/cache) or report any issues you find on the [issue tracker](http://issues.php-cache.com).

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 69.8% 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 ~357 days

Recently: every ~442 days

Total

7

Last Release

1584d ago

Major Versions

0.1.3 → 1.0.02017-07-16

PHP version history (5 changes)0.1.0PHP ^5.5|^7.0

0.1.1PHP ^5.5 || ^7.0

0.1.2PHP ^5.6 || ^7.0

1.1.0PHP ^5.6 || ^7.0 || ^8.0

1.2.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (30 commits)")[![prisis](https://avatars.githubusercontent.com/u/2716058?v=4)](https://github.com/prisis "prisis (5 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (4 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (1 commits)")[![gsouf](https://avatars.githubusercontent.com/u/3215399?v=4)](https://github.com/gsouf "gsouf (1 commits)")[![florianv](https://avatars.githubusercontent.com/u/1586668?v=4)](https://github.com/florianv "florianv (1 commits)")[![GodsBoss](https://avatars.githubusercontent.com/u/206149?v=4)](https://github.com/GodsBoss "GodsBoss (1 commits)")

---

Tags

cachepsr-6namespace

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cache-namespaced-cache/health.svg)

```
[![Health](https://phpackages.com/badges/cache-namespaced-cache/health.svg)](https://phpackages.com/packages/cache-namespaced-cache)
```

###  Alternatives

[tedivm/stash

The place to keep your cache.

9824.8M124](/packages/tedivm-stash)[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)[cache/array-adapter

A PSR-6 cache implementation using a php array. This implementation supports tags

548.3M151](/packages/cache-array-adapter)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)[cache/hierarchical-cache

A helper trait and interface to your PSR-6 cache to support hierarchical keys.

6016.1M11](/packages/cache-hierarchical-cache)

PHPackages © 2026

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