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

Revert #135 and add tests for eviction callback #154

Merged
merged 2 commits into from Aug 24, 2023
Merged

Conversation

mgaffney
Copy link
Member

This reverts #135 (commit d260bc0) which is the root cause of #141. This
also adds tests to verify that calling Add, ContainsOrAdd, or PeekOrAdd
with a key that is already in the cache does not trigger an eviction or
an eviction callback.

Resolves #141, closes #152.

This adds tests to verify that calling Add, ContainsOrAdd, or PeekOrAdd
with a key that is already in the cache does not trigger an eviction or
an eviction callback.
@mgaffney mgaffney merged commit 8f8764f into master Aug 24, 2023
3 checks passed
@mgaffney mgaffney deleted the mgaffney/issue-141 branch August 24, 2023 13:18
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.

onEvicted is called with incorrect item when a previous Add overwrites an existing item
1 participant