Skip to content
Simple cache wrapper build in top of Predis/Redis
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src
tests
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml

README.md

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");
You can’t perform that action at this time.