hasQuery() public method

Is the specified query data available in the cache?
public hasQuery ( string $key ) : boolean
$key string The query key.
return boolean True in case cached data is available.
Exemplo n.º 1
0
 /**
  * Ensure we have the query data.
  *
  * @param string $query The query data required.
  *
  * @return NULL
  */
 private function _initQuery($query)
 {
     if (!$this->_list_cache->hasQuery($query)) {
         $this->_sync->synchronize($this->_list_cache);
     }
 }