cache/chain-adapter
A PSR-6 cache implementation using chain. This implementation supports tags
Maintainers
1.2.0
2022-01-15 15:47 UTC
Requires
- php: >=7.4
- cache/adapter-common: ^1.0
- cache/tag-interop: ^1.0
- psr/cache: ^1.0 || ^2.0
- psr/log: ^1.0 || ^2.0 || ^3.0
Requires (Dev)
- cache/array-adapter: ^1.0
- cache/filesystem-adapter: ^1.0
- cache/integration-tests: ^0.17
- phpunit/phpunit: ^7.5.20 || ^9.5.10
Suggests
None
Provides
- psr/cache-implementation: ^1.0
Conflicts
None
Replaces
None
MIT d487556cacfdc14f83eb03607bcd4ac69d5a4b7b
- Aaron Scherer <aequasi.woop@gmail.com>
- Tobias Nyholm <tobias.nyholm.woop@gmail.com>
README
👁 Gitter
👁 Latest Stable Version
👁 codecov.io
👁 Total Downloads
👁 Monthly Downloads
👁 Software License
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 features like tagging and hierarchy support please read the shared documentation at www.php-cache.com.
Install
composer require cache/chain-adapter
Use
You do not need to do any configuration to use the CachePoolChain.
$redisPool = new RedisCachePool($redisClient); $apcPool = new ApcCachePool(); $pool = new CachePoolChain([$apcPool, $redisPool]);
Contribute
Contributions are very welcome! Send a pull request to the main repository or report any issues you find on the issue tracker.
