fix: 引擎缓存

This commit is contained in:
taojinlong 2022-04-17 21:28:41 +08:00
parent df78a85c38
commit cc1a8d87b2
2 changed files with 12 additions and 1 deletions

View File

@ -151,7 +151,7 @@ public class EngineService {
}
private void setDs(DeEngine engine) {
CacheUtils.remove("ENGINE", "SimpleKey []");
CacheUtils.removeAll("ENGINE");
}
@Cacheable(value = "ENGINE")

View File

@ -249,6 +249,17 @@
timeToLiveSeconds="3600"
memoryStoreEvictionPolicy="LRU"
/>
<cache
name="ENGINE"
eternal="false"
maxElementsInMemory="100"
maxElementsOnDisk="1000"
overflowToDisk="true"
diskPersistent="true"
timeToIdleSeconds="1800"
timeToLiveSeconds="3600"
memoryStoreEvictionPolicy="LRU"
/>
</ehcache>