code: def _prune_invalidated_entries(self):
          "Rebuild our access_log without the invalidated entries."
          self.access_log_lock.acquire()
          self.access_log = deque(e for e in self.access_log if e.is_valid)
          self.access_log_lock.release(f _prune_invalidated_entries(self):
          "Rebuild our access_log without the invalidated entries."
          self.access_log_lock.acquire()
          self.access_log = deque(e for e in self.access_log if e.is_valid)
          self.access_log_lock.release()
docs: Rebuild our access_log without the invalidated entries.