本文整理汇总了PHP中CacheEngine::deleteValue方法的典型用法代码示例。如果您正苦于以下问题:PHP CacheEngine::deleteValue方法的具体用法?PHP CacheEngine::deleteValue怎么用?PHP CacheEngine::deleteValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CacheEngine
的用法示例。
在下文中一共展示了CacheEngine::deleteValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
/**
* Remove the object with given cache key from cache.
*
* @param string
* $p_key The cache key for the object.
*
* @return boolean
* TRUE on success, FALSE on failure
*/
public function delete($p_key)
{
if (!self::$m_enabled) {
return false;
}
return $this->m_cacheEngine->deleteValue($this->genKey($p_key));
}
示例2: delete
/**
* Remove the object with given cache key from cache.
*
* @param string
* $p_key The cache key for the object.
*
* @return boolean
* TRUE on success, FALSE on failure
*/
public function delete($p_key)
{
if (!self::$m_enabled) {
return false;
}
if ($p_key == SystemPref::CACHE_KEY_SYSTEM_PREF) {
CampSession::singleton()->setData(SystemPref::SESSION_KEY_CACHE_ENGINE, null, 'default', true);
}
return $this->m_cacheEngine->deleteValue($this->genKey($p_key));
} // fn delete