2012-10-01 31 views
0

我配置了ehcache進入休眠二級緩存以使用Terracotta服務器。一切工作正常,除了查詢緩存的UpdateTimestampsCache只是沒有顯示在開發控制檯中。我們使用Hibernate 3.6.10和ehcache 2.6.0。UpdateTimestampsCache沒有出現在兵馬俑開發控制檯

我看到所有的實體,集合,查詢和StandardQueryCache,但沒有看到org.hibernate.cache.UpdateTimestampsCache。我知道時間戳高速緩存存在並正在使用,因爲我可以使用儀器庫中的指標在其上看到它的統計信息。

任何想法? 謝謝!

這裏是我的ehcache.xml中配置

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd" 
    updateCheck="false" 
    name="Hibernate-CacheManager" 
    monitoring="autodetect" 
    dynamicConfig="true">  

<terracottaConfig url="localhost:9510" /> 

<defaultCache 
    eternal="false" 
    overflowToDisk="false" 
    maxElementsInMemory="50000" 
    timeToIdleSeconds="7200" 
    timeToLiveSeconds="0"> 

    <cacheDecoratorFactory 
     class="com.yammer.metrics.ehcache.InstrumentedEhcacheFactory" /> 

    <terracotta/> 
</defaultCache> 


<cache 
    name="org.hibernate.cache.UpdateTimestampsCache" 
    eternal="false" 
    overflowToDisk="false" 
    maxElementsInMemory="500" 
    timeToIdleSeconds="7200" 
    timeToLiveSeconds="0"> 

    <cacheDecoratorFactory 
     class="com.yammer.metrics.ehcache.InstrumentedEhcacheFactory" /> 

    <terracotta/> 

</cache> 

<cache 
    name="org.hibernate.cache.StandardQueryCache" 
    eternal="false" 
    overflowToDisk="false" 
    maxElementsInMemory="50000" 
    timeToIdleSeconds="7200" 
    timeToLiveSeconds="0"> 

    <cacheDecoratorFactory 
     class="com.yammer.metrics.ehcache.InstrumentedEhcacheFactory" /> 

    <terracotta/> 

</cache> 
</ehcache> 

回答