Is there a replacement for net.sf.ehcache.Statistics
? Something along the lines of org.ehcache.Statistics
?
Asked
Active
Viewed 67 times
0
![](../../users/profiles/7648.webp)
Paul Reiners
- 8,896
- 30
- 107
- 178
1 Answers
1
Not an exact replacement, but in org.ehcache.core.statistics
is an interface CacheStatistics
which is implemented by i.e. DefaultCacheStatistics
which covers some of the methods such as getCacheHits
and getCacheMisses
.
The corresponding Github issue points to this comment stating that an official API is available via DefaultStatisticsService
but not yet documented.
![](../../users/profiles/6911095.webp)
ldz
- 2,172
- 14
- 20
-
The answer linked above points to this [unit test](https://github.com/ehcache/ehcache3/blob/master/integration-test/src/test/java/org/ehcache/integration/statistics/CacheCalculationTest.java). – ldz Dec 16 '19 at 20:32