File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
spring-context-support/src/main/java/org/springframework/cache/ehcache Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 50
50
* <p>Note: If the named Cache instance is found, the properties will be ignored and the
51
51
* Cache instance will be retrieved from the CacheManager.
52
52
*
53
- * <p>Note: As of Spring 4.1 , Spring's EhCache support requires EhCache 2.5 or higher.
53
+ * <p>Note: As of Spring 5.0 , Spring's EhCache support requires EhCache 2.10 or higher.
54
54
*
55
55
* @author Juergen Hoeller
56
56
* @author Dmitriy Kopylenko
@@ -84,10 +84,9 @@ public class EhCacheFactoryBean extends CacheConfiguration implements FactoryBea
84
84
private Ehcache cache ;
85
85
86
86
87
- @ SuppressWarnings ("deprecation" )
88
87
public EhCacheFactoryBean () {
89
88
setMaxEntriesLocalHeap (10000 );
90
- setMaxElementsOnDisk (10000000 );
89
+ setMaxEntriesLocalDisk (10000000 );
91
90
setTimeToLiveSeconds (120 );
92
91
setTimeToIdleSeconds (120 );
93
92
}
You can’t perform that action at this time.
0 commit comments