public static synchronized void clearAll() { log.info("clearing all generation caches..."); for (Map.Entry<Class<? extends CacheStore>, CacheStore> entry : CACHE_STORE_MAP.entrySet()) { synchronized (entry.getKey()) { entry.getValue().clear(); } } } }
public static synchronized void clearAll() { log.info("clearing all generation caches..."); for (Map.Entry<Class<? extends CacheStore>, CacheStore> entry : CACHE_STORE_MAP.entrySet()) { synchronized (entry.getKey()) { entry.getValue().clear(); } } } }