From 3c9b79878f2346a2c648f270ede8ce4e6e08ec36 Mon Sep 17 00:00:00 2001 From: Nikita Date: Tue, 15 Nov 2016 13:59:57 +0300 Subject: [PATCH] Comments fixed --- redisson/src/main/java/org/redisson/api/RMapCache.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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);