soupmix/cache-redis

Framework agnostic Redis adapter for SimpleCache Interface.

0.3.2 2017-01-06 19:59 UTC

README

Build Status Scrutinizer Code Quality Codacy Badge Code Climate Latest Stable Version Total Downloads Latest Unstable Version License composer.lock Code Coverage

Installation

It's recommended that you use Composer to install Soupmix Cache Redis Adaptor.

$ composer require soupmix/cache-redis "~0.3"

Connection

require_once '/path/to/composer/vendor/autoload.php';

$rConfig = ['host'=> "127.0.0.1"];
$handler = new Redis();
$handler->connect(
    $rConfig['host']
);

$cache = new Soupmix\Cache\RedisCache($handler);

Soupmix Redis Cache API

See Soupmix Cache API