diff --git a/redisson/src/main/java/org/redisson/api/RMapCache.java b/redisson/src/main/java/org/redisson/api/RMapCache.java index 4b253ff41..b48697570 100644 --- a/redisson/src/main/java/org/redisson/api/RMapCache.java +++ b/redisson/src/main/java/org/redisson/api/RMapCache.java @@ -15,12 +15,11 @@ */ package org.redisson.api; -import java.util.Map; -import java.util.concurrent.TimeUnit; - import org.redisson.api.map.MapWriter; import org.redisson.api.map.event.MapEntryListener; +import java.util.concurrent.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)} @@ -267,20 +266,6 @@ public interface RMapCache extends RMap, RMapCacheAsync, RDest */ void putAll(java.util.Map map, long ttl, TimeUnit ttlUnit); - /** - * Associates the specified value with the specified key - * in batch. - *

- * If {@link MapWriter} is defined then new map entries are stored in write-through mode. - * - * @param map - mappings to be stored in this map - * @param ttl - time to live for all key\value entries. - * If 0 then stores infinitely. - * @param ttlUnit - time unit - * @return void - */ - RFuture putAllAsync(Map map, long ttl, TimeUnit ttlUnit); - /** * Returns the number of entries in cache. * This number can reflects expired entries too diff --git a/redisson/src/main/java/org/redisson/api/RMapCacheAsync.java b/redisson/src/main/java/org/redisson/api/RMapCacheAsync.java index 3b868b1c4..aceba4fba 100644 --- a/redisson/src/main/java/org/redisson/api/RMapCacheAsync.java +++ b/redisson/src/main/java/org/redisson/api/RMapCacheAsync.java @@ -15,6 +15,9 @@ */ package org.redisson.api; +import org.redisson.api.map.MapWriter; + +import java.util.Map; import java.util.concurrent.TimeUnit; /** @@ -157,6 +160,20 @@ public interface RMapCacheAsync extends RMapAsync { */ RFuture putAsync(K key, V value, long ttl, TimeUnit ttlUnit, long maxIdleTime, TimeUnit maxIdleUnit); + /** + * Associates the specified value with the specified key + * in batch. + *

+ * If {@link MapWriter} is defined then new map entries are stored in write-through mode. + * + * @param map - mappings to be stored in this map + * @param ttl - time to live for all key\value entries. + * If 0 then stores infinitely. + * @param ttlUnit - time unit + * @return void + */ + RFuture putAllAsync(Map map, long ttl, TimeUnit ttlUnit); + /** * Stores value mapped by key with specified time to live. * Entry expires after specified time to live.