use of org.springframework.cache.ehcache.EhCacheManagerFactoryBean in project oc-explorer by devgateway.
the class CacheConfiguration method ehCacheManagerFactoryBean.
@Bean
public EhCacheManagerFactoryBean ehCacheManagerFactoryBean() {
EhCacheManagerFactoryBean ehCacheManagerFactoryBean = new EhCacheManagerFactoryBean();
ehCacheManagerFactoryBean.setConfigLocation(new ClassPathResource("ehcache.xml"));
ehCacheManagerFactoryBean.setShared(true);
return ehCacheManagerFactoryBean;
}
use of org.springframework.cache.ehcache.EhCacheManagerFactoryBean in project mica2 by obiba.
the class CacheConfiguration method cacheManagerFactory.
@Bean
public EhCacheManagerFactoryBean cacheManagerFactory() {
log.debug("Starting Ehcache");
EhCacheManagerFactoryBean factoryBean = new EhCacheManagerFactoryBean();
factoryBean.setCacheManagerName("mica");
return factoryBean;
}
Aggregations