cache.invalidate() raises KeyError when the key is not in the cache
cache.invalidate() raises KeyError when the key is not in the cache: a task in repo2rlenv-swe-next (Harbor dataset). Calling .invalidate() on a @cache -decorated function raises a KeyError if the key being invalidated is not currently in the cache. This makes the method non-idempotent and fragile…
Part of FineEnvs/repo2rlenv-swe-next.