async-cache icon indicating copy to clipboard operation
async-cache copied to clipboard

cache.key.KEY error

Open choesy opened this issue 10 months ago • 0 comments

Rarely, but sometimes the unknown error happens, when a function with @AsyncTTL decorator is called:<cache.key.KEY object at 0x7f242580c460> ``text File "/usr/local/lib/python3.10/site-packages/cache/async_ttl.py", line 56, in wrapper self.ttl[key] = await func(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/cache/async_ttl.py", line 36, in setitem super().setitem(key, (value, ttl_value)) File "/usr/local/lib/python3.10/site-packages/cache/lru.py", line 17, in setitem oldest = next(iter(self))

choesy avatar Aug 20 '23 13:08 choesy