I'm interested in getting the Ehcache statistics I'm working with.
I would like to see the number of hits / passes for a given key over a certain period of time. Perhaps in the form of a map. For example.
Over the past hour (or no matter how long it worked)
Key A had 30 hits and 2 misses
Key B had 400 hits and 100 misses
Key C had 2 hits and 1 miss
Key D had 150 hits and 10 misses
I looked through the documentation (SampledCacheStatistics, SampledCacheStatisticsImpl, SampledCacheStatisticsWrapper, etc.) and it is terribly difficult for me to understand.
Anyone else have experience implementing this?
Any help or ideas regarding this would be greatly appreciated!
caching statistics ehcache
Kevin b
source share