Exemplo n.º 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");
   }
 }
Exemplo n.º 2
0
 public static void clearCache() {
   cache.clear();
 }