Skip to content

Is asMap().values().stream()... counted as read operation ? #657

Answered by ben-manes
misanek asked this question in Q&A
Discussion options

You must be logged in to vote

Iterators don’t count as reads to avoid degrading the eviction policy (access time, frequency, etc). If it observes an expired entry it will skip it, but as of #487 it will also trigger a maintenance cycle to be a bit more proactive. I think you’ll be fine if you are on a semi recent version (v2.9+).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@misanek
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