Skip to content

invalidateAll question #835

Answered by ben-manes
joanbalaguero asked this question in Q&A
Dec 9, 2022 · 1 comments · 14 replies
Discussion options

You must be logged in to vote

While unfortunately this won't solve your problem, please consider upgrading to a recent release (v2 for Java 8, else v3).

This times of 4s (no removalListener) and 18 seconds (with removalListener) are ok? Much more important for us is not the time spent to remove the entries, but the fact the entire cache is locked during this time.

The removal listener call is delegated to the configured executor, so within the invalidation it should be immediate. You might be suffering if you configured to a direct executor (e.g. Runnable::run) or thread scheduling is causing the invalidation to be deprioritized.

The cache should still accept read/write operations and only locked wrt the eviction po…

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@ben-manes
Comment options

@joanbalaguero
Comment options

@ben-manes
Comment options

@ben-manes
Comment options

@ben-manes
Comment options

Answer selected by ben-manes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants