v1.2.0
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
🚀 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!