gonzalo123/redisphpwrapper

dev-master 2017-10-06 21:24 UTC

This package is not auto-updated.

Last update: 2024-12-19 07:01:41 UTC


README

Build Status

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");