Clarify use of Ehcache
Since we have a dedicated section regarding Ehcache that is only applicable to Ehcache 2.x, this commit clarifies that Ehcache 3.x is JSR-107 compliant and the JCache support should be used with it rather than attempting to configure the Ehcache 2.x support.
This commit is contained in:
@@ -8050,10 +8050,10 @@ materialized by the `org.springframework.cache.Cache` and
|
|||||||
|
|
||||||
There are <<cache-store-configuration,a few implementations>> of that abstraction
|
There are <<cache-store-configuration,a few implementations>> of that abstraction
|
||||||
available out of the box: JDK `java.util.concurrent.ConcurrentMap` based caches,
|
available out of the box: JDK `java.util.concurrent.ConcurrentMap` based caches,
|
||||||
http://ehcache.org/[EhCache], Gemfire cache,
|
http://ehcache.org/[Ehcache 2.x], Gemfire cache,
|
||||||
https://github.com/ben-manes/caffeine/wiki[Caffeine] and JSR-107 compliant
|
https://github.com/ben-manes/caffeine/wiki[Caffeine] and JSR-107 compliant
|
||||||
caches. See <<cache-plug>> for more information on plugging in other cache
|
caches (e.g. Ehcache 3.x). See <<cache-plug>> for more information on plugging in
|
||||||
stores/providers.
|
other cache stores/providers.
|
||||||
|
|
||||||
[IMPORTANT]
|
[IMPORTANT]
|
||||||
====
|
====
|
||||||
@@ -8963,9 +8963,11 @@ eviction contracts.
|
|||||||
|
|
||||||
|
|
||||||
[[cache-store-configuration-ehcache]]
|
[[cache-store-configuration-ehcache]]
|
||||||
==== EhCache-based Cache
|
==== Ehcache-based Cache
|
||||||
|
|
||||||
The EhCache implementation is located under `org.springframework.cache.ehcache` package.
|
NOTE: Ehcache 3.x is fully JSR-107 compliant and no dedicated support is required for it.
|
||||||
|
|
||||||
|
The Ehcache 2.x implementation is located under `org.springframework.cache.ehcache` package.
|
||||||
Again, to use it, one simply needs to declare the appropriate `CacheManager`:
|
Again, to use it, one simply needs to declare the appropriate `CacheManager`:
|
||||||
|
|
||||||
[source,xml,indent=0]
|
[source,xml,indent=0]
|
||||||
|
|||||||
Reference in New Issue
Block a user