question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is difference between Rmap and RLocalCachedMap

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
thiennguyen1308commented, Apr 7, 2018

Oh thanks, I finally get it. It’s nice feature bro. I’m moving all from Jedis to your Redisson. Cheers.

0reactions
mrnikocommented, Apr 9, 2018

Great! I’m closing it then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to improve performance over RMapCache in Redisson
While RLocalCachedMap can improves the read operation performance upto 45x by caching the values locally in the JVM, write operations are ...
Read more >
RMapCache (Redisson 3.7.2 API) - javadoc.io
Returns the number of entries in cache. boolean, trySetMaxSize(int maxSize). Tries to set max size of the map.
Read more >
A Guide to Redis with Redisson - Baeldung
RLocalCachedMap allows local caching of map entries. RClusteredMap allows data from a single map to be split across Redis cluster master nodes.
Read more >
What is distributed caching? - Redisson
Redisson provides the RMap interface, which has two relevant subinterfaces: RMapCache for general-purpose caches, and RLocalCachedMap with support for local ...
Read more >
7.-Distributed-collections.md · 大黑鱼/redisson.wiki - Gitee.com
If Map used mostly for read operations and/or network roundtrips are undesirable use Map with Local cache support. RMap<String, SomeObject> ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found