Skip to content

Commit c8632f1

Browse files
committed
Clarify scope of Guava's CacheLoader
Closes gh-6778
1 parent 69e96c6 commit c8632f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3336,7 +3336,10 @@ size of 500 and a _time to live_ of 10 minutes
33363336
----
33373337

33383338
Besides, if a `com.google.common.cache.CacheLoader` bean is defined, it is automatically
3339-
associated to the `GuavaCacheManager`.
3339+
associated to the `GuavaCacheManager`. Since the `CacheLoader` is going to be associated
3340+
to _all_ caches managed by the cache manager, it must be defined as
3341+
`CacheLoader<Object, Object>`. Any other generic type will be ignored by the
3342+
auto-configuration.
33403343

33413344

33423345

0 commit comments

Comments
 (0)