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: Expose Item cost #159

Open
tarmo-randma opened this issue Dec 12, 2024 · 1 comment
Open

Feature request: Expose Item cost #159

tarmo-randma opened this issue Dec 12, 2024 · 1 comment

Comments

@tarmo-randma
Copy link

This is related to the recent excellent #152.

For cache monitoring purposes it would be useful to have access to the current cache "cost" or memory consumption. The item count is already exposed with the Len() function so this would be somewhat similar.

Since item cost is atm a private field, it is not even possible to calculate the cost myself by ranging over all values. Or is there some less obious way how this info is exposed atm?

@tarmo-randma tarmo-randma changed the title Expose Item cost Feature request: Expose Item cost Dec 12, 2024
@swithek
Copy link
Contributor

swithek commented Dec 12, 2024

I don't think there would be any problems if this field were exposed through a method like Len(). We'll try to include it in the next release.

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