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

Feature Request: cache_info() like cachetools #17

Open
pettazz opened this issue May 4, 2023 · 1 comment
Open

Feature Request: cache_info() like cachetools #17

pettazz opened this issue May 4, 2023 · 1 comment

Comments

@pettazz
Copy link

pettazz commented May 4, 2023

cachetools' cached decoractor has an info param that adds a wrapped info function for getting details on cache usage, which can be helpful for debugging. From their docs:

If info is set to True, the wrapped function is instrumented with a cache_info() function that returns a named tuple showing hits, misses, maxsize and currsize, to help measure the effectiveness of the cache.

Would be nice to have something similar here!

@iamsinghrajat
Copy link
Owner

Great idea! will pick it up soon.

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