Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache.key.KEY error #18

Open
choesy opened this issue Aug 20, 2023 · 3 comments
Open

cache.key.KEY error #18

choesy opened this issue Aug 20, 2023 · 3 comments

Comments

@choesy
Copy link

choesy commented Aug 20, 2023

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 choesy closed this as completed Aug 8, 2024
@fabston
Copy link

fabston commented Nov 25, 2024

Hello @choesy, I am running into the same issue now and I was wondering how you could solve this, since you market it as completed. Thank you.

@choesy choesy reopened this Nov 25, 2024
@choesy
Copy link
Author

choesy commented Nov 25, 2024

HI @fabston , yes sorry, I did not solve it. I just changed the code so that it doesn't use cache... which event is better.

@fabston
Copy link

fabston commented Nov 25, 2024

Ok, got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants