fix(server): make CacheManager constructor private to satisfy the singleton pattern (#2432)

This commit is contained in:
Peng Junzhi 2024-02-01 09:58:44 -06:00 committed by VGalaxies
parent ec3779c709
commit b06779aed6
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public class CacheManager {
return cache.enableMetrics(enabled);
}
public CacheManager() {
private CacheManager() {
this.caches = new ConcurrentHashMap<>();
this.timer = new Timer("cache-expirer", true);