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 metrics #197

Open
masoudsafa opened this issue Sep 13, 2020 · 2 comments
Open

Cache metrics #197

masoudsafa opened this issue Sep 13, 2020 · 2 comments

Comments

@masoudsafa
Copy link

hi, im using beaker in a large scale enterprise application. so status of cache is too important .
how i could expose cache metrics? for example hit rate, size of cache, number of caches in each namespace and etc.

@masoudsafa masoudsafa changed the title Cache status report Cache metrics Sep 13, 2020
@rankinga
Copy link

I am also looking for the similar feature as provide in lru_cache cache_info(). For the missing count, I currently add two extra line to make it work.

@cache.cache()
def cached_function(para1, para2):
    cached_function.callingcount += 1
    # doing some stuff...
    return ""


cached_function.callingcount = 0

@masoudsafa
Copy link
Author

Please add this feature

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