Skip to content

Commit e8b5374

Browse files
committed
Require EhCache 2.10+
Issue: SPR-13794
1 parent d84b989 commit e8b5374

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-context-support/src/main/java/org/springframework/cache/ehcache/EhCacheFactoryBean.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* <p>Note: If the named Cache instance is found, the properties will be ignored and the
5151
* Cache instance will be retrieved from the CacheManager.
5252
*
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.
5454
*
5555
* @author Juergen Hoeller
5656
* @author Dmitriy Kopylenko
@@ -84,10 +84,9 @@ public class EhCacheFactoryBean extends CacheConfiguration implements FactoryBea
8484
private Ehcache cache;
8585

8686

87-
@SuppressWarnings("deprecation")
8887
public EhCacheFactoryBean() {
8988
setMaxEntriesLocalHeap(10000);
90-
setMaxElementsOnDisk(10000000);
89+
setMaxEntriesLocalDisk(10000000);
9190
setTimeToLiveSeconds(120);
9291
setTimeToIdleSeconds(120);
9392
}

0 commit comments

Comments
 (0)