Horde_Cache::expire PHP Method

expire() public method

Expire any existing data for the given key.
public expire ( string $key ) : boolean
$key string Cache key to expire.
return boolean Success or failure.
    public function expire($key)
    {
        return $this->_storage->expire($key);
    }

Usage Example

コード例 #1
0
ファイル: Cache.php プロジェクト: horde/horde
 /**
  * Delete a mailbox from the cache.
  *
  * @param string $mbox  The mailbox to delete.
  */
 protected function _deleteMailbox($mbox)
 {
     foreach (array_merge(array_keys(array_flip($this->_slicemap[$mbox]['s'])), array('slicemap')) as $slice) {
         $cid = $this->_getCid($mbox, $slice);
         $this->_cache->expire($cid);
         unset($this->_loaded[$cid]);
     }
     unset($this->_data[$mbox], $this->_slicemap[$mbox], $this->_update[$mbox]);
 }
All Usage Examples Of Horde_Cache::expire