use of cn.taketoday.cache.support.SimpleCacheManager in project today-infrastructure by TAKETODAY.
the class AbstractJCacheTests method createSimpleCacheManager.
protected static CacheManager createSimpleCacheManager(String... cacheNames) {
SimpleCacheManager result = new SimpleCacheManager();
List<Cache> caches = new ArrayList<>();
for (String cacheName : cacheNames) {
caches.add(new ConcurrentMapCache(cacheName));
}
result.setCaches(caches);
result.afterPropertiesSet();
return result;
}
Aggregations