juhara/zzzredis

Redis storage implementation for ZzzCache

v1.0.6 2018-07-11 01:35 UTC

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.