soupmix/cache-redis

此软件包已被弃用且不再维护。作者建议使用 soupmix/cache 软件包。

SimpleCache 接口的框架无关 Redis 适配器。

0.3.2 2017-01-06 19:59 UTC

This package is auto-updated.

Last update: 2021-06-26 21:45:42 UTC


README

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

安装

建议使用 Composer 安装 Soupmix Cache Redis 适配器。

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

连接

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 缓存 API

参见 Soupmix 缓存 API