From d0a0a6a78b24293e103ff9691495429f5c5420a1 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 18 Mar 2015 10:48:15 +0100 Subject: [PATCH] DATAREDIS-383 - Improve JavaDoc of RedisCacheManager. Extended description on setCacheNames(..). Original pull request: #132. --- .../springframework/data/redis/cache/RedisCacheManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {