public function Redis_Cache::__construct in Redis 7.3
Same name and namespace in other branches
- 7.2 lib/Redis/Cache.php \Redis_Cache::__construct()
1 call to Redis_Cache::__construct()
- Redis_CacheCompressed::__construct in lib/
Redis/ CacheCompressed.php
1 method overrides Redis_Cache::__construct()
- Redis_CacheCompressed::__construct in lib/
Redis/ CacheCompressed.php
File
- lib/
Redis/ Cache.php, line 173
Class
- Redis_Cache
- Because those objects will be spawned during boostrap all its configuration must be set in the settings.php file.
Code
public function __construct($bin) {
$this->bin = $bin;
$className = Redis_Client::getClass(Redis_Client::REDIS_IMPL_CACHE);
$this->backend = new $className(Redis_Client::getClient(), $bin, Redis_Client::getDefaultPrefix($bin));
$this
->refreshCapabilities();
$this
->refreshPermTtl();
$this
->refreshMaxTtl();
}