public function RedisCache::setRedis

Sets the redis instance to use.

Parameters

Redis $redis:

File

drupal/core/vendor/doctrine/common/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, Redis::SERIALIZER_IGBINARY);
  $this->redis = $redis;
}