2011-08-25 88 views
1

我正在使用以下配置。我希望看到緩存文件並查看從textpad/noteoad訪問數據?那可能嗎?在那裏我可以驗證緩存中的數據?ehcache磁盤存儲位置和訪問

<cache name="cDBResponse" eternal="false" 
     maxElementsInMemory="100" overflowToDisk="false" diskPersistent="false" 
     timeToIdleSeconds="0" timeToLiveSeconds="600" 
     memoryStoreEvictionPolicy="LRU"> 
     <cacheEventListenerFactory class="com.optumhealth.authorization.service.MyCacheEventListenerFactory"/> 
     </cache> 

回答

1

你至少應該設置diskPersistent =「true」,並檢查默認diskstorage的位置:在默認情況下 它在這個節點 <diskStore path="java.io.tmpdir"/> 其中java.io.tmpdir將取決於定義您的操作系統