-
Notifications
You must be signed in to change notification settings - Fork 14
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
possible to have the size limit set by memory size instead of memory items? #23
Comments
That is possible. The number of items is
I am not sure that I understand correctly. What exactly is "meta info"? |
where to do the upvotes to add the api call? thx in advance. |
This sounds you are using It would be great if you could come up with a PoC as a base for further discussion (I am still nor sure if we are on the same page). |
@rockdaboot yes i'm using []byte a lot and you only have "string" because that's the only way to do "comparison"? anyway, https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/lib/workingsetcache/cache.go it's "lru" too |
If you want to use You can either convert keys to Regarding the memory control, you can write a simple wrapper around FreeLRU where you keep track of the amount of memory used by your values. What is missing in FreeLRU for your case is a Does that make sense? |
10 bytes takes 10bytes + meta info etc.
The text was updated successfully, but these errors were encountered: