/** * 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(); }
/** * 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); }
/** * 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); }
/** * 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); }
public function delete($key) { $safeKey = $this->makeKey($key); $ret = @zend_disk_cache_delete($safeKey); return $ret; }
/** * @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); }
/** * 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); }
protected function _delete($key) { zend_disk_cache_delete($this->key($key)); }