Skip to content

cache.key.KEY error #18

@choesy

Description

@choesy

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions