Cache per item usage meta data? #146
Replies: 2 comments
-
After diving into the source I think I have found that the statistics are held in LocalCache.Entry that I can get through the backing map that requires a deprecated method to access .. |
Beta Was this translation helpful? Give feedback.
-
In this application we are currently not using Caffeine based Cache but as discussed before I am aware it do provide operations to get an approximation of the N best (or worst) keys that I can get hold of by accessing the backing map so that is another option but this requires a bit more work as we need to see that it works at least as good for our access pattern... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As Coherence can perform eviction based on usage frequency and most recently accessed this information must ad I understand it be stored somewhere... is this information today readable in some way through an API (when I asked a similar question some years ago I interpreted the answer as no such info was available and never perused it further at that time).
Now the need has surfaced again. Even if I get the backing map (something I have used for some other custom stuff) I have not seen a way to get these statistics :-(
I think it would be valuable to be able to get this information without yourself having to duplicate it in the application...
Beta Was this translation helpful? Give feedback.
All reactions