code: def _check_limit(self):
          
  
          # First compress
          self._compress()
  
          # Then check the max size
          if len(self._store) >= self._max_size:
              self._store.popitem(last=False)
docs: Intenal method: check if current cache size exceeds maximum cache
             size and pop the oldest item in this case