edsi-tech/redis-guzzle-cache

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

Installs: 67

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Type:symfony-bundle

0.3 2015-04-07 07:38 UTC

This package is not auto-updated.

Last update: 2020-08-07 19:57:58 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_'))
]);