juhara / zzzredis
Redis storage implementation for ZzzCache
v1.0.6
2018-07-11 01:35 UTC
Requires
- php: >=5.4
- juhara/zzzcache: ^1.0
- predis/predis: ^1.1
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is not auto-updated.
Last update: 2024-11-09 08:45:24 UTC
README
Redis-based cache storage implementation for ZzzCache
Requirement
Installation
Run through composer
$ composer require juhara/zzzredis
How to use
<?php
$redisClient = new \Predis\Client();
$redisCache = new \Juhara\ZzzCache\Storages\Redis($redisClient);
$cache = new \Juhara\ZzzCache\Cache(
$redisCache,
new \Juhara\ZzzCache\Helpers\ExpiryCalculator()
);
Contributing
If you have any improvement or issues please submit PR.
Thank you.