0
我有一個ehcache的配置,如下面:如何清除特定的緩存區:ehcache的
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<cache
name="reg1"
maxElementsInMemory="100000"
eternal="false"
overflowToDisk="true"
timeToLiveSeconds="1">
</cache>
<cache
name="reg2"
maxElementsInMemory="1000000"
eternal="false"
overflowToDisk="true"
timeToLiveSeconds="100"/>
</ehcache>
我無法弄清楚如何清除只是「REG1」。 我已經看到了清除所有區域但不是特定區域的方法。 任何人都想出瞭如何做到這一點,請分享。
感謝
我現在使用「clearAllStartingWith」方法 – souser
如果解決了問題,請分享解決方案嗎? – prayagupd
No.仍然使用相同的方法。 – souser