code: def _clear_timeouts(self, cache_timeout):
          
  
          for key in list(self.timeouts):
              if timer() - self.timeouts[key] > cache_timeout:
                  del self.timeouts[key]
                  del self.cache[key]
docs: Clear the cache of timed out results.