The Cache. setitem method in the cachetools library has a bug where it over-evicts cache entries when…
The Cache. setitem method in the cachetools library has a bug where it over-evicts cache entries when…: a task in repo2rlenv-swe-gen (Harbor dataset). When updating an existing key with a larger value (when getsizeof is set), Cache. setitem reserves space for the full new size instead of only the…
The task
When updating an existing key with a larger value (when `getsizeof` is set), `Cache.__setitem__` reserves space for the *full* new size instead of only the *additional* (delta) size needed. Since `currsize` already includes the old size of that key, the eviction loop double-counts it and calls `popitem()` even when…
Part of FineEnvs/repo2rlenv-swe-gen.