ehcache.xml에서 querycache를 구성하는 방법
-
09-09-2019 - |
문제
내 SQL 로그 파일에서 QueryCache의 물리적 특성은 요소로 구성된다고 생각합니다.
<defaultCache
maxElementsInMemory="0"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="false"
memoryStoreEvictionPolicy="LRU"
/>
그리고 심지어 아래 요소를 아래에 추가합니다. ehcache.xml, SQL 로그에서 QueryCache의 물리적 특성은 여전히 요소.
<cache name="org.hibernate.cache.QueryCache"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="false"
memoryStoreEvictionPolicy="LRU"
/>
메모리에서 QueryCache를 활성화하고 기본적으로 다른 사람 (메모리)을 비활성화하고 싶습니다. 아마도 이름 속성 요소가 정확하지 않습니까? 나는 그것을 책 <>에서 복사한다. 아니면 다른 요소를 사용해야합니까? 어쩌면 일종의 요소가 있습니까?
감사.
해결책
try : name = "org.hibernate.cache.standardQueryCache"
제휴하지 않습니다 StackOverflow