From e802f0e73111ea80fabe812e2f73d357f6823daa Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 16 Aug 2016 14:00:13 +0200 Subject: [PATCH] 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. --- src/asciidoc/integration.adoc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/asciidoc/integration.adoc b/src/asciidoc/integration.adoc index b6e17173a61..dfe99bb3f48 100644 --- a/src/asciidoc/integration.adoc +++ b/src/asciidoc/integration.adoc @@ -8050,10 +8050,10 @@ materialized by the `org.springframework.cache.Cache` and There are <> 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 <> for more information on plugging in other cache -stores/providers. +caches (e.g. Ehcache 3.x). See <> 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]