...
|
...
|
@@ -21,7 +21,9 @@ public class CacheMatchLogger { |
|
|
@Override
|
|
|
public void run() {
|
|
|
// 记录cacheService的缓存命中率
|
|
|
CACHE_MATCH.info("do log cache matchPercent, cacheName is [{}] , cacheInMinute is [{}],[{}]",cacheName,cacheInMinute,cacheCount);
|
|
|
if(cacheCount.getTotalCount().get()>0){
|
|
|
CACHE_MATCH.info("do log cache matchPercent, cacheName is [{}] , cacheInMinute is [{}],[{}]",cacheName,cacheInMinute,cacheCount);
|
|
|
}
|
|
|
cacheCount.clear();
|
|
|
}
|
|
|
}, logPeriodInMinute, logPeriodInMinute, TimeUnit.MINUTES);
|
...
|
...
|
|