deleteValue() абстрактный публичный Метод

Delete the value identified by the given key from the cache.
abstract public deleteValue ( $p_key ) : void
Результат void
Пример #1
0
 /**
  * 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
0
 /**
  * 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