PHPackages                             nettrine/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. [Database &amp; ORM](/categories/database)
4. /
5. nettrine/cache

Abandoned → [symfony/cache](/?search=symfony%2Fcache)ArchivedLibrary[Database &amp; ORM](/categories/database)

nettrine/cache
==============

Doctrine Cache for Nette Framework

v0.5.0(1y ago)173.8M↓74.8%714MITPHPPHP &gt;=8.2CI failing

Since Nov 26Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/contributte/doctrine-cache)[ Packagist](https://packagist.org/packages/nettrine/cache)[ Docs](https://github.com/contributte/doctrine-cache)[ Fund](https://contributte.org/partners.html)[ GitHub Sponsors](https://github.com/f3l1x)[ RSS](/packages/nettrine-cache/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)Dependencies (7)Versions (8)Used By (14)

[![](https://camo.githubusercontent.com/44524a4bbad9cefb02649a13e0e7a3342e7560e0369f19d050b05ed6c8621cd8/68747470733a2f2f686561746261646765722e6e6f772e73682f6769746875622f726561646d652f636f6e74726962757474652f646f637472696e652d63616368652f3f646570726563617465643d31)](https://camo.githubusercontent.com/44524a4bbad9cefb02649a13e0e7a3342e7560e0369f19d050b05ed6c8621cd8/68747470733a2f2f686561746261646765722e6e6f772e73682f6769746875622f726561646d652f636f6e74726962757474652f646f637472696e652d63616368652f3f646570726563617465643d31)

 [![](https://camo.githubusercontent.com/a8b1cd856d7d396fdebbe46947cc3507490acc267a02361e5e53bb7b820c95c3/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e)](https://bit.ly/ctteg) [![](https://camo.githubusercontent.com/86d6416fc04f8bcc3daa7bf881526b9953b9726b1164d05c157c8713e3a73418/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77)](https://bit.ly/cttfo) [![](https://camo.githubusercontent.com/5d170ab94e6d594609561e16fe0f9e4293968fbd4dfcfafc5e11efc1415ef09c/68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534)](https://contributte.org/partners.html)

 Website 🚀 [contributte.org](https://contributte.org) | Contact 👨🏻‍💻 [f3l1x.io](https://f3l1x.io) | Twitter 🐦 [@contributte](https://twitter.com/contributte)

Disclaimer
----------

[](#disclaimer)

⚠️This project is no longer being maintained. Please use [symfony/cache](https://symfony.com/doc/current/components/cache.html).Composer[`nettrine/cache`](https://packagist.org/packages/nettrine/cache)Version[![](https://camo.githubusercontent.com/ccf229db604d1daef668b428ebb801f022021d276c77d66061dcad52ab32f9c2/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6e65747472696e652f6361636865)](https://camo.githubusercontent.com/ccf229db604d1daef668b428ebb801f022021d276c77d66061dcad52ab32f9c2/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6e65747472696e652f6361636865)PHP[![](https://camo.githubusercontent.com/5400326e06073d9cc01d5e75724fb7c38c601d2b71c31f72c1bffb5f3b567de3/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6e65747472696e652f6361636865)](https://camo.githubusercontent.com/5400326e06073d9cc01d5e75724fb7c38c601d2b71c31f72c1bffb5f3b567de3/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6e65747472696e652f6361636865)License[![](https://camo.githubusercontent.com/9d494e64013050dcd2acac1b8674eaf19b9fa093400ddc880cd36d9ffdc4854f/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f646f637472696e652d6361636865)](https://camo.githubusercontent.com/9d494e64013050dcd2acac1b8674eaf19b9fa093400ddc880cd36d9ffdc4854f/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f646f637472696e652d6361636865)About
-----

[](#about)

Integration of [Doctrine Cache](https://www.doctrine-project.org/projects/cache.html) for Nette Framework.

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

[](#installation)

Install package using composer.

```
composer require nettrine/cache
```

Register prepared [compiler extension](https://doc.nette.org/en/dependency-injection/nette-container) in your `config.neon` file.

```
extensions:
  nettrine.cache: Nettrine\Cache\DI\CacheExtension
```

Configuration
-------------

[](#configuration)

### Minimal configuration

[](#minimal-configuration)

```
nettrine.cache:
  adapter: Symfony\Component\Cache\Adapter\FilesystemAdapter(directory: %tempDir%/cache/nettrine-cache)
```

### Advanced configuration

[](#advanced-configuration)

```
nettrine.cache:
 adapter:
```

Warning

Cache adapter must implement `Psr\Cache\CacheItemPoolInterface` interface. Use any PSR-6 + PSR-16 compatible cache library like `symfony/cache` or `nette/caching`.

In the simplest case, you can define only `adapter`.

```
nettrine.cache:
  # Create cache manually
  adapter: App\CacheService(%tempDir%/cache/orm)

  # Use registered cache service
  adapter: @cacheService
```

Important

You should always use cache for production environment. It can significantly improve performance of your application. Pick the right cache adapter for your needs. For example from symfony/cache:

- `FilesystemAdapter` - if you want to cache data on disk
- `ArrayAdapter` - if you want to cache data in memory
- `ApcuAdapter` - if you want to cache data in memory and share it between requests
- `RedisAdapter` - if you want to cache data in memory and share it between requests and servers
- `ChainAdapter` - if you want to cache data in multiple storages

The extension will automatically guess the best cache adapter for you.

- `FilesystemAdapter` - if you have `tempDir` defined
- `ArrayAdapter` - if you are in CLI mode
- `ApcuAdapter` - if you have `apcu` extension enabled
- **defined** - if you have defined `adapter` in configuration

Usage
-----

[](#usage)

There is no need to use cache directly. It is used by other packages like:

- [DBAL](https://github.com/contributte/doctrine-dbal)
- [ORM](https://github.com/contributte/doctrine-orm)
- [Migrations](https://github.com/contributte/doctrine-migrations)
- [Annotations](https://github.com/contributte/doctrine-annotations)
- [Fixtures](https://github.com/contributte/doctrine-fixtures)

Versions
--------

[](#versions)

StateVersionBranchNettePHPdev`^0.6``master``3.2+``>=8.2`stable`^0.5``master``3.2+``>=8.2`Development
-----------

[](#development)

This package was maintained by these authors.

[ ![](https://avatars2.githubusercontent.com/u/538058?v=3&s=80)](https://github.com/f3l1x)---

Consider to [support](https://contributte.org/partners.html) **contributte** development team. Also thank you for using this package.

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance58

Moderate activity, may be stable

Popularity51

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 70.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 ~374 days

Recently: every ~434 days

Total

6

Last Release

538d ago

PHP version history (4 changes)v0.1.0PHP ^7.2.0

v0.3.0PHP &gt;=7.2

v0.4.0PHP &gt;=8.1

v0.5.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/538058?v=4)[Milan Šulc](/maintainers/f3l1x)[@f3l1x](https://github.com/f3l1x)

---

Top Contributors

[![f3l1x](https://avatars.githubusercontent.com/u/538058?v=4)](https://github.com/f3l1x "f3l1x (34 commits)")[![petrparolek](https://avatars.githubusercontent.com/u/6066243?v=4)](https://github.com/petrparolek "petrparolek (3 commits)")[![Gappa](https://avatars.githubusercontent.com/u/749981?v=4)](https://github.com/Gappa "Gappa (2 commits)")[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (2 commits)")[![vody105](https://avatars.githubusercontent.com/u/22433893?v=4)](https://github.com/vody105 "vody105 (2 commits)")[![RiKap](https://avatars.githubusercontent.com/u/6736715?v=4)](https://github.com/RiKap "RiKap (1 commits)")[![delacry](https://avatars.githubusercontent.com/u/45132928?v=4)](https://github.com/delacry "delacry (1 commits)")[![rixafy](https://avatars.githubusercontent.com/u/45132928?v=4)](https://github.com/rixafy "rixafy (1 commits)")[![solcik](https://avatars.githubusercontent.com/u/1543737?v=4)](https://github.com/solcik "solcik (1 commits)")[![trejjam](https://avatars.githubusercontent.com/u/3594540?v=4)](https://github.com/trejjam "trejjam (1 commits)")

---

Tags

cachedoctrine-cachedoctrine2nette-frameworknettrinephpnettedoctrinecachenettrine

### Embed Badge

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

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

###  Alternatives

[kdyby/doctrine-cache

Doctrine Cache bridge for Nette Framework

111.3M19](/packages/kdyby-doctrine-cache)[nettrine/annotations

Doctrine Annotations for Nette Framework

203.1M8](/packages/nettrine-annotations)[contao-community-alliance/dc-general

Universal data container for Contao

1680.8k91](/packages/contao-community-alliance-dc-general)[cache/psr-6-doctrine-bridge

PSR-6 Doctrine bridge

151.0M4](/packages/cache-psr-6-doctrine-bridge)[kdyby/annotations

Doctrine Annotations integration into Nette Framework

121.3M18](/packages/kdyby-annotations)

PHPackages © 2026

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