Skip to content
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

Closed
mrniko opened this issue Aug 25, 2016 · 9 comments
Closed

Implement LocalCachedMap #592

mrniko opened this issue Aug 25, 2016 · 9 comments
Labels
Milestone

Comments

@mrniko
Copy link
Member

mrniko commented Aug 25, 2016

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.

@mrniko mrniko added the feature label Aug 25, 2016
@doggie1989
Copy link

guava cache!

@mrniko
Copy link
Member Author

mrniko commented Aug 25, 2016

@doggie1989 I think guava cache is overcomplicated and too heavy as dependency for Redisson

@doggie1989
Copy link

@mrniko it is simple,we are using guava cache as local cache for redisson.

@mrniko mrniko added this to the 2.3.1 milestone Aug 29, 2016
@ben-manes
Copy link

Supports LRU and LFU eviction policy.

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.

@mrniko
Copy link
Member Author

mrniko commented Aug 31, 2016

@ben-manes Thanks for advice. I'm really appreciate it!

@innocentliny
Copy link

Is "LocalCachedMap" the "near cache" that mentioned at "Moving from Hazelcast to Redis"?

@jackygurui
Copy link
Member

Yes

@mrniko
Copy link
Member Author

mrniko commented Jul 28, 2017

@innocentliny there is also LocalCachedMapCache for MapCache object

@johnou
Copy link
Contributor

johnou commented Jul 28, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

6 participants