【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
配置如下:eternal="true"也还是会过期获取不到,是在用多线程解析文件的时候读到9万条就获取不到存入缓存中的解析配置数据,不知道为何
<?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd">
<!-- 磁盘缓存位置 -->
<diskStore path="E:\ehcache"/>
<!-- 默认缓存 -->
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="0"
timeToLiveSeconds="0"
overflowToDisk="true"/>
<!-- otc缓存 -->
<cache name="test"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="0"
timeToLiveSeconds="0"
overflowToDisk="true"/>
</ehcache>
第一是程序清除了缓存数据,第二程序是不是重启了?重启数据就没了