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

Use Caffeine cache features to improve invalidation of ExpirationKCVSCache #3218

Open
porunov opened this issue Sep 22, 2022 · 0 comments
Open

Comments

@porunov
Copy link
Member

porunov commented Sep 22, 2022

This is a follow-up issue to #871 and #3198.
Current ExpirationKCVSCache has it's own Cleanup thread which cleanups (invalidates) the cache using probabilistic approach with a fixed probability of 1 to 1000.
As a minimum we could use direct Caffeine features for such periodic invalidation as noted here.
That said, I would also recommend checking the current invalidation complexity of Caffeine cache. If it's small enough - we might benefit from removing probabilistic invalidation all together and call .invalidate directly. My thoughts on it are described here.

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

No branches or pull requests

1 participant