Esempio n. 1
0
File: Cache.php Progetto: jasny/Q
 /**
  * Test if cache is available.
  * 
  * @param string $id   Cache id
  * @param int    $opt  Cache::% options
  * @return boolean 
  */
 public function has($id, $opt = 0)
 {
     return $this->doHas($id) || isset($this->chainNext) && ~$opt & self::NOCASCADE && $this->chainNext->has($id);
 }