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

ActiveLibrary[Database &amp; ORM](/categories/database)

comporu/cache
=============

Provides an cache interface for several adapters Apc, Apcu, File, Mongo, Memcache, Memcached, Mysql, Mongo, Redis is supported. New adapters is comming!

5.3(10y ago)0141MITPHPPHP &gt;=5.3.0

Since Oct 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/comporu/Cache)[ Packagist](https://packagist.org/packages/comporu/cache)[ Docs](https://github.com/desarrolla2/Cache/blob/master/README.md)[ RSS](/packages/comporu-cache/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (20)Used By (0)

Cache [![SensioLabsInsight](https://camo.githubusercontent.com/b4f2093fb078fd6b5fdfcfd10c9959a26ec6da5ea6dc89bde848e592ec819218/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35663133393236312d316163312d343535392d383436612d3732336530393331396138382f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/5f139261-1ac1-4559-846a-723e09319a88)
============================================================================================================================================================================================================================================================================================================================================================================================

[](#cache-)

A simple cache library. Implements different adapters that you can use and change easily by a manager or similar.

[![Latest version](https://camo.githubusercontent.com/56f6af2ded9c3521126089c89625f8259ea040b9225f599401c3048d13ddab51/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465736172726f6c6c61322f43616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/desarrolla2/cache)[![Latest version](https://camo.githubusercontent.com/35d906f8304d0f243646bf942ff0eb02cec99d9a53d42258b0a4f777b33ad659/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f6465736172726f6c6c61322f43616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/desarrolla2/cache)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://hassankhan.mit-license.org)[![Build Status](https://camo.githubusercontent.com/6684fce6725f7ae41afc84242c69ab8c4af79f6aa0bd03720b3e65af6786299e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6465736172726f6c6c61322f43616368652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/desarrolla2/Cache)[![Coverage Status](https://camo.githubusercontent.com/95dda24a841f55332858d09409f0e01ef8443a756ef176b4f5408c23065a592c/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6465736172726f6c6c61322f43616368652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/desarrolla2/Cache)[![Quality Score](https://camo.githubusercontent.com/a18185a2f68d3af33e93a0b2eac5cafeb11302700303d08e6cd02a31295677b6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6465736172726f6c6c61322f63616368652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/desarrolla2/cache)[![Sensiolabs Insight](https://camo.githubusercontent.com/106be9868e3d3817377cc843cdb933c6990a5a681ba17033dc73f7c304d9c640/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f35663133393236312d316163312d343535392d383436612d3732336530393331396138382e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/5f139261-1ac1-4559-846a-723e09319a88)[![Total Downloads](https://camo.githubusercontent.com/366fe80fa54ce7955b86df9d13f2eea00ccde458bc50b9cce908a4978786c56c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465736172726f6c6c61322f63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/desarrolla2/cache)[![Today Downloads](https://camo.githubusercontent.com/52ebc47bff2ff93093171577a7010ae55bf698246b2f4c1ab85d6410c4b4e9fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f6465736172726f6c6c61322f63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/desarrolla2/cache)[![Gitter](https://camo.githubusercontent.com/82b37b704e2e79c5d50f45f6cf0aab5873f32ffcca6c38864d72b1a66c2ba48c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4749545445522d4a4f494e253230434841542532302545322538362539322d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://gitter.im/desarrolla2/Cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

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

[](#installation)

### With Composer

[](#with-composer)

It is best installed it through [packagist](http://packagist.org/packages/desarrolla2/cache)by including `desarrolla2/cache` in your project composer.json require:

```
    "require": {
        // ...
        "desarrolla2/cache":  "~2.0"
    }
```

### Without Composer

[](#without-composer)

You can also download it from \[Github\] (), but no autoloader is provided so you'll need to register it with your own PSR-0 compatible autoloader.

Usage
-----

[](#usage)

```
