Redis-based cache storage implementation for ZzzCache
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Storages
tests
.gitignore
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

zzzredis

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.