A scorekeeper decorator that forwards the calls to a cache calls.
A scorekeeper decorator that forwards the calls to a cache calls.
The installation of this library is made via composer.
Download composer.phar
from their website.
Then add to your composer.json :
"require": {
...
"php-extended/php-scorekeeper-cache": "^2"
...
}
Then run php composer.phar update
to install this library.
The autoloading of all classes of this library is made through composer's autoloader.
This library may be used the following way as a decorator :
use PhpExtended\Scorekeeper\ScorekeeperCache;
/* @var $cache \Psr\Cache\CacheItemPoolInterface */
$scorekeeper = new ScorekeeperCache($cache);
MIT (See license file).