Releases: hashicorp/golang-lru
golang-lru 2.0.7
What's Changed
- expirable LRU: fix so that Get/Peek cannot return an ok and empty value by @irenarindos in #156
- add a Resize method to 2Q by @veloting in #151
New Contributors
- @irenarindos made their first contribution in #156
- @veloting made their first contribution in #151
Full Changelog: v2.0.6...v2.0.7
golang-lru 2.0.6
This release removes calling the eviction callback when the Add
method is called with an item that is already in the cache (#154); it reverts PR #135 which caused issue #141.
What's Changed
- [COMPLIANCE] Add Copyright and License Headers by @hashicorp-copywrite in #149
- Revert #135 and add tests for eviction callback by @mgaffney in #154
Full Changelog: v2.0.5...v2.0.6
Add expirable LRU
This release adds an expirable
LRU package.
Last release of v0/v1 code base
This release is the same as v0.6.0. It allows projects depending on the v0 code to upgrade safely to v1. This is the last release of v0/v1 code. Dependent projects should upgrade to v2.
Add eviction callback on replace
This release encompasses #135
Add Values() and separate ARC
This release adds the Values()
method on caches and removes ARC from the main module so that it does not need to be imported along with the rest of the module for those concerned around its patent status.
The code/API is the same, but is now found at github.com/hashicorp/golang-lru/arc/v2
.
Reduce memory usage
Minor fixes to reduce some memory usage
Pointer to v0/v2
This is a placeholder tag to instruct people to explicitly use v0 tags or use the v2 module.
Generics
Tagging prior to v2
This is likely the last tag prior to the switch to generics and the v2
package.