PHPackages                             cache/doctrine-adapter-bundle - 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/doctrine-adapter-bundle

Abandoned → [cache/adapter-bundle](/?search=cache%2Fadapter-bundle)Library[Caching](/categories/caching)

cache/doctrine-adapter-bundle
=============================

A bundle that registers Doctrine cache implementations as Symfony services supporting PSR-6 and tagging

0.2.0(10y ago)03.3k1MITPHPPHP ^5.5|^7

Since Dec 12Pushed 10y ago2 watchersCompare

[ Source](https://github.com/php-cache/doctrine-adapter-bundle)[ Packagist](https://packagist.org/packages/cache/doctrine-adapter-bundle)[ Docs](https://github.com/php-cache/doctrine-cache-bundle)[ RSS](/packages/cache-doctrine-adapter-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (4)Versions (5)Used By (0)

This bundle is deprecated in favor for [AdapterBundle](https://github.com/php-cache/adapter-bundle).
====================================================================================================

[](#this-bundle-is-deprecated-in-favor-for-adapterbundle)

Doctrine Adapter Bundle
-----------------------

[](#doctrine-adapter-bundle)

[![Build Status](https://camo.githubusercontent.com/87cd4340c4036594f94c456fb09d06d4b38a95ee3620f6736dd3340e79dea9b9/68747470733a2f2f7472617669732d63692e6f72672f7068702d63616368652f646f637472696e652d616461707465722d62756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/php-cache/doctrine-adapter-bundle) [![SensioLabsInsight](https://camo.githubusercontent.com/fe53037d4eec076894fbd50a62f775effe965cf65455899499cf0a4e3b74f49d/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35623461306532352d386238312d343462312d386339392d3264326433383739333965312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/5b4a0e25-8b81-44b1-8c99-2d2d387939e1)

This bundle helps you configurate and register PSR-6 cache services. The bundle uses Doctrine as cache implementation with help from [DoctrineAdapter](https://github.com/php-cache/doctrine-adapter) to make it PSR-6 complient.

### To Install

[](#to-install)

Run the following in your project root, assuming you have composer set up for your project

```
composer require cache/doctrine-adapter-bundle
```

Add the bundle to app/AppKernel.php

```
$bundles(
    // ...
    new Cache\Adapter\DoctrineAdapterBundle\DoctrineAdapterBundle(),
    // ...
);
```

### Configuration

[](#configuration)

```
cache_adapter_doctrine:
  providers:
    acme_memcached:
      type: memcached
      persistent: true # Boolean or persistent_id
      namespace: mc
      hosts:
        - { host: localhost, port: 11211 }
    acme_redis:
      type: redis
      hosts:
        main:
          host: 127.0.0.1
          port: 6379
    acme_file_system_cache:
      type: file_system
      extension: '.fsc'
      directory: '%kernel.root_dir%/var/storage/fs_cache/'
    acme_php_file_cache:
      type: php_file
      extension: '.cache'
      directory: '%kernel.root_dir%/var/storage/'
    acme_array_cache:
      type: array
    acme_apc_cache:
      type: apc
      namespace: my_ns
```

### Usage

[](#usage)

When using a configuration like below, you will get a service with the id `cache.provider.acme_apc_cache`.

```
cache_adapter_doctrine:
  providers:
    acme_apc_cache:
      type: apc
      namespace: my_ns
```

Use the new service as any PSR-6 cache.

```
/** @var CacheItemPoolInterface $cache */
$cache = $this->container->get('cache.provider.acme_apc_cache');
// Or
$cache = $this->container->get('cache'); // This is either the `default` provider, or the first provider in the config

/** @var CacheItemInterface $item */
$item = $cache->getItem('cache-key');
$item->set('foobar');
$item->expiresAfter(3600);
$cache->save($item);
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

Total

4

Last Release

3832d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/9cf67675d97e63f6ff9e7fed55f35502b24cd834081806a6731229117c0630bb?d=identicon)[aequasi](/maintainers/aequasi)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (40 commits)")[![cryptiklemur](https://avatars.githubusercontent.com/u/896295?v=4)](https://github.com/cryptiklemur "cryptiklemur (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cache-doctrine-adapter-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M379](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[shopware/storefront

Storefront for Shopware

684.6M217](/packages/shopware-storefront)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

66529.9k10](/packages/web-auth-webauthn-symfony-bundle)[symfony-bundles/redis-bundle

Symfony Redis Bundle

271.2M6](/packages/symfony-bundles-redis-bundle)[rikudou/psr6-dynamo-db-bundle

PSR-6 and PSR-16 cache implementation using AWS DynamoDB for Symfony

2081.0k](/packages/rikudou-psr6-dynamo-db-bundle)

PHPackages © 2026

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