예제 #1
0
 /**
  * Return whether cache is valid or invalid
  *
  * @param string $key Cache key
  * @param int $modified_time 	Unix time of data modified.
  *								If stored time is older then modified time, the data is invalid.
  * @return bool Return true on valid or false on invalid.
  */
 function isValid($key, $modified_time)
 {
     if (!$this->handler) {
         return false;
     }
     return $this->handler->isValid($key, $modified_time);
 }
예제 #2
0
 /**
  * Return whether cache is valid or invalid
  *
  * @param string $key Cache key
  * @param int $modified_time 	Unix time of data modified.
  * 								If stored time is older then modified time, the data is invalid.
  * @return bool Return true on valid or false on invalid.
  */
 function isValid($key, $modified_time)
 {
     if (!$this->handler) {
         return false;
     }
     $key = $this->getCacheKey($key);
     return $this->handler->isValid($key, $modified_time);
 }