Skip to content

Conversation

dfinkel
Copy link

@dfinkel dfinkel commented May 30, 2025

No description provided.

dfinkel added 4 commits May 30, 2025 17:43
Leverage the container/heap stdlib package to manage a slice-backed
heap for a first-pass.
Add expiry support for go 1.24+ with the help of build-tags and weak
pointers.

Several key type-definitions and methods are now duplicated between a
pre-1.24 and 1.24+ file, including Add, Get, and the TypedCache type
itself.

Care has to be taken to make sure that Get doesn't return an expired
value (and Add..., Remove... and friends are also configured for removing any
expired entries before removing anything from the LRU stack).
Add a new BackendGetterWithInfo interface that allows a BackendGetter
implementation to return an expiration time as well.
Base automatically changed from consistenthash_fnv_hash_wrapper to master June 9, 2025 16:17
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.

1 participant