arabcoders / cache
This package is abandoned and no longer maintained.
The author suggests using the symfony/cache package instead.
A Base Cache handler that abstract away all the drivers/adapters differences
v1.0.2
2016-06-26 05:04 UTC
This package is auto-updated.
Last update: 2022-02-01 12:59:21 UTC
README
A Base Cache handler that abstract away all the drivers/adapters differences under common Interface, it can be have many drivers.
Install
Via Composer
$ composer require arabcoders/cache
Usage Example.
<?php require __DIR__ . '/../../autoload.php'; $adapter = new \arabcoders\cache\Adapters\Redis( [ 'port' => 6379, 'server' => '127.0.0.1' ]); $cache = new \arabcoders\cache\Cache( $adapter ); $cache->set( 'test', 'foo', 120 ); echo $cache->get('test')->getValue();