File tree Expand file tree Collapse file tree 1 file changed +29
-3
lines changed
Expand file tree Collapse file tree 1 file changed +29
-3
lines changed Original file line number Diff line number Diff line change 1- # Chain PSR-6 adapter
2- [ ![ Build Status] ( https://travis-ci.org/php-cache/chain-adapter.svg?branch=master )] ( https://travis-ci.org/php-cache/chain-adapter ) [ ![ codecov.io] ( https://codecov.io/github/php-cache/chain-adapter/coverage.svg?branch=master )] ( https://codecov.io/github/php-cache/chain-adapter?branch=master )
1+ # PSR-6 Cache pool chain
2+ [ ![ Gitter] ( https://badges.gitter.im/php-cache/cache.svg )] ( https://gitter.im/php-cache/cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge )
3+ [ ![ Latest Stable Version] ( https://poser.pugx.org/cache/chain-adapter/v/stable )] ( https://packagist.org/packages/cache/chain-adapter )
4+ [ ![ Total Downloads] ( https://poser.pugx.org/cache/chain-adapter/downloads )] ( https://packagist.org/packages/cache/chain-adapter )
5+ [ ![ Monthly Downloads] ( https://poser.pugx.org/cache/chain-adapter/d/monthly.png )] ( https://packagist.org/packages/cache/chain-adapter )
6+ [ ![ Software License] ( https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square )] ( LICENSE )
37
4- This is a chain adapter to let you chain multiple adapters.
8+ This is a PSR-6 cache implementation using a chain of other PSR-6 cache pools. It is a part of the PHP Cache organisation. To read about
9+ features like tagging and hierarchy support please read the shared documentation at [ www.php-cache.com ] ( http://www.php-cache.com ) .
10+
11+ ### Install
12+
13+ ``` bash
14+ composer require cache/chain-adapter
15+ ```
16+
17+ ### Use
18+
19+ You do not need to do any configuration to use the ` CachePoolChain ` .
20+
21+ ``` php
22+ $redisPool = new RedisCachePool($redisClient);
23+ $apcPool = new ApcCachePool();
24+ $pool = new CachePoolChain([$apcPool, $redisPool]);
25+ ```
26+
27+ ### Contribute
28+
29+ Contributions are very welcome! Send a pull request to the [ main repository] ( https://github.com/php-cache/cache ) or
30+ report any issues you find on the [ issue tracker] ( http://issues.php-cache.com ) .
You can’t perform that action at this time.
0 commit comments