public function isExpired($key, $time)
    {
        return $this->getCreatedTime($key) + $this->getTtl($key) < $time;
    }
public function isExpired($key, $time)
    {
        return $this->getCreatedTime($key) + $this->getTtl($key) < $time;
    }
public function isExpired ( $ key , $ time ) { return $ this -> getCreatedTime ( $ key ) + $ this -> getTtl ( $ key ) < $ time ; }
Checks whether cache key is expired

@param string $key
@param integer $time Current timestamp
@return boolean
Checks whether cache key is expired