getListMultimapCache(String name);
+
+ /**
+ * Returns List based Multimap instance by name
+ * using provided codec for both map keys and values.
+ * Supports key-entry eviction with a given TTL value.
+ *
+ * If eviction is not required then it's better to use regular map {@link #getSetMultimap(String, Codec)}.
+ *
+ * @param name
+ * @return
+ */
+ RListMultimapCache getListMultimapCache(String name, Codec codec);
+
/**
* Returns map instance by name.
*
@@ -254,15 +280,15 @@ public interface RedissonClient {
RMap getMap(String name, Codec codec);
/**
- * Returns Set based MultiMap instance by name.
+ * Returns Set based Multimap instance by name.
*
* @param name
* @return
*/
RSetMultimap getSetMultimap(String name);
-
+
/**
- * Returns Set based MultiMap instance by name
+ * Returns Set based Multimap instance by name
* using provided codec for both map keys and values.
*
* @param name
@@ -271,6 +297,29 @@ public interface RedissonClient {
*/
RSetMultimap getSetMultimap(String name, Codec codec);
+ /**
+ * Returns Set based Multimap instance by name.
+ * Supports key-entry eviction with a given TTL value.
+ *
+ * If eviction is not required then it's better to use regular map {@link #getSetMultimap(String)}.
+ *
+ * @param name
+ * @return
+ */
+ RSetMultimapCache getSetMultimapCache(String name);
+
+ /**
+ * Returns Set based Multimap instance by name
+ * using provided codec for both map keys and values.
+ * Supports key-entry eviction with a given TTL value.
+ *
+ * If eviction is not required then it's better to use regular map {@link #getSetMultimap(String, Codec)}.
+ *
+ * @param name
+ * @return
+ */
+ RSetMultimapCache getSetMultimapCache(String name, Codec codec);
+
/**
* Returns semaphore instance by name
*
@@ -537,6 +586,13 @@ public interface RedissonClient {
*/
RScript getScript();
+ /**
+ * Returns object for remote operations
+ *
+ * @return
+ */
+ RRemoteService getRemoteSerivce();
+
/**
* Return batch object which executes group of
* command in pipeline.
diff --git a/src/main/java/org/redisson/RedissonListMultimap.java b/src/main/java/org/redisson/RedissonListMultimap.java
index 3eb98f9ea..d2e9db44e 100644
--- a/src/main/java/org/redisson/RedissonListMultimap.java
+++ b/src/main/java/org/redisson/RedissonListMultimap.java
@@ -74,7 +74,7 @@ public class RedissonListMultimap extends RedissonMultimap implement
String setName = getValuesName(keyHash);
return commandExecutor.readAsync(getName(), codec, LLEN_VALUE, setName);
} catch (IOException e) {
- throw new RuntimeException(e);
+ throw new IllegalArgumentException(e);
}
}
@@ -99,7 +99,7 @@ public class RedissonListMultimap extends RedissonMultimap implement
"return 0; ",
Arrays.