From d77f5ccbd3ba47043d956c60b4096f6f37081d8e Mon Sep 17 00:00:00 2001 From: Nikita Date: Thu, 4 Oct 2018 12:05:03 +0300 Subject: [PATCH 1/2] netty updated --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 941923ec2..71c0ed862 100644 --- a/pom.xml +++ b/pom.xml @@ -131,7 +131,7 @@ io.netty netty-bom - 4.1.29.Final + 4.1.30.Final pom import From 83235853bf6bd13354c28b5593a03736756a71ec Mon Sep 17 00:00:00 2001 From: Nikita Date: Thu, 4 Oct 2018 12:05:10 +0300 Subject: [PATCH 2/2] refactoring --- .../reactive/RedissonSetCacheReactive.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/redisson/src/main/java/org/redisson/reactive/RedissonSetCacheReactive.java b/redisson/src/main/java/org/redisson/reactive/RedissonSetCacheReactive.java index 8e193b224..0c155b8ec 100644 --- a/redisson/src/main/java/org/redisson/reactive/RedissonSetCacheReactive.java +++ b/redisson/src/main/java/org/redisson/reactive/RedissonSetCacheReactive.java @@ -19,7 +19,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; -import java.util.concurrent.TimeUnit; import org.reactivestreams.Publisher; import org.redisson.RedissonSetCache; @@ -35,20 +34,6 @@ import io.netty.buffer.ByteBuf; import reactor.rx.Streams; /** - *

Set-based cache with ability to set TTL for each entry via - * {@link #add(Object, long, TimeUnit)} method. - * And therefore has an complex lua-scripts inside. - * Uses map(value_hash, value) to tie with sorted set which contains expiration record for every value with TTL. - *

- * - *

Current Redis implementation doesn't have set entry eviction functionality. - * Thus values are checked for TTL expiration during any value read operation. - * If entry expired then it doesn't returns and clean task runs hronous. - * Clean task deletes removes 100 expired entries at once. - * In addition there is {@link org.redisson.eviction.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.api.RSet}.

* * @author Nikita Koksharov *