/** * Clear datas with $uid key * @param mixed $uid * @return void */ public function clear($uid = null) { if ($uid) { return zend_disk_cache_delete($uid); } return zend_disk_cache_clear(); }
public function tearDown() { if (function_exists('zend_disk_cache_clear')) { zend_disk_cache_clear(); } parent::tearDown(); }
/** * Remove items of given namespace * * @param string $namespace * @return bool */ public function clearByNamespace($namespace) { $namespace = (string) $namespace; if ($namespace === '') { throw new Exception\InvalidArgumentException('No namespace given'); } return zend_disk_cache_clear($namespace); }
/** * Clear cache */ protected function _clear() { zend_disk_cache_clear($this->_options['namespace']); }
/** * Remove items of given namespace * * @param string $namespace * @return boolean */ public function clearByNamespace($namespace) { return zend_disk_cache_clear($namespace); }
public function clear() { $ret = @zend_disk_cache_clear($this->namespace); return $ret; }
/** * Clear items of the given namespace from Zend Data Disk Cache * * @param string $namespace * @return void * @throws Exception\RuntimeException */ protected function zdcClearByNamespace($namespace) { if (!zend_disk_cache_clear($namespace)) { throw new Exception\RuntimeException( "zend_disk_cache_clear({$namespace}) failed" ); } }
/** * @return bool */ protected function driverClear() { return @zend_disk_cache_clear(); }
/** * {@inheritdoc} */ public function clear() { return zend_disk_cache_clear(); }
public function clear() { zend_disk_cache_clear(self::ZEND_NAMESPACE); }