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

ActiveLibrary[Caching](/categories/caching)

linio/cache
===========

Provides a multi-layered caching abstraction

v5.1.1(2y ago)729.6k7[1 issues](https://github.com/LinioIT/cache/issues)BSD-3-ClausePHPPHP ^8.1

Since Mar 16Pushed 2y ago49 watchersCompare

[ Source](https://github.com/LinioIT/cache)[ Packagist](https://packagist.org/packages/linio/cache)[ RSS](/packages/linio-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (52)Used By (0)

Linio Cache
===========

[](#linio-cache)

[![Latest Stable Version](https://camo.githubusercontent.com/7c82b3813ffbc0cdcfef4d9df02060ee948fc4a671f4a3ce11892a5735cbd668/68747470733a2f2f706f7365722e707567782e6f72672f6c696e696f2f63616368652f762f737461626c652e737667)](https://packagist.org/packages/linio/cache) [![License](https://camo.githubusercontent.com/383b524272b0e917b7bb8df1587b1ffe288561c8cd62cc5aa0dd0d148da92ad0/68747470733a2f2f706f7365722e707567782e6f72672f6c696e696f2f63616368652f6c6963656e73652e737667)](https://packagist.org/packages/linio/cache) [![Build Status](https://camo.githubusercontent.com/1d1b4f23c3e26fea2d467dec0f0b742a87c198061672f03a4bf4be4b7051e467/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4c696e696f49542f63616368652e706e67)](http://travis-ci.org/LinioIT/cache) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/3fec3ac7d95a1f6cc22a2662797263393c953c9c311f37ad8cb986355211ef96/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c696e696f49542f63616368652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/LinioIT/cache/?branch=master)

Linio Cache is yet another component of the Linio Framework. It aims to abstract caching by supporting multiple adapters.

Install
-------

[](#install)

The recommended way to install Linio Cache is [through composer](http://getcomposer.org).

```
{
    "require": {
        "linio/cache": "dev-master"
    }
}
```

Tests
-----

[](#tests)

To run the test suite, you need install the dependencies via composer, then run PHPUnit.

```
$ composer install
$ phpunit

```

Cache Not Found Keys
--------------------

[](#cache-not-found-keys)

It is now possible (v.1.0.9) to cache not found keys in upper level adapters of the adapter stack. The configuration option `cache_not_found_keys` can be set at the adapter level.

Note that this option, obviously, does not apply to the last level of the cache hierarchy.

Usage
-----

[](#usage)

```
