public init ( $config ) |
public function init($config)
{
if ($this->_prefix === null) {
$this->_prefix = $this->getApplication()->getUniqueID();
}
if ($this->_primary) {
if ($this->getApplication()->getCache() === null) {
$this->getApplication()->setCache($this);
} else {
throw new TConfigurationException('cache_primary_duplicated', get_class($this));
}
}
}
* @package Prado\Caching */ namespace Prado\Caching; use Prado\Exceptions\TConfigurationException; /** * TEACache class *