mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2026-01-28 05:32:15 +09:00
hubez-admin partner-git master -> hubez-git transfer 202205241800
This commit is contained in:
24
src/main/java/kr/co/uplus/ez/config/CommonCacheConfig.java
Normal file
24
src/main/java/kr/co/uplus/ez/config/CommonCacheConfig.java
Normal file
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user