Example usage for org.springframework.cache.concurrent ConcurrentMapCacheFactoryBean ConcurrentMapCacheFactoryBean

List of usage examples for org.springframework.cache.concurrent ConcurrentMapCacheFactoryBean ConcurrentMapCacheFactoryBean

Introduction

In this page you can find the example usage for org.springframework.cache.concurrent ConcurrentMapCacheFactoryBean ConcurrentMapCacheFactoryBean.

Prototype

ConcurrentMapCacheFactoryBean

Source Link

Usage

From source file:com.axel.config.ServiceConfig.java

@Bean
public Cache defaultCache() {
    ConcurrentMapCacheFactoryBean cacheFactoryBean = new ConcurrentMapCacheFactoryBean();
    cacheFactoryBean.setName("default");
    cacheFactoryBean.afterPropertiesSet();
    return cacheFactoryBean.getObject();

}