You are here

function Redis_Cache::__construct in Redis 7.2

Same name and namespace in other branches
  1. 7.3 lib/Redis/Cache.php \Redis_Cache::__construct()

File

lib/Redis/Cache.php, line 12

Class

Redis_Cache
Cache backend for Redis module.

Code

function __construct($bin) {
  $className = Redis_Client::getClass(Redis_Client::REDIS_IMPL_CACHE);
  $this->backend = new $className($bin);
}