Implement a decorator factory called ttl cache that wraps a function with a memoizing callable combining LRU…
Implement a decorator factory called ttl cache that wraps a function with a memoizing callable combining LRU…: a task in repo2rlenv-r2e (Harbor dataset). The decorator must support three calling conventions: 1. @ttl cache(maxsize=128, ttl=600, timer=time.monotonic, typed=False) — called with…
Part of FineEnvs/repo2rlenv-r2e.