2011-08-25 87 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将取决于定义您的操作系统