Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 494 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 494 Bytes

PHP Redis cache wrapper

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