mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2026-01-27 23:17:16 +09:00
24 lines
697 B
Java
24 lines
697 B
Java
package kr.co.uplus.ez.config;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import org.springframework.cache.CacheManager;
|
|
import org.springframework.cache.annotation.EnableCaching;
|
|
import org.springframework.cache.concurrent.ConcurrentMapCache;
|
|
import org.springframework.cache.support.SimpleCacheManager;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
@Configuration
|
|
@EnableCaching
|
|
public class CommonCacheConfig {
|
|
|
|
@Bean
|
|
public CacheManager cacheManager() {
|
|
SimpleCacheManager simpleCacheManager = new SimpleCacheManager();
|
|
simpleCacheManager.setCaches(Arrays.asList(new ConcurrentMapCache("sample")));
|
|
return simpleCacheManager;
|
|
}
|
|
|
|
} |