#1685 DefaultServerCache expose hit and miss count to assist testing

Expose these counters to assist the testing of duel caches where
 DefaultServerCache is used as the near cache.
This commit is contained in:
rob bygrave
2019-04-28 09:50:45 +12:00
parent e700f1c83c
commit a5e3a70921
2 changed files with 21 additions and 0 deletions
@@ -119,6 +119,20 @@ public class DefaultServerCache implements ServerCache {
return cacheStats;
}
/**
* Return the count of get hits.
*/
public long getHitCount() {
return hitCount.get(false);
}
/**
* Return the count of get misses.
*/
public long getMissCount() {
return missCount.get(false);
}
@Override
public int getHitRatio() {