本文整理汇总了PHP中zend_disk_cache_delete函数的典型用法代码示例。如果您正苦于以下问题:PHP zend_disk_cache_delete函数的具体用法?PHP zend_disk_cache_delete怎么用?PHP zend_disk_cache_delete使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zend_disk_cache_delete函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: clear
/**
* 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();
}
示例2: zdcDelete
/**
* 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);
}
示例3: _unset
/**
* 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);
}
示例4: delete
/**
* 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);
}
示例5: delete
public function delete($key)
{
$safeKey = $this->makeKey($key);
$ret = @zend_disk_cache_delete($safeKey);
return $ret;
}
示例6: driverDelete
/**
* @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');
}
}
示例7: remove
/**
* {@inheritdoc}
*/
public function remove($key)
{
return zend_disk_cache_delete($key);
}
示例8: zdcDelete
/**
* 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);
}
示例9: _delete
protected function _delete($key)
{
zend_disk_cache_delete($this->key($key));
}