我的Ehcache配置开始是这样的:春季4.1.7和群集ehcache配置可能吗?
<ehcache maxBytesLocalHeap="200M" updateCheck="false">
遇到错误,如“maxEntriesLocalHeap不兼容maxBytesLocalHeap上高速缓存管理器设置”后,我看着的弹簧上下文支持来源:
@SuppressWarnings("deprecation")
public EhCacheFactoryBean() {
setMaxEntriesLocalHeap(10000);
setMaxElementsOnDisk(10000000);
setTimeToLiveSeconds(120);
setTimeToIdleSeconds(120);
}
到setMaxElementsOnDisk该呼叫被评价是这样的:
void net.sf.ehcache.config.CacheConfiguration.setMaxElementsOnDisk(int maxElementsOnDisk)
Deprecated. use setMaxEntriesLocalDisk(long) for unclustered caches and setMaxEntriesInCache(long) for clustered caches.
Sets the maximum number elements on Disk. 0 means unlimited.
This property can be modified dynamically while the cache is operating.
Parameters:
maxElementsOnDisk the maximum number of Elements to allow on the disk. 0 means unlimited.
这是否意味着春季使用到4.1.7与其依赖ehcache一起2.9.1一个聚簇缓存是不可能的使用弹簧EhCacheFactoryBean?
最好的问候, 卡斯滕