PHPackages                             openclassrooms/doctrine-cache-extension - 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. openclassrooms/doctrine-cache-extension

ActiveLibrary[Caching](/categories/caching)

openclassrooms/doctrine-cache-extension
=======================================

Library extending doctrine cache capabilities

v1.0.0(1y ago)0392.6k↓50%1[1 PRs](https://github.com/OpenClassrooms/DoctrineCacheExtension/pulls)2MITPHPPHP &gt;=5.6

Since Aug 6Pushed 1y ago23 watchersCompare

[ Source](https://github.com/OpenClassrooms/DoctrineCacheExtension)[ Packagist](https://packagist.org/packages/openclassrooms/doctrine-cache-extension)[ RSS](/packages/openclassrooms-doctrine-cache-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (2)

Doctrine Cache Extension
========================

[](#doctrine-cache-extension)

[![Build Status](https://camo.githubusercontent.com/346f0c5c52f15ae471c63e32d22e07ab538463085e4d4ea55247de7773faa3cf/68747470733a2f2f7472617669732d63692e6f72672f4f70656e436c617373726f6f6d732f446f637472696e654361636865457874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/OpenClassrooms/DoctrineCacheExtension)[![SensioLabsInsight](https://camo.githubusercontent.com/47137102cec82bec0b62820bc2aebea940b2dcb500d29f697e64ae3893f641d3/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64353935373235642d396532332d343338362d623062612d3434346531613131386636302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/d595725d-9e23-4386-b0ba-444e1a118f60)[![Coverage Status](https://camo.githubusercontent.com/751d40faf6a456c293d8d7de66bf386344ac2b1af32b4ea86c93284a3bb298c3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4f70656e436c617373726f6f6d732f446f637472696e654361636865457874656e73696f6e2f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/OpenClassrooms/DoctrineCacheExtension?branch=master)

The Doctrine Cache extension adds the following features to Doctrine Cache implementation:

- Default lifetime
- Fetch with a namespace
- Save with a namespace
- Cache invalidation through namespace strategy

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

[](#installation)

The easiest way to install DoctrineCacheExtension is via [composer](http://getcomposer.org/).

Create the following `composer.json` file and run the `php composer.phar install` command to install it.

```
{
    "require": {
        "openclassrooms/doctrine-cache-extension": "*"
    }
}
```

```
