Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 942 Bytes

redis.md

File metadata and controls

33 lines (21 loc) · 942 Bytes

Redis

Cache using a redis server. Redis is an open source, in-memory data structure store, used as a database, cache and message broker.

Uses the Redis PHP extension.

You must provide a Redis object to the constructor.

use Desarrolla2\Cache\Redis as RedisCache;
use Redis;

$client = new Redis();
$cache = new RedisCache($client);

Installation

Requires the redis PHP extension from PECL.

pickle install redis

Options

name type default
ttl int null Maximum time to live in seconds
prefix string "" Key prefix

Packer

By default the SerializePacker is used.