Repository navigation
Highlights
- Hardened concurrent cache operations and capacity enforcement across Basic, FIFO, LRU, and LFU policies.
- Fixed TTL expiration, cleanup scheduling, LFU heap indexing, metrics, configuration copying, and memory-limit handling.
- Added idempotent
Cache.Close()lifecycle support. - Upgraded the module and CI workflow to Go 1.25.
- Colocated unit tests with their packages and raised aggregate statement coverage to 99.3%.
- Added pull-request coverage reporting with a 90% minimum and a no-regression guardrail against the base branch.
Performance
Benchmarks were rerun on Go 1.25.9. Representative results include CacheGet at 31.83 ns/op with zero allocations and CacheSet at 263.7 ns/op.
See the README benchmark table and PR #3 for the full details.