init($settings)) { throw new Error\Exception( __d('cake_dev', 'Cache engine %s is not properly configured.', $class) ); } if ($instance->settings['probability'] && time() % $instance->settings['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]); } }