From f93775ec12af18b75324baa2454b786ab6004dab Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 31 Aug 2016 10:43:52 +0200 Subject: [PATCH] Clarify scope of Caffeine's CacheLoader Closes gh-6770 --- spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 412fd6006d7..abcac8dd9b1 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -3951,7 +3951,10 @@ size of 500 and a _time to live_ of 10 minutes ---- Besides, if a `com.github.benmanes.caffeine.cache.CacheLoader` bean is defined, it is -automatically associated to the `CaffeineCacheManager`. +automatically associated to the `CaffeineCacheManager`. Since the `CacheLoader` is +going to be associated to _all_ caches managed by the cache manager, it must be defined +as `CacheLoader`. Any other generic type will be ignored by the +auto-configuration.