// // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) // package com.casic.missiles.config; import net.sf.ehcache.config.CacheConfiguration; import net.sf.ehcache.config.PersistenceConfiguration; import net.sf.ehcache.config.PersistenceConfiguration.Strategy; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class RobotCacheConfig { public RobotCacheConfig() { } @Bean public CacheConfiguration robotEhcache() { CacheConfiguration config = new CacheConfiguration(); config.setName("CONSTANT_ROBOT"); config.setMaxEntriesLocalHeap(25000L); config.setEternal(true); config.setClearOnFlush(false); config.persistence((new PersistenceConfiguration()).strategy(Strategy.LOCALTEMPSWAP)).maxEntriesLocalDisk(0); config.setMaxElementsOnDisk(100000); config.setDiskExpiryThreadIntervalSeconds(120L); config.setMemoryStoreEvictionPolicy("LFU"); config.transactionalMode("off"); return config; } }