/**
  * 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();
 }
Beispiel #2
0
 /**
  * Delete data from Zend Data Disk Cache
  *
  * @param  string $internalKey
  * @return bool
  * @throws Exception\RuntimeException
  */
 protected function zdcDelete($internalKey)
 {
     return zend_disk_cache_delete($internalKey);
 }
Beispiel #3
0
 /**
  * Unset data
  *
  * @param string $id          Cache id
  * @return boolean true if no problem
  */
 protected function _unset($id)
 {
     return zend_disk_cache_delete($this->_options['namespace'] . '::' . $id);
 }
Beispiel #4
0
 /**
  * Delete from the cache
  *
  * Delete a variable from the cache so it is no longer usuable and
  * retrievable by $this->get($name)
  *
  * @param  string $name  The name of the cache variable to delete.
  * 
  * @return boolean       Depending on the success of the operation, 
  *                       either true or false. 
  */
 public function delete($name)
 {
     return zend_disk_cache_delete($name);
 }
Beispiel #5
0
 public function delete($key)
 {
     $safeKey = $this->makeKey($key);
     $ret = @zend_disk_cache_delete($safeKey);
     return $ret;
 }
Beispiel #6
0
 /**
  * @param \Psr\Cache\CacheItemInterface $item
  * @return bool
  * @throws \InvalidArgumentException
  */
 protected function driverDelete(CacheItemInterface $item)
 {
     /**
      * Check for Cross-Driver type confusion
      */
     if ($item instanceof Item) {
         return zend_disk_cache_delete($item->getKey());
     } else {
         throw new \InvalidArgumentException('Cross-Driver type confusion detected');
     }
 }
 /**
  * {@inheritdoc}
  */
 public function remove($key)
 {
     return zend_disk_cache_delete($key);
 }
Beispiel #8
0
 /**
  * Delete data from Zend Data Disk Cache
  *
  * @param  string $internalKey
  * @return boolean
  * @throws Exception\RuntimeException
  */
 protected function zdcDelete($key)
 {
     return zend_disk_cache_delete($key);
 }
Beispiel #9
0
 protected function _delete($key)
 {
     zend_disk_cache_delete($this->key($key));
 }