init($config)) { throw new RuntimeException( sprintf('Cache engine %s is not properly configured.', get_class($instance)) ); } $config = $instance->getConfig(); if ($config['probability'] && time() % $config['probability'] === 0) { $instance->gc(); } return $instance; } /** * Remove a single adapter from the registry. * * @param string $name The adapter name. * @return void */ public function unload($name) { unset($this->_loaded[$name]); } }