edsi-tech / redis-guzzle-cache
Installs: 68
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.0
- doctrine/cache: ~1.3
- edsi-tech/redis-safe-client: ~0.1
- symfony/symfony: 2.*
This package is not auto-updated.
Last update: 2024-10-26 17:04:34 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_')) ]);