webclient / cache-adapter-psr-cache
Interface for caching
Fund package maintenance!
www.paypal.me/ddrv
Patreon
Requires
- php: ^8.0
- psr/cache: ^3.0
- webclient/cache-contract: ^1.0
Requires (Dev)
- phpunit/phpunit: ^6.5 || ^7.5 || ^8.5 || ^9.5
- squizlabs/php_codesniffer: ^3.7
Suggests
- psr/simple-cache-implementation: Choice your favorite psr-6 implementation
Provides
README
webclient/cache-adapter-psr-cache
psr/cache adapter for webclient/cache-contract
Install
Install this package and your favorite psr-6 implementation.
Install this package
composer require webclient/cache-adapter-psr-cache:^3.0
Usage
<?php /** @var \Psr\Cache\CacheItemPoolInterface $psrCache */ $psrCacheAdapter = new \Webclient\Cache\Adapter\PsrCache\PsrCacheAdapter($psrCache);