Skip to content

Releases: elastic/go-freelru

v0.16.0

20 Nov 09:55
v0.16.0
3b73f42
Compare
Choose a tag to compare
  • Use a fast modulo algorithm to calculate the bucket (#60)
  • Add new function GetWithRefresh() (#64)

v0.15.0

24 Oct 07:10
v0.15.0
516f484
Compare
Choose a tag to compare
  • Fixed regressions (race conditions) introduced with v0.14.0. Affected functions:
    • Purge()
    • PurgeExpired()
    • SyncedLRU.Peek()
    • SyncedLRU.Contains()
    • SyncedLRU.Keys()
    • ShardedLRU.Keys()

v0.14.0

15 Oct 12:42
v0.14.0
3f63cb1
Compare
Choose a tag to compare

DO NOT USE - INTRODUCES REGRESSIONS FIXED IN v0.15.0

  • Update dependencies
  • Add RemoveOldest()
  • Add PurgeExpired()
  • Keys() evict expired items, returned keys doesn't include expired keys any more
  • Purge() now evicts all items
  • Get(), Contains() and Peek() evict found item if expired

Release v0.13.0

20 Mar 17:46
v0.13.0
Compare
Choose a tag to compare
  • Fix addMetrics() of ShardedLRU
  • Add stress test for ShardedLRU with lifetime
  • Add a helping comment to the panic() call

v0.12.0

20 Feb 12:13
Compare
Choose a tag to compare
  • Add Metrics() and GetMetrics() to Cache interface

v0.11.0

10 Jan 12:00
Compare
Choose a tag to compare
  • Improve ShardedLRU in speed
  • Use one contiguous block of memory for ShardedLRU
  • Improve and extend benchmarks

v0.10.0

04 Jan 10:27
Compare
Choose a tag to compare
  • added linting via golangci-lint (use make lint)
  • added Github CI for running the linter, the tests and the benchmarks

v0.9.0

02 Jan 18:40
Compare
Choose a tag to compare
  • Added SyncedLRU, a thread-safe exact LRU wrapped around LRU for low concurrency situations.
  • Added ShardedLRU, a thread-safe sharded LRU to avoid lock contention for high concurrency situations.
  • Added parallel benchmarks.
  • Added benchmarks of several other LRU/cache implementations.

v0.6.0

30 Mar 11:06
Compare
Choose a tag to compare

Rename package go_freelru to freelru.

v0.5.0

29 Mar 10:28
Compare
Choose a tag to compare

Fix a serious issue that broke insert-after-evict in the Add() function.