Releases: jellydator/ttlcache
Releases · jellydator/ttlcache
Release list
v3.4.1
What's Changed
- Add dbcache example by @davseby in #186
- Bump golang.org/x/sync from 0.15.0 to 0.16.0 by @dependabot[bot] in #187
- Bump actions/setup-go from 5 to 6 by @dependabot[bot] in #193
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #189
- Bump github.com/stretchr/testify from 1.10.0 to 1.11.1 by @dependabot[bot] in #192
- fix: use correct type in readme.md example by @Yiming1997 in #199
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in #201
- test: avoid testing.AllocsPerRun panic with paused parallel tests by @SAY-5 in #208
- Bump actions/checkout from 6 to 7 by @dependabot[bot] in #211
- fix: correctly notify auto-cleaner when an item's TTL is shortened by @PiAreSquared in #206
New Contributors
- @Yiming1997 made their first contribution in #199
- @SAY-5 made their first contribution in #208
- @PiAreSquared made their first contribution in #206
Full Changelog: v3.4.0...v3.4.1
v3.4.0
What's Changed
- Export NewItem function by @hasfjord in #151
- Bump golang.org/x/sync from 0.8.0 to 0.9.0 by @dependabot in #156
- Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by @dependabot in #157
- feat: New
WithMaxCostoption for custom cache capacity management strategies by @dadrus in #152 - Bump golang.org/x/sync from 0.9.0 to 0.10.0 by @dependabot in #158
- fix Range (and RangeBackwards) mutex usage by @iurii-ssv in #164
- Make Cache.Get allocation-free by @yiftachkarkason in #162
- Bump golang.org/x/sync from 0.10.0 to 0.11.0 by @dependabot in #165
- Add GetOrSetFunc method by @inpos in #161
- Handle empty cache while using Range or RangeBackwards by @davseby in #176
- Allow subsequent calls to
StartandStopby @davseby in #177 - Add OnUpdate method and metrics by @davseby in #179
- Export NewItemWithOpts and bump go version in go.mod by @swithek in #180
- Bump golang.org/x/sync from 0.11.0 to 0.14.0 by @dependabot in #172
- fix: Deadlock during cost calculation by @dadrus in #173
- Rewrite expired items tests to ensure expiration for Windows by @davseby in #178
- Expose item cost by @davseby in #181
- Add examples folder with httpcache example by @davseby in #183
- Bump golang.org/x/sync from 0.14.0 to 0.15.0 by @dependabot in #182
New Contributors
- @hasfjord made their first contribution in #151
- @dadrus made their first contribution in #152
- @iurii-ssv made their first contribution in #164
- @yiftachkarkason made their first contribution in #162
- @inpos made their first contribution in #161
Full Changelog: v3.3.0...v3.4.0
v3.3.0
v3.2.1
What's Changed
- Create dependabot.yaml by @hkadakia in #128
- Add thread safety to features list by @trajan0x in #137
- Fix update of expired items by @Snawoot in #124
- Fix data race in
Itemsmethod by @hongkuancn in #146 - Exclude expired keys in data retrieval methods by @hongkuancn in #148
New Contributors
- @hkadakia made their first contribution in #128
- @trajan0x made their first contribution in #137
- @Snawoot made their first contribution in #124
- @hongkuancn made their first contribution in #146
Full Changelog: v3.2.0...v3.2.1
v3.2.0
What's Changed
- Add Support for PreviousTTL by @ShivamKumar2002 in #121
Full Changelog: v3.1.1...v3.2.0
v3.1.1
v3.1.0
Notable changes:
- Add the
GetOrSetandGetAndDeletemethods to theCachetype (@Savid, @DoubleDi) - Add the
Hasmethod to theCachetype (@gozeloglu) - Add the
Versionmethod to theItemtype (@gozeloglu) - Add the
Rangemethod to theCachetype (@gozeloglu)
v3.0.1
v2.11.1
v3.0.0
The version 3 of ttlcache includes many breaking changes, some of which improve the general usability and readability of the code, while others extend the current API with new Go features (mainly type parameters). The most notable of these additions/changes are:
- The new
Itemtype that is returned by bothGetandSetmethods. - The deletion of the
Close()method. - The rename of the
Purge()method toDeleteAll(). - The rewritten
Newfunction that now accepts functional options. It also doesn't start the automatic expired item deletion process: theStart()method needs to be explicitly called for it to be activated. - Improved event/callback registration methods.
- More predictable item deletion when the cache's capacity is reached.
- The new
Loaderinterface.
All new or updated types and functions can be found on the documentation, README, or v3 issue page.