Ehcache的缓存搜索问题

sh45678 2011-07-19 11:00:04
请教各位大侠,我们现在的项目是将大批量数据导入缓存,我们用的是Ehcache,然后再缓存中进行查询,等等操作,但是发现一问题
Search attributes not supported by this store type: net.sf.ehcache.store.compound.impl.OverflowToDiskStore
也就是说配置文件中的OverflowToDiskStore 不支持searchable 属性,如果去掉该属性的话,那么导入的数据只有ehcache.xml中设置的最大的内存数量,多出来的数据就没有了,这个该怎么解决
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<diskStore path="f:\cache.data" />
<defaultCache maxElementsInMemory="10000" eternal="false"
timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="true"
diskPersistent="false" diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU" />
<cache name="tradeIvt" maxElementsInMemory="10000" eternal="false"
overflowToDisk="true" timeToIdleSeconds="0" timeToLiveSeconds="0"
memoryStoreEvictionPolicy="LFU">

<searchable>
<searchAttribute name="N_TD_AMOUNT"></searchAttribute>
</searchable>

</cache>
...全文
140 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

50,530

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧