def METHOD_NAME(self) -> None:
    # Evict if there are now too many items
    while self._max_size and len(self) > self._max_size:
        _key, value = self._cache.popitem(last=False)
        if self.iterable:
            self.metrics.inc_evictions(EvictionReason.size, len(value.value))
        else:
            self.metrics.inc_evictions(EvictionReason.size)