(self)
return elapsed > self._interval
The cache has a global time to live, all elements expire at the same time.
        :return True if the cache is expired.
The cache has a global time to live, all elements expire at the same time.
        :return True if the cache is expired.
The cache has a global time to live all elements expire at the same time . : return True if the cache is expired .
def is_expired(self):
        # type: () -> bool
        """The cache has a global time to live, all elements expire at the same time.
        :return True if the cache is expired."""
        elapsed = time.time() - self._last_ts
        return elapsed > self._interval
def is_expired ( self ) : # type: () -> bool elapsed = time . time ( ) - self . _last_ts return elapsed > self . _interval