开发者

ehcache diskStore location and access

开发者 https://www.devze.com 2023-03-30 07:04 出处:网络
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?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消