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

ActiveLibrary[Caching](/categories/caching)

neos/cache
==========

Neos Cache Framework

9.1.1(7mo ago)102.1M—5.6%320MITPHPPHP ^8.2CI failing

Since Jan 9Pushed 4d ago2 watchersCompare

[ Source](https://github.com/neos/cache)[ Packagist](https://packagist.org/packages/neos/cache)[ Docs](http://flow.neos.io)[ Fund](https://shop.neos.io/neosfunding/)[ RSS](/packages/neos-cache/feed)WikiDiscussions 8.3 Synced 1w ago

READMEChangelogDependencies (16)Versions (435)Used By (20)

Neos Cache Framework
====================

[](#neos-cache-framework)

This is a generic cache package for use in projects. It implements [PSR-6](https://github.com/php-fig/cache) and [PSR-16](https://github.com/php-fig/simple-cache) but also brings own interfaces used in Flow and Neos which support additional featuers.

#### Note

[](#note)

This repository is a **read-only subsplit** of a package that is part of the Flow framework (learn more on `http://flow.neos.io `\_).

All pull requests and issues should be opened in the [main repository](https://github.com/neos/flow-development-collection).

The package is usable without the Flow framework, but if you want to use it, please have a look at the `Flow documentation `\_

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

[](#installation)

Install latest version via composer:

`composer require neos/cache`

Basic usage
-----------

[](#basic-usage)

```
$environmentConfiguration = new \Neos\Cache\EnvironmentConfiguration('appIdentifier', __DIR__);

// This cache factory can be used for PSR-6 caches
// and for the Neos CacheInterface
$cacheFactory = new \Neos\Cache\Psr\Cache\CacheFactory(
    $environmentConfiguration
);

// Create a PSR-6 compatible cache
$cachePool = $cacheFactory->create(
    'myCache',
    \Neos\Cache\Backend\SimpleFileBackend::class
);

// Create a PSR-16 compatible cache
$simpleCacheFactory = new \Neos\Cache\Psr\SimpleCache\SimpleCacheFactory(
    $environmentConfiguration
);

$simpleCache = $simpleCacheFactory->create(
    'myCache',
    \Neos\Cache\Backend\SimpleFileBackend::class
);

```

The first argument given to either factory is a unique identifier for the specific cache instance. If you need different caches you should give them separate identifiers.

Documentation
-------------

[](#documentation)

Both the PSR-6 CachePool and the PSR-16 SimpleCache are separate implementations with their respective factories, but both use the existing [backends](https://flowframework.readthedocs.io/en/stable/TheDefinitiveGuide/PartIII/Caching.html#cache-backends)that can also be used with the `\Neos\Cache\Frontend\FrontendInterface` implementations, which are slightly different than the PSR caches but also implement additional features like tagging.

#### Note

[](#note-1)

Both PSR implementations are not integrated in Flow yet, so when you use them within a Flow installation it's your responsibility to flush them correctly as `./flow flow:cache:flush` will not do that in this case.

Contribute
----------

[](#contribute)

If you want to contribute to this package or the Flow framework, please have a look at  - it is the repository used for development and all pull requests should go into it.

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance83

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community36

Small or concentrated contributor base

Maturity95

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~8 days

Recently: every ~34 days

Total

435

Last Release

89d ago

Major Versions

8.3.6 → 9.0.0-beta32023-11-22

8.1.12 → 9.0.0-beta42024-03-05

8.3.12 → 9.0.0-beta172024-12-16

8.3.16 → 9.0.0-beta192025-01-28

8.4.1 → 9.0.52025-10-27

PHP version history (7 changes)4.0.2PHP &gt;=5.5.0

4.0.3PHP ~7.0

5.0.0PHP ~7.1

6.0.0PHP ^7.2

7.0.1PHP ^7.3 || ^8.0

8.0.1PHP ^8.0

9.0.0-beta1PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11575267?v=4)[Neos](/maintainers/neos)[@neos](https://github.com/neos)

---

Top Contributors

[![kdambekalns](https://avatars.githubusercontent.com/u/95873?v=4)](https://github.com/kdambekalns "kdambekalns (218 commits)")[![kitsunet](https://avatars.githubusercontent.com/u/324408?v=4)](https://github.com/kitsunet "kitsunet (77 commits)")[![albe](https://avatars.githubusercontent.com/u/4259532?v=4)](https://github.com/albe "albe (70 commits)")[![daniellienert](https://avatars.githubusercontent.com/u/642226?v=4)](https://github.com/daniellienert "daniellienert (34 commits)")[![Sebobo](https://avatars.githubusercontent.com/u/596967?v=4)](https://github.com/Sebobo "Sebobo (24 commits)")[![bwaidelich](https://avatars.githubusercontent.com/u/307571?v=4)](https://github.com/bwaidelich "bwaidelich (18 commits)")[![mficzel](https://avatars.githubusercontent.com/u/1309380?v=4)](https://github.com/mficzel "mficzel (18 commits)")[![robertlemke](https://avatars.githubusercontent.com/u/95582?v=4)](https://github.com/robertlemke "robertlemke (17 commits)")[![mhsdesign](https://avatars.githubusercontent.com/u/85400359?v=4)](https://github.com/mhsdesign "mhsdesign (14 commits)")[![markusguenther](https://avatars.githubusercontent.com/u/1014126?v=4)](https://github.com/markusguenther "markusguenther (9 commits)")[![johannessteu](https://avatars.githubusercontent.com/u/769789?v=4)](https://github.com/johannessteu "johannessteu (9 commits)")[![dfeyer](https://avatars.githubusercontent.com/u/221173?v=4)](https://github.com/dfeyer "dfeyer (8 commits)")[![gerhard-boden](https://avatars.githubusercontent.com/u/10533739?v=4)](https://github.com/gerhard-boden "gerhard-boden (6 commits)")[![dlubitz](https://avatars.githubusercontent.com/u/13046100?v=4)](https://github.com/dlubitz "dlubitz (6 commits)")[![paxuclus](https://avatars.githubusercontent.com/u/15905038?v=4)](https://github.com/paxuclus "paxuclus (6 commits)")[![christianharrington](https://avatars.githubusercontent.com/u/251914?v=4)](https://github.com/christianharrington "christianharrington (2 commits)")[![mstruebing](https://avatars.githubusercontent.com/u/12071529?v=4)](https://github.com/mstruebing "mstruebing (2 commits)")[![skurfuerst](https://avatars.githubusercontent.com/u/190777?v=4)](https://github.com/skurfuerst "skurfuerst (2 commits)")[![theilm](https://avatars.githubusercontent.com/u/1016315?v=4)](https://github.com/theilm "theilm (1 commits)")[![dogawaf](https://avatars.githubusercontent.com/u/381969?v=4)](https://github.com/dogawaf "dogawaf (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/cache

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

4.2k365.0M3.1k](/packages/symfony-cache)[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k11](/packages/tempest-framework)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M506](/packages/shopware-core)[neos/flow

Flow Application Framework

842.1M486](/packages/neos-flow)

PHPackages © 2026

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