Skip to content

v1.2.0

Latest
Compare
Choose a tag to compare
@maypok86 maypok86 released this 12 Mar 20:02
· 2 commits to main since this release

1.2.0 - 2024-03-12

The main innovation of this release is the addition of an Extension, which makes it easy to add a huge number of features to otter.

Usage example:

key := 1
...
entry, ok := cache.Extension().GetEntry(key)
...
key := entry.Key()
value := entry.Value()
cost := entry.Cost()
expiration := entry.Expiration()
ttl := entry.TTL()
hasExpired := entry.HasExpired()

✨️Features

  • Added DeletionListener to the builder (#63)
  • Added Extension (#56)

🚀 Improvements

  • Added support for Go 1.22
  • Memory consumption with small cache sizes is reduced to the level of other libraries (#66)

Contributors

We'd like to thank all the contributors who worked on this release!

@maypok86 @Aoang