You are here

public function RedisCache::setRedis in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php \Doctrine\Common\Cache\RedisCache::setRedis()

Sets the redis instance to use.

Parameters

Redis $redis:

Return value

void

File

vendor/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;
}