New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement LocalCachedMap #592
Comments
guava cache! |
@doggie1989 I think guava cache is overcomplicated and too heavy as dependency for Redisson |
@mrniko it is simple,we are using guava cache as local cache for redisson. |
You might want to consider TinyLFU to capture frequency in a efficient, compact manner. Or you might try Redis' experimental approach. If you also want concurrency than off-the-shelf is probably preferable. |
@ben-manes Thanks for advice. I'm really appreciate it! |
Is "LocalCachedMap" the "near cache" that mentioned at "Moving from Hazelcast to Redis"? |
Yes |
@innocentliny there is also LocalCachedMapCache for MapCache object |
Unfortunately the Redis hash in LocalCachedMapCache is unbounded which depending on usage may not be suitable. We created a simple bounded hash available here #985 |
Supports LRU and LFU eviction policy.
Supports time to live and max idle time support.
Supports size limitation. If cache max size reached then elements evicted according eviction policy and/or object TTL.
If element has been added/removed then invalidation message sent to all LocalCachedMap instances and element evicted in all of them.
The text was updated successfully, but these errors were encountered: