Skip to content

Commit

Permalink
fix(server): make CacheManager constructor private to satisfy the sin…
Browse files Browse the repository at this point in the history
…gleton pattern (#2432)
  • Loading branch information
Pengzna authored and VGalaxies committed Feb 3, 2024
1 parent ec3779c commit b06779a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static boolean cacheEnableMetrics(String name, boolean enabled) {
return cache.enableMetrics(enabled);
}

public CacheManager() {
private CacheManager() {
this.caches = new ConcurrentHashMap<>();
this.timer = new Timer("cache-expirer", true);

Expand Down

0 comments on commit b06779a

Please sign in to comment.