Skip to content

Commit

Permalink
Fix for Issue ehcache#54
Browse files Browse the repository at this point in the history
  • Loading branch information
apptaro committed Dec 5, 2017
1 parent 598c609 commit f39052a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public JCacheManager(final JCacheCachingProvider jCacheCachingProvider, final Ca
this.cacheManager = cacheManager;
this.uri = uri;
this.props = props;
refreshAllCaches();
//refreshAllCaches();
}

@Override
Expand Down Expand Up @@ -161,7 +161,11 @@ public <K, V> Cache<K, V> getCache(final String cacheName, final Class<K> keyTyp
public <K, V> Cache<K, V> getCache(final String cacheName) {
final JCache<K, V> jCache = allCaches.get(cacheName);
if(jCache == null) {
refreshAllCaches();
//refreshAllCaches();
final net.sf.ehcache.Cache cache = cacheManager.getCache(cacheName);
if (cache != null) {
allCaches.put(cacheName, new JCache(this, new JCacheConfiguration(cache.getCacheConfiguration()), cache));
}
return allCaches.get(cacheName);
}
if(jCache.getConfiguration(CompleteConfiguration.class).getKeyType() != Object.class ||
Expand Down

0 comments on commit f39052a

Please sign in to comment.