dc/cache-phpredis

Redis PHP extension implementation for dc/cache

Maintainers

Package info

github.com/digitalcreations/cache-phpredis

Homepage

Issues

pkg:composer/dc/cache-phpredis

Statistics

Installs: 16

Dependents: 0

Suggesters: 0

Stars: 1

dev-master 2016-12-14 09:09 UTC

This package is not auto-updated.

Last update: 2026-03-15 01:59:10 UTC


README

DC\Cache - Caching interface

Installation

$ composer require dc/cache-phpredis

Or add it to composer.json:

"require": {
	"dc/cache-phpredis": "0.*",
}
$ composer install

Getting started

Provide either a \Redis connection or a hostname and port.

$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.