diff --git a/redisson/src/main/java/org/redisson/api/RMapCache.java b/redisson/src/main/java/org/redisson/api/RMapCache.java index 970ad0075..fc84d00e6 100644 --- a/redisson/src/main/java/org/redisson/api/RMapCache.java +++ b/redisson/src/main/java/org/redisson/api/RMapCache.java @@ -24,12 +24,11 @@ import java.util.concurrent.TimeUnit; * *
Current redis implementation doesnt have map entry eviction functionality. * Thus entries are checked for TTL expiration during any key/value/entry read operation. - * If key/value/entry expired then it doesn't returns and clean task runs asynchronous. - * Clean task deletes removes 100 expired entries at once. - * In addition there is {@link org.redisson.EvictionScheduler}. This scheduler + * If key/value/entry expired then it doesn't returns. + * Expired tasks cleaned by {@link org.redisson.EvictionScheduler}. This scheduler * deletes expired entries in time interval between 5 seconds to 2 hours.
* - *If eviction is not required then it's better to use {@link org.redisson.reactive.RedissonMapReactive}.
+ *If eviction is not required then it's better to use {@link org.redisson.RedissonMap}.
* * @author Nikita Koksharov * @@ -44,9 +43,6 @@ public interface RMapCache* Stores value mapped by key with specified time to live. * Entry expires after specified time to live. - *
- * If the map previously contained a mapping for
- * the key, the old value is replaced by the specified value.
*
* @param key - map key
* @param value - map value
@@ -63,9 +59,6 @@ public interface RMapCache
* Stores value mapped by key with specified time to live and max idle time.
* Entry expires when specified time to live or max idle time has expired.
- *
- * If the map previously contained a mapping for
- * the key, the old value is replaced by the specified value.
*
* @param key - map key
* @param value - map value
diff --git a/redisson/src/main/java/org/redisson/api/RMapCacheAsync.java b/redisson/src/main/java/org/redisson/api/RMapCacheAsync.java
index 15a067cb8..4f84ad43e 100644
--- a/redisson/src/main/java/org/redisson/api/RMapCacheAsync.java
+++ b/redisson/src/main/java/org/redisson/api/RMapCacheAsync.java
@@ -18,18 +18,17 @@ package org.redisson.api;
import java.util.concurrent.TimeUnit;
/**
- * Async interface for map-based cache with ability to set TTL for each entry via
- * {RMapCacheAsync#putAsync(K, V, long, TimeUnit)} or {RMapCacheAsync#putIfAbsentAsync(K, V, long, TimeUnit)}
+ * Map-based cache with ability to set TTL for each entry via
+ * {@link #put(Object, Object, long, TimeUnit)} or {@link #putIfAbsent(Object, Object, long, TimeUnit)}
* And therefore has an complex lua-scripts inside. Current redis implementation doesnt have eviction functionality.
+ * Current redis implementation doesnt have map entry eviction functionality.
* Thus entries are checked for TTL expiration during any key/value/entry read operation.
- * If key/value/entry expired then it doesn't returns and clean task runs asynchronous.
- * Clean task deletes removes 100 expired entries at once.
- * In addition there is {@link org.redisson.EvictionScheduler}. This scheduler
+ * If key/value/entry expired then it doesn't returns.
+ * Expired tasks cleaned by {@link org.redisson.EvictionScheduler}. This scheduler
* deletes expired entries in time interval between 5 seconds to 2 hours. If eviction is not required then it's better to use {@link org.redisson.reactive.RedissonMapReactive}. If eviction is not required then it's better to use {@link org.redisson.RedissonMap}.