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:
parent
0d59a15849
commit
e802f0e731
|
|
@ -8050,10 +8050,10 @@ materialized by the `org.springframework.cache.Cache` and
|
|||
|
||||
There are <<cache-store-configuration,a few implementations>> of that abstraction
|
||||
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
|
||||
caches. See <<cache-plug>> for more information on plugging in other cache
|
||||
stores/providers.
|
||||
caches (e.g. Ehcache 3.x). See <<cache-plug>> for more information on plugging in
|
||||
other cache stores/providers.
|
||||
|
||||
[IMPORTANT]
|
||||
====
|
||||
|
|
@ -8963,9 +8963,11 @@ eviction contracts.
|
|||
|
||||
|
||||
[[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`:
|
||||
|
||||
[source,xml,indent=0]
|
||||
|
|
|
|||
Loading…
Reference in New Issue