edsi-tech/redis-guzzle-cache

There is no license information available for the latest version (0.3) of this package.

0.3 2015-04-07 07:38 UTC

This package is not auto-updated.

Last update: 2024-11-09 17:09:09 UTC


README

A simple redis cache for Guzzle.
Use with https://github.com/guzzle/cache-subscriber

Add the following to your composer.json:

{
    "require": {
        "edsi-tech/redis-guzzle-cache": "~0.2"
    }
}

And use like that:

$client = new GuzzleHttp\Client();
CacheSubscriber::attach($client, [
    'storage' => new CacheStorage(new RedisGuzzleCache($redis, 'guzzle_cache_'))
]);