diff --git a/src/main/java/org/springframework/data/redis/cache/RedisCacheManager.java b/src/main/java/org/springframework/data/redis/cache/RedisCacheManager.java index 985e93e7e..ea0630b3b 100644 --- a/src/main/java/org/springframework/data/redis/cache/RedisCacheManager.java +++ b/src/main/java/org/springframework/data/redis/cache/RedisCacheManager.java @@ -106,7 +106,9 @@ public class RedisCacheManager extends AbstractTransactionSupportingCacheManager /** * Specify the set of cache names for this CacheManager's 'static' mode.
* The number of caches and their names will be fixed after a call to this method, with no creation of further cache - * regions at runtime. + * regions at runtime.
+ * Calling this with a {@code null} or empty collection argument resets the mode to 'dynamic', allowing for further + * creation of caches again. */ public void setCacheNames(Collection cacheNames) {