Пример #1
0
 public CustomCacheManager() {
   try {
     cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
     cache.clear();
   } catch (CacheException e) {
     throw new RuntimeException("Impossible to get the cache from the manager");
   }
 }
Пример #2
0
 public static void clearCache() {
   cache.clear();
 }