dev-master
9999999-dev http://github.com/digitalcreations/cache-phpredisRedis PHP extension implementation for dc/cache
MIT
The Requires
- ext-redis *
- dc/cache dev-master
The Development Requires
cache redis phpredis
Wallogit.com
2017 © Pedro Peláez
Redis PHP extension implementation for dc/cache
, (*1)
$ composer require dc/cache-phpredis
Or add it to composer.json:, (*2)
"require": {
"dc/cache-phpredis": "0.*",
}
$ composer install
Provide either a \Redis connection or a hostname and port., (*3)
$cache = new \DC\Cache\Implementations\Redis\Cache('127.0.0.1', 6379);
// or
$redis = new \Redis();
$redis->connect('127.0.0.1');
$cache = new \DC\Cache\Implementations\Redis\Cache($redis);
Otherwise, use it according to the interface., (*4)
Redis PHP extension implementation for dc/cache
MIT
cache redis phpredis