Horde_Kolab_Storage_Cache_Data::hasQuery PHP 메소드

hasQuery() 공개 메소드

Is the specified query data available in the cache?
public hasQuery ( string $key ) : boolean
$key string The query key.
리턴 boolean True in case cached data is available.
    public function hasQuery($key)
    {
        $this->_load();
        return isset($this->_data[self::QUERIES][$key]);
    }

Usage Example

예제 #1
0
파일: Cache.php 프로젝트: raz0rsdge/horde
 /**
  * Ensure we have the query data.
  *
  * @return NULL
  */
 private function _init()
 {
     if ($this->_mapping !== null) {
         return;
     }
     if ($this->_data_cache->hasQuery(self::PREFS)) {
         $this->_mapping = $this->_data_cache->getQuery(self::PREFS);
     } else {
         $this->synchronize();
     }
 }