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

Questions about how to check the cashe usage and, about specifying the cache size #72

Open
para-d opened this issue Nov 17, 2022 · 1 comment

Comments

@para-d
Copy link

para-d commented Nov 17, 2022

Hi Team,

I've developed an application and used FastCache as an in-memory data store. So far, everything works fine. One thing I'm struggling is to figure out is how to see the cache usage in megabytes.

So,

  1. Is there a way to get the cache usage (not the allocation) and/or the free quota?
  2. If it's not possible at the moment, would such a feature be made available in the future?

There's some confusion in the documentation as well, when creating a cache using fastcache.New(maxBytes)
(https://pkg.go.dev/github.com/VictoriaMetrics/fastcache#New)

  1. If we need a cache of 64MB, should we specify maxBytes as 64 or 64000000?
@para-d
Copy link
Author

para-d commented Nov 23, 2022

I'll be using it as 64000000. The given example (32MB) is given in MB that's why I got confused.

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

1 participant