Skip to content

NEW: Hazelcast supports near cache#19

Open
rPraml wants to merge 1 commit into
ebean-orm:masterfrom
FOCONIS:near-cache-support
Open

NEW: Hazelcast supports near cache#19
rPraml wants to merge 1 commit into
ebean-orm:masterfrom
FOCONIS:near-cache-support

Conversation

@rPraml

@rPraml rPraml commented Jan 17, 2023

Copy link
Copy Markdown

Hello @rbygrave,

according to documentation https://ebean.io/docs/features/l2cache/

Ebean L2 bean caches for Redis, Hazelcast and Ignite all have a Near cache option. When this is enabled then there is a local in-process cache that is used and hit first, and then only if there is a miss on the near cache does the request go to the remote Redis | Hazelcast | Ignite cache.
could you please review this PR:

should Hazelcast support "near cache", but I could not find any code, where this should happen.

(I only found this in a test, but this makes also no sense, how @Cache(nearCache=true) should work)

So, could you check this PR, if this implementation would be acceptable?

I use the same logic for near caches as is already used for query caches

Roland

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant