@property
    def is_valid(self):
        """Checks if the cache is considered to be up-to-date."""
        if timestamp() - self.last_updated <= self.update_interval:
            return True
        else:
            return False
dataset/ETHPy150Open buckket/twtxt/twtxt/cache.py/Cache.is_valid/original