Ehcache的缓存搜索问题
请教各位大侠,我们现在的项目是将大批量数据导入缓存,我们用的是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>