public function __construct($prefix, CacheHandler $proxiedHandler, $allowCopyInLocalCache) { parent::__construct($prefix); $this->proxiedHandler = $proxiedHandler; if ($allowCopyInLocalCache) { $this->localHandler = new InMemoryCacheHandler(); } }
public function __construct($prefix, DataSourceMetaData $datasource = NULL) { LogHelper::log_notice(t('[@cacheType] Initializing PHP extension ...', array('@cacheType' => $this->getCacheType()))); // taking into account possible datasource's nested name space $adjustedPrefix = isset($datasource->nestedNameSpace) ? (isset($prefix) ? NameSpaceHelper::addNameSpace($datasource->nestedNameSpace, $prefix) : $datasource->nestedNameSpace) : $prefix; parent::__construct($adjustedPrefix); if ($this->initialize($prefix, $datasource) !== FALSE) { $this->checkAccessibility(FALSE); } }
public function __construct($prefix, DataSourceMetaData $datasource) { LogHelper::log_notice(t('[@cacheType] Initializing PHP extension ...', array('@cacheType' => $this->getCacheType()))); // taking into account possible datasource's nested name space $adjustedPrefix = isset($datasource->nestedNameSpace) ? NameSpaceHelper::addNameSpace($prefix, $datasource->nestedNameSpace) : $prefix; parent::__construct($adjustedPrefix); // the optional datasource can have its own expiration schedule if (isset($datasource->entryExpiration)) { $this->entryExpiration = $datasource->entryExpiration; } if ($this->initialize($prefix, $datasource) !== FALSE) { $this->checkAccessibility(FALSE); } }