def resize(self, size):
        if size >= self._cache_size or size == -1:
            self._cache_size = size
        else:
            while len(self._cached_reqs) > size:
                self._evict_single()
            self._cache_size = size
dataset/ETHPy150Open roglew/pappy-proxy/pappyproxy/requestcache.py/RequestCache.resize/original