Exemple #1
0
 /**
  * Remove a cache
  *
  * @param  string $id Cache id to remove
  * @return boolean True if ok
  */
 public function remove($id)
 {
     if (!$this->_options['caching']) {
         return true;
     }
     $id = $this->_id($id); // cache id may need prefix
     self::_validateIdOrTag($id);
     return $this->_backend->remove($id);
 }
 /**
  * Remove a cache
  *
  * @param  string $id Cache id to remove
  * @return boolean True if ok
  */
 public function remove($id)
 {
     if (!$this->_options['caching']) {
         return true;
     }
     $id = $this->_id($id);
     // cache id may need prefix
     self::_validateIdOrTag($id);
     $this->_log("Zend_Cache_Core: remove item '{$id}'", 7);
     return $this->_backend->remove($id);
 }
Exemple #3
0
 /**
  * Clears contents from storage
  *
  * @throws Zend_Auth_Storage_Exception If clearing contents from storage is impossible
  * @return void
  */
 public function clear()
 {
     $this->_backend->remove($this->_id);
 }