/** * 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)); }
/** * 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