ehcache diskStore location and access
I am using following configuration. I could like to see the cache file and see access the data from textpad/noteoad? is that possible? is there i can verify the data in Cache?
<cache nam开发者_如何学JAVAe="cDBResponse" eternal="false"
maxElementsInMemory="100" overflowToDisk="false" diskPersistent="false"
timeToIdleSeconds="0" timeToLiveSeconds="600"
memoryStoreEvictionPolicy="LRU">
<cacheEventListenerFactory class="com.optumhealth.authorization.service.MyCacheEventListenerFactory"/>
</cache>
You should at least set diskPersistent="true" and check the location of the default diskstorage :
by default it's defined in this node
<diskStore path="java.io.tmpdir"/>
where java.io.tmpdir will depend on your OS
精彩评论