perf(ems): 调整缓存刷新间隔并优化配置

- 将 EmsBaseEnergyTypeMapper 的缓存刷新间隔从7200000毫秒调整为 72000000毫秒(20小时)
- 移除了 EmsBaseMonitorInfoMapper 中的缓存配置
boardTest
zch 1 month ago
parent e1f45203a0
commit ea14ac5859

@ -7,7 +7,7 @@
<!-- 启用二级缓存 --> <!-- 启用二级缓存 -->
<cache <cache
eviction="LRU" eviction="LRU"
flushInterval="7200000" flushInterval="72000000"
size="500" size="500"
readOnly="true"/> readOnly="true"/>

@ -5,11 +5,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.os.ems.base.mapper.EmsBaseMonitorInfoMapper"> <mapper namespace="com.os.ems.base.mapper.EmsBaseMonitorInfoMapper">
<!-- 启用二级缓存 --> <!-- 启用二级缓存 -->
<cache <!-- <cache -->
eviction="LRU" <!-- eviction="LRU" -->
flushInterval="60000" <!-- flushInterval="60000"-->
size="1000" <!-- size="1000" -->
readOnly="true"/> <!-- readOnly="true"/>-->
<resultMap type="EmsBaseMonitorInfo" id="EmsBaseMonitorInfoResult"> <resultMap type="EmsBaseMonitorInfo" id="EmsBaseMonitorInfoResult">
<result property="objId" column="obj_id" /> <result property="objId" column="obj_id" />

Loading…
Cancel
Save