|
|
@ -193,7 +193,7 @@ public class CaffeineCacheManager implements CacheManager { |
|
|
|
* Set the common cache type that this cache manager builds to async. |
|
|
|
* Set the common cache type that this cache manager builds to async. |
|
|
|
* This applies to {@link #setCacheNames} as well as on-demand caches. |
|
|
|
* This applies to {@link #setCacheNames} as well as on-demand caches. |
|
|
|
* <p>Individual cache registrations (such as {@link #registerCustomCache(String, AsyncCache)} |
|
|
|
* <p>Individual cache registrations (such as {@link #registerCustomCache(String, AsyncCache)} |
|
|
|
* and {@link #registerCustomCache(String, com.github.benmanes.caffeine.cache.Cache)} |
|
|
|
* and {@link #registerCustomCache(String, com.github.benmanes.caffeine.cache.Cache)}) |
|
|
|
* are not dependent on this setting. |
|
|
|
* are not dependent on this setting. |
|
|
|
* <p>By default, this cache manager builds regular native Caffeine caches. |
|
|
|
* <p>By default, this cache manager builds regular native Caffeine caches. |
|
|
|
* To switch to async caches which can also be used through the synchronous API |
|
|
|
* To switch to async caches which can also be used through the synchronous API |
|
|
@ -322,7 +322,7 @@ public class CaffeineCacheManager implements CacheManager { |
|
|
|
* Build a common {@link CaffeineCache} instance for the specified cache name, |
|
|
|
* Build a common {@link CaffeineCache} instance for the specified cache name, |
|
|
|
* using the common Caffeine configuration specified on this cache manager. |
|
|
|
* using the common Caffeine configuration specified on this cache manager. |
|
|
|
* <p>Delegates to {@link #adaptCaffeineCache} as the adaptation method to |
|
|
|
* <p>Delegates to {@link #adaptCaffeineCache} as the adaptation method to |
|
|
|
* Spring's cache abstraction (allowing for centralized decoration etc), |
|
|
|
* Spring's cache abstraction (allowing for centralized decoration etc.), |
|
|
|
* passing in a freshly built native Caffeine Cache instance. |
|
|
|
* passing in a freshly built native Caffeine Cache instance. |
|
|
|
* @param name the name of the cache |
|
|
|
* @param name the name of the cache |
|
|
|
* @return the Spring CaffeineCache adapter (or a decorator thereof) |
|
|
|
* @return the Spring CaffeineCache adapter (or a decorator thereof) |
|
|
|