_getSearchCache() protected method

Retrieve data from the search cache.
protected _getSearchCache ( string $type, array $options ) : mixed
$type string The cache type ('search' or 'thread').
$options array The options array of the calling function.
return mixed Returns search cache metadata. If search was retrieved, data is in key 'data'. Returns null if caching is not available.
示例#1
0
 /**
  */
 protected function _getSearchCache($type, $mailbox, $options)
 {
     /* Search caching requires MODSEQ, which may not be active for a
      * mailbox. */
     return empty($this->_temp['mailbox']['highestmodseq']) ? null : parent::_getSearchCache($type, $mailbox, $options);
 }