grails 1.3.9應用程序中的ehcache默認值是什麼?特別是我對查詢緩存值感興趣;我通過postgres的psql刪除了幾行,並沒有看到我的應用程序中反映的更改。我沒有將ehcache.xml文件添加到conf目錄。我甚至重新啓動了Grails應用程序,數據仍然顯示在報告中。是否有任何緩存文件可以作爲解決方法刪除?Grails 1.3.9應用程序中的EHCache默認值
更新:我添加了以下ehcache.xml中的配置文件:
<?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ehcache.xsd" >
<diskStore path="/tmp/ehcache_t2"/>
<cacheManagerEventListenerFactory class="" properties=""/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToLiveSeconds="120">
</defaultCache>
<cache name="org.hibernate.cache.UpdateTimestampsCache"
maxElementsInMemory="10000"
timeToIdleSeconds="300"
/>
<cache name="org.hibernate.cache.StandardQueryCache"
maxElementsInMemory="10000"
timeToIdleSeconds="30"
/>
</ehcache>
但StandardQueryCache的timeToIdleSeconds = 「30」 不工作要麼。
Ehcache用作直寫式高速緩存。如果您通過psql直接刪除行,緩存無法知道它。我希望緩存保持不變。 – GreyBeardedGeek 2012-08-05 05:36:33