What is difference between Rmap and RLocalCachedMap
See original GitHub issueI have a DB with 100k hashmap. And I run some 10k, 100k loop test to compare time between getting by RMap and getting by RmapCached redissonRMap.txt redissonUseLocalCached.txt
-
I saw no differences in benchmark time. Am i make a wrong config or something
-
When I use RMapLocalCached, why redisson keep getting result from my Redis DB, I think it should get result from some local variable instead of connecting to Redis DB and get result ?
-
I use
LocalCachedMapOptions.defaults().cacheSize(0).timeToLive(100000) .evictionPolicy(LocalCachedMapOptions.EvictionPolicy.NONE) .syncStrategy(LocalCachedMapOptions.SyncStrategy.NONE) .reconnectionStrategy(LocalCachedMapOptions.ReconnectionStrategy.NONE)
, But when i change a value in Redis DB by redis-cli, redisson immediately get a changed value. ? Thanks.
JDK 1.8_0161 Redisson 3.6.3
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Oh thanks, I finally get it. It’s nice feature bro. I’m moving all from Jedis to your Redisson. Cheers.
Great! I’m closing it then.