Kew*_*ang 0 java xml hibernate ehcache second-level-cache
从我的sql日志文件中,我认为QueryCache的物理属性是由元素配置的:
<defaultCache
maxElementsInMemory="0"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="false"
memoryStoreEvictionPolicy="LRU"
/>
Run Code Online (Sandbox Code Playgroud)
甚至我将下面的元素添加到ehcache.xml中的另一个元素,从sql日志看来,QueryCache的物理属性仍然是由 元件.
<cache name="org.hibernate.cache.QueryCache"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="false"
memoryStoreEvictionPolicy="LRU"
/>
Run Code Online (Sandbox Code Playgroud)
我只想在内存中启用QueryCache,同时默认禁用其他(在内存中).也许是.的名字属性元素不正确?我从书<>中复制它.或者,我应该使用其他元素吗?也许有一种元素?
谢谢.
| 归档时间: |
|
| 查看次数: |
5377 次 |
| 最近记录: |