diff --git a/redisson/src/main/java/org/redisson/api/RMapCache.java b/redisson/src/main/java/org/redisson/api/RMapCache.java index 5df58bf73..970ad0075 100644 --- a/redisson/src/main/java/org/redisson/api/RMapCache.java +++ b/redisson/src/main/java/org/redisson/api/RMapCache.java @@ -53,7 +53,7 @@ public interface RMapCache extends RMap, RMapCacheAsync { * @param ttl - time to live for key\value entry. * If 0 then stores infinitely. * @param ttlUnit - time unit - * @return previous associated value + * @return current associated value */ V putIfAbsent(K key, V value, long ttl, TimeUnit ttlUnit); @@ -79,7 +79,7 @@ public interface RMapCache extends RMap, RMapCacheAsync { * if maxIdleTime and ttl params are equal to 0 * then entry stores infinitely. * - * @return previous associated value + * @return current associated value */ V putIfAbsent(K key, V value, long ttl, TimeUnit ttlUnit, long maxIdleTime, TimeUnit maxIdleUnit); @@ -137,7 +137,8 @@ public interface RMapCache extends RMap, RMapCacheAsync { * @param ttl - time to live for key\value entry. * If 0 then stores infinitely. * @param ttlUnit - time unit - * @return true if value has been set successfully + * @return true if key is a new key in the hash and value was set. + * false if key already exists in the hash and the value was updated. */ boolean fastPut(K key, V value, long ttl, TimeUnit ttlUnit); @@ -163,7 +164,8 @@ public interface RMapCache extends RMap, RMapCacheAsync { * if maxIdleTime and ttl params are equal to 0 * then entry stores infinitely. - * @return previous associated value + * @return true if key is a new key in the hash and value was set. + * false if key already exists in the hash and the value was updated. */ boolean fastPut(K key, V value, long ttl, TimeUnit ttlUnit, long maxIdleTime, TimeUnit maxIdleUnit);