Remove support for EhCache 2
Closes gh-28588
This commit is contained in:
@@ -860,7 +860,6 @@ Additional, cache-specific metrics are also available.
|
||||
The following cache libraries are supported:
|
||||
|
||||
* Caffeine
|
||||
* EhCache 2
|
||||
* Hazelcast
|
||||
* Any compliant JCache (JSR-107) implementation
|
||||
* Redis
|
||||
|
||||
@@ -277,7 +277,6 @@ boot-features-caching=features.caching
|
||||
boot-features-caching-provider=features.caching.provider
|
||||
boot-features-caching-provider-generic=features.caching.provider.generic
|
||||
boot-features-caching-provider-jcache=features.caching.provider.jcache
|
||||
boot-features-caching-provider-ehcache2=features.caching.provider.ehcache2
|
||||
boot-features-caching-provider-hazelcast=features.caching.provider.hazelcast
|
||||
boot-features-caching-provider-infinispan=features.caching.provider.infinispan
|
||||
boot-features-caching-provider-couchbase=features.caching.provider.couchbase
|
||||
@@ -784,7 +783,6 @@ features.caching=io.caching
|
||||
features.caching.provider=io.caching.provider
|
||||
features.caching.provider.generic=io.caching.provider.generic
|
||||
features.caching.provider.jcache=io.caching.provider.jcache
|
||||
features.caching.provider.ehcache2=io.caching.provider.ehcache2
|
||||
features.caching.provider.hazelcast=io.caching.provider.hazelcast
|
||||
features.caching.provider.infinispan=io.caching.provider.infinispan
|
||||
features.caching.provider.couchbase=io.caching.provider.couchbase
|
||||
|
||||
@@ -41,7 +41,6 @@ If you have not defined a bean of type `CacheManager` or a `CacheResolver` named
|
||||
|
||||
. <<io#io.caching.provider.generic,Generic>>
|
||||
. <<io#io.caching.provider.jcache,JCache (JSR-107)>> (EhCache 3, Hazelcast, Infinispan, and others)
|
||||
. <<io#io.caching.provider.ehcache2,EhCache 2.x>>
|
||||
. <<io#io.caching.provider.hazelcast,Hazelcast>>
|
||||
. <<io#io.caching.provider.infinispan,Infinispan>>
|
||||
. <<io#io.caching.provider.couchbase,Couchbase>>
|
||||
@@ -54,7 +53,7 @@ Use this property if you need to <<io#io.caching.provider.none,disable caching a
|
||||
|
||||
TIP: Use the `spring-boot-starter-cache` "`Starter`" to quickly add basic caching dependencies.
|
||||
The starter brings in `spring-context-support`.
|
||||
If you add dependencies manually, you must include `spring-context-support` in order to use the JCache, EhCache 2.x, or Caffeine support.
|
||||
If you add dependencies manually, you must include `spring-context-support` in order to use the JCache or Caffeine support.
|
||||
|
||||
If the `CacheManager` is auto-configured by Spring Boot, you can further tune its configuration before it is fully initialized by exposing a bean that implements the `CacheManagerCustomizer` interface.
|
||||
The following example sets a flag to say that `null` values should be passed down to the underlying map:
|
||||
@@ -112,22 +111,6 @@ No further customization is applied to it.
|
||||
|
||||
|
||||
|
||||
[[io.caching.provider.ehcache2]]
|
||||
==== EhCache 2.x
|
||||
https://www.ehcache.org/[EhCache] 2.x is used if a file named `ehcache.xml` can be found at the root of the classpath.
|
||||
If EhCache 2.x is found, the `EhCacheCacheManager` provided by the `spring-boot-starter-cache` "`Starter`" is used to bootstrap the cache manager.
|
||||
An alternate configuration file can be provided as well, as shown in the following example:
|
||||
|
||||
[source,yaml,indent=0,subs="verbatim",configprops,configblocks]
|
||||
----
|
||||
spring:
|
||||
cache:
|
||||
ehcache:
|
||||
config: "classpath:config/another-config.xml"
|
||||
----
|
||||
|
||||
|
||||
|
||||
[[io.caching.provider.hazelcast]]
|
||||
==== Hazelcast
|
||||
Spring Boot has <<io#io.hazelcast,general support for Hazelcast>>.
|
||||
|
||||
Reference in New Issue
Block a user