You are here

public function RedisCache::setRedis in Plug 7

Sets the redis instance to use.

Parameters

Redis $redis:

Return value

void

File

lib/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php, line 45

Class

RedisCache
Redis cache provider.

Namespace

Doctrine\Common\Cache

Code

public function setRedis(Redis $redis) {
  $redis
    ->setOption(Redis::OPT_SERIALIZER, $this
    ->getSerializerValue());
  $this->redis = $redis;
}