NOTE: This class is NOT intended to be accessed outside of a Base object. There is NO guarantees that the API of this class will not change across versions.
Author: Michael Slusarz (slusarz@horde.org)
Beispiel #1
0
 /**
  * Delete a mailbox from the cache.
  *
  * @param string $mbox  The mailbox to delete.
  */
 public function deleteMailbox($mbox)
 {
     $mbox = strval($mbox);
     $this->_backend->deleteMailbox($mbox);
     if ($this->_debug) {
         $this->_debug->info(sprintf('CACHE: Deleted mailbox [%s]', $mbox));
     }
 }
Beispiel #2
0
 /**
  * Set data in the search cache.
  *
  * @param mixed $data    The cache data to store.
  * @param string $sdata  The search data returned from _getSearchCache().
  */
 protected function _setSearchCache($data, $sdata)
 {
     $sdata['metadata'][self::CACHE_SEARCH][$sdata['id']] = $data;
     $this->_cache->setMetaData($this->_selected, null, $sdata['metadata']);
     if ($this->_debug->debug) {
         $this->_debug->info(sprintf('SEARCH: Saved %s to cache (%s [%s])', $sdata['type'], $sdata['id'], $this->_selected));
         unset($this->_temp['searchcacheexpire'][strval($this->_selected)]);
     }
 }