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

ActiveLibrary[Caching](/categories/caching)

openclassrooms/cache
====================

Cache library that extends Doctrine\\Cache capabilities

v1.1.1(1y ago)0396.4k12MITPHPPHP &gt;=8.2

Since Jul 29Pushed 1y ago24 watchersCompare

[ Source](https://github.com/OpenClassrooms/Cache)[ Packagist](https://packagist.org/packages/openclassrooms/cache)[ RSS](/packages/openclassrooms-cache/feed)WikiDiscussions master Synced 3d ago

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

Cache
=====

[](#cache)

[![Build Status](https://camo.githubusercontent.com/0986f86aef8de996f65b8f638a922718af760002eaf5fa7109096a4eddaa6e1c/68747470733a2f2f7472617669732d63692e6f72672f4f70656e436c617373726f6f6d732f43616368652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/OpenClassrooms/Cache)[![SensioLabsInsight](https://camo.githubusercontent.com/58f554a92b4cc5eb737e9710341d601100d5eb82982c3f9478ff052a7485b458/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63623732353538352d623433332d346132312d393661612d3330613031343865636439662f6d696e692e706e67)](https://insight.sensiolabs.com/projects/cb725585-b433-4a21-96aa-30a0148ecd9f)[![Coverage Status](https://camo.githubusercontent.com/69fca50fb9c166bd85f9ba9d02994fa121aafcdd356020c016b65bacfa3ae6b6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4f70656e436c617373726f6f6d732f43616368652f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/OpenClassrooms/Cache?branch=master)

Cache adds features to Doctrine Cache implementation

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

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

[](#installation)

The easiest way to install Cache 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/cache": "*"
    }
}
```

```
