The invalidate() method on functions decorated with @cache raises a KeyError when called for a key that is…
The invalidate() method on functions decorated with @cache raises a KeyError when called for a key that is…: a task in repo2rlenv-swe-gen (Harbor dataset). The fix is to make invalidate() idempotent: if the key is not present in the cache, it should silently do nothing instead of raising KeyError .
The task
The fix is to make `invalidate()` idempotent: if the key is not present in the cache, it should silently do nothing instead of raising `KeyError`.
Part of FineEnvs/repo2rlenv-swe-gen.