webclient / cache-adapter-psr-simple-cache
Interface for caching
Fund package maintenance!
www.paypal.me/ddrv
Patreon
Requires
- php: ^8.0
- psr/simple-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-16 implementation
Provides
README
webclient/cache-adapter-psr-simple-cache
psr/simple-cache adapter for webclient/cache-contract
Install
Install this package and your favorite psr-16 implementation.
Install this package
composer require webclient/cache-adapter-psr-simple-cache:^3.0
Usage
<?php /** @var \Psr\SimpleCache\CacheInterface $psrSimpleCache */ $psrCacheAdapter = new \Webclient\Cache\Adapter\PsrSimpleCache\PsrSimpleCacheAdapter($psrSimpleCache);