gonzalo123 / redisphpwrapper
redis Wrapper
dev-master
2017-10-06 21:24 UTC
Requires
- predis/predis: ^1.1
This package is not auto-updated.
Last update: 2024-11-07 06:31:16 UTC
README
Simple cache wrapper build in top of Predis/Redis
usage:
use G\Redis\Cache; use Predis\Client; $cache = new Cache(new Client(json_decode(file_get_contents(__DIR__ . '/conf.json'), true))); $value = $cache->get("aaa.aaa.aaa", function () { return [ 'a' => 1, ]; }); $cache->delete("aaa.aaa.aaa");