/**
  * 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();
 }
Exemple #2
0
 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);
 }
Exemple #4
0
 /**
  * Clear cache
  */
 protected function _clear()
 {
     zend_disk_cache_clear($this->_options['namespace']);
 }
Exemple #5
0
 /**
  * Remove items of given namespace
  *
  * @param string $namespace
  * @return boolean
  */
 public function clearByNamespace($namespace)
 {
     return zend_disk_cache_clear($namespace);
 }
Exemple #6
0
 public function clear()
 {
     $ret = @zend_disk_cache_clear($this->namespace);
     return $ret;
 }
Exemple #7
0
 /**
  * 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"
         );
     }
 }
Exemple #8
0
 /**
  * @return bool
  */
 protected function driverClear()
 {
     return @zend_disk_cache_clear();
 }
 /**
  * {@inheritdoc}
  */
 public function clear()
 {
     return zend_disk_cache_clear();
 }
Exemple #10
0
 public function clear()
 {
     zend_disk_cache_clear(self::ZEND_NAMESPACE);
 }