-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reference cache triggering maintenance after a write (fixed #111)
This oversight caused write methods to not try to clean-up collected entries for caching using only the weak/soft reference configurations. The maintenance would be triggered after enough reads or if manually calling cleanUp(). Most of the changes are improvements to the unit tests, as test flaws allowed this bug to be introduced. Primarily the cause was due to not being strict enough when evaluating the removal notifications. The tests now highlight a slight difference in Guava & Caffeine regarding if replacing a value with the same instance triggers a notification. Other small mistakes in the reference cache tests were uncovered and fixed.
- Loading branch information
Showing
11 changed files
with
199 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.