|
|
@ -18,7 +18,7 @@ public class CacheConfig {
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public EhCacheCacheManager getCacheManager() {
|
|
|
|
public EhCacheCacheManager getCacheManager() {
|
|
|
|
net.sf.ehcache.config.Configuration configuration = new net.sf.ehcache.config.Configuration();
|
|
|
|
net.sf.ehcache.config.Configuration configuration = new net.sf.ehcache.config.Configuration();
|
|
|
|
configuration.setMaxBytesLocalHeap("100M");
|
|
|
|
configuration.setMaxBytesLocalHeap("4G");
|
|
|
|
configuration.updateCheck(false);
|
|
|
|
configuration.updateCheck(false);
|
|
|
|
configuration.addDiskStore(new DiskStoreConfiguration().path("java.io.tmpdir"));
|
|
|
|
configuration.addDiskStore(new DiskStoreConfiguration().path("java.io.tmpdir"));
|
|
|
|
CacheManager cacheManager = CacheManager.create(configuration);
|
|
|
|
CacheManager cacheManager = CacheManager.create(configuration);
|
|
|
|