Is there a replacement for net.sf.ehcache.Statistics
? Something along the lines of org.ehcache.Statistics
?
Asked
Active
Viewed 215 times
0

Paul Reiners
- 8,576
- 33
- 117
- 202
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.

ldz
- 2,217
- 16
- 21
-
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