|
|
|
@ -16,6 +16,7 @@ import java.util.concurrent.ConcurrentMap;
|
|
|
|
|
import java.util.concurrent.ExecutionException;
|
|
|
|
|
|
|
|
|
|
import org.junit.Assert;
|
|
|
|
|
import org.junit.Assume;
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
import org.redisson.api.RFuture;
|
|
|
|
|
import org.redisson.api.RMap;
|
|
|
|
@ -155,6 +156,7 @@ public class RedissonMapTest extends BaseTest {
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void testValueSize() {
|
|
|
|
|
Assume.assumeTrue(RedisRunner.getDefaultRedisServerInstance().getRedisVersion().compareTo("3.2.0") > 0);
|
|
|
|
|
RMap<String, String> map = redisson.getMap("getAll");
|
|
|
|
|
map.put("1", "1234");
|
|
|
|
|
assertThat(map.valueSize("4")).isZero();
|
|
|
|
|