Clarify scope of Caffeine's CacheLoader

Closes gh-6770
This commit is contained in:
Stephane Nicoll 2016-08-31 10:43:52 +02:00
parent cf07d19ed4
commit f93775ec12
1 changed files with 4 additions and 1 deletions

View File

@ -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<Object, Object>`. Any other generic type will be ignored by the
auto-configuration.