v2.4.2
- Revert eager pre-allocation of the
sampledLFUkeyCostsmap (#482), which allocatedNumCounters/10map buckets at boot and caused a large RSS regression for caches with highNumCounters(#494, fixes #493)
Full Changelog: https://github.com/dgraph-io/ristretto/compare/v2.4.1...v2.4.2
v2.4.1
- Pre-allocate
keyCostsmap insampledLFU(#482)
- Handle mremap size mismatch on Linux s390x (#491)
Full Changelog: https://github.com/dgraph-io/ristretto/compare/v2.4.0...v2.4.1
v2.4.0
- feat: add value iterator by @SkArchon in https://github.com/dgraph-io/ristretto/pull/475
- fix: allow custom key types with underlying types in Key constraint by @matthewmcneely in https://github.com/dgraph-io/ristretto/pull/478
- chore(deps): Update actions/checkout action to v5 by @renovate[bot] in https://github.com/dgraph-io/ristretto/pull/464
- chore(deps): Update actions/setup-go action to v6 by @renovate[bot] in https://github.com/dgraph-io/ristretto/pull/468
- chore(deps): Update go minor and patch by @renovate[bot] in https://github.com/dgraph-io/ristretto/pull/467
- chore: update trunk for 1.25 toolchain by @matthewmcneely in https://github.com/dgraph-io/ristretto/pull/471
- chore: update readme and trunk config by @matthewmcneely in https://github.com/dgraph-io/ristretto/pull/474
- chore(test): fix test files compilation on 32-bit archs (#465) by @jas4711 in https://github.com/dgraph-io/ristretto/pull/470
- chore: prepare for release v2.4.0 by @matthewmcneely in https://github.com/dgraph-io/ristretto/pull/479
- @jas4711 made their first contribution in https://github.com/dgraph-io/ristretto/pull/470
- @SkArchon made their first contribution in https://github.com/dgraph-io/ristretto/pull/475
Full Changelog: https://github.com/dgraph-io/ristretto/compare/v2.3.0...v2.4.0
Ristretto v2.3.0
- chore(deps): Update go minor and patch by @renovate[bot] in https://github.com/hypermodeinc/ristretto/pull/447
- Add public Cache.RemainingCost() method by @xl-s in https://github.com/hypermodeinc/ristretto/pull/448
- chore(deps): Update module golang.org/x/sys to v0.33.0 by @renovate[bot] in https://github.com/hypermodeinc/ristretto/pull/449
- chore(deps): Update dependency go to v1.24.3 by @renovate[bot] in https://github.com/hypermodeinc/ristretto/pull/450
- chore(deps): Update dependency go to v1.24.4 by @renovate[bot] in https://github.com/hypermodeinc/ristretto/pull/453
- Fix assertion in TestDropUpdates and trunk upgrade by @mangalaman93 in https://github.com/hypermodeinc/ristretto/pull/452
- trunk upgrade by @mangalaman93 in https://github.com/hypermodeinc/ristretto/pull/454
- Fix typo: ffor → for by @maximal in https://github.com/hypermodeinc/ristretto/pull/456
- chore(deps): Update module golang.org/x/sys to v0.34.0 by @renovate[bot] in https://github.com/hypermodeinc/ristretto/pull/457
- chore(deps): Update dependency go to v1.24.5 by @renovate[bot] in https://github.com/hypermodeinc/ristretto/pull/458
- fix: correct grammar in error message by @Fungx in https://github.com/hypermodeinc/ristretto/pull/461
- feat: Support uint Keys by @jcalabro in https://github.com/hypermodeinc/ristretto/pull/463
- chore(deps): Update go minor and patch by @renovate[bot] in https://github.com/hypermodeinc/ristretto/pull/462
- @xl-s made their first contribution in https://github.com/hypermodeinc/ristretto/pull/448
- @maximal made their first contribution in https://github.com/hypermodeinc/ristretto/pull/456
- @Fungx made their first contribution in https://github.com/hypermodeinc/ristretto/pull/461
- @jcalabro made their first contribution in https://github.com/hypermodeinc/ristretto/pull/463
Full Changelog: https://github.com/hypermodeinc/ristretto/compare/v2.2.0...v2.3.0
Ristretto v2.2.0
- chore(deps): Update go minor and patch by @renovate in https://github.com/hypermodeinc/ristretto/pull/435
- chore(deps): Update dependency go to v1.23.6 by @renovate in https://github.com/hypermodeinc/ristretto/pull/438
- chore(deps): Update dependency go to v1.24.0 by @renovate in https://github.com/hypermodeinc/ristretto/pull/440
- Ffz/use channel by @freeformz in https://github.com/hypermodeinc/ristretto/pull/442
- chore: remove github.com/pkg/errors dependency by @thejedimasterbr in https://github.com/hypermodeinc/ristretto/pull/443
- chore(deps): Update module golang.org/x/sys to v0.31.0 by @renovate in https://github.com/hypermodeinc/ristretto/pull/444
- @renovate made their first contribution in https://github.com/hypermodeinc/ristretto/pull/435
- @freeformz made their first contribution in https://github.com/hypermodeinc/ristretto/pull/442
- @thejedimasterbr made their first contribution in https://github.com/hypermodeinc/ristretto/pull/443
Full Changelog: https://github.com/hypermodeinc/ristretto/compare/v2.1.0...v2.2.0
Ristretto v2.1.0
- refactor: using defer m.Unlock in store.go by @hoo47 in https://github.com/dgraph-io/ristretto/pull/425
- Add getting started doc by @flymedllva in https://github.com/dgraph-io/ristretto/pull/428
- fix memory leak on incor calc of cleanup bucket by @flymedllva in https://github.com/dgraph-io/ristretto/pull/429
- chore(deps): bump golang.org/x/sys from 0.28.0 to 0.29.0 in the minor group by @dependabot in https://github.com/dgraph-io/ristretto/pull/430
- Add ShouldUpdate in config by @harshil-goel in https://github.com/dgraph-io/ristretto/pull/427
Full Changelog: https://github.com/dgraph-io/ristretto/compare/v2.0.1...v2.1.0
Ristretto v2.0.1
- chore(deps): bump golang.org/x/sys from 0.26.0 to 0.27.0 in the minor group by @dependabot in https://github.com/dgraph-io/ristretto/pull/419
- chore(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 in the minor group by @dependabot in https://github.com/dgraph-io/ristretto/pull/420
- chore(deps): bump golang.org/x/sys from 0.27.0 to 0.28.0 in the minor group by @dependabot in https://github.com/dgraph-io/ristretto/pull/421
- wait for goroutines to finish by @mangalaman93 in https://github.com/dgraph-io/ristretto/pull/423
Full Changelog: https://github.com/dgraph-io/ristretto/compare/v2.0.0...v2.0.1
Ristretto v2.0.0
- Disable mmap size check on arm arch as well as arm64
- Upgrade xxhash dependency to v2.2.0
- fix: race in close
- Fix some memory leaks in TTL implementation
- stop using rand.Seed()
- chore(deps): bump the actions group with 4 updates
- chore(deps): bump the minor group with 3 updates
- chore(deps): bump golang.org/x/sys from 0.25.0 to 0.26.0 in the minor group
- Remove the policy interface
- Perform validation to ensure that the three parameters, NumCounters, …
- set min version to go 1.21 in go.mod
Full Changelog: https://github.com/dgraph-io/ristretto/compare/v0.2.0...v2.0.0
v0.2.0
*`docs(readme): Use new Wait method by @angadn in https://github.com/dgraph-io/ristretto/pull/327
- docs: format example on readme by @rfyiamcool in https://github.com/dgraph-io/ristretto/pull/339
- Fix flakes in TestDropUpdates by @evanj in https://github.com/dgraph-io/ristretto/pull/334
- docs(Cache): document Wait, clarify Get by @evanj in https://github.com/dgraph-io/ristretto/pull/333
- chore: fix typo error by @proost in https://github.com/dgraph-io/ristretto/pull/341
- fix: support compilation to wasip1 by @achille-roussel in https://github.com/dgraph-io/ristretto/pull/344
- remove glog dependency by @jhawk28 in https://github.com/dgraph-io/ristretto/pull/350
- add config for cleanup ticker duration by @singhvikash11 in https://github.com/dgraph-io/ristretto/pull/342
- fix(OnEvict): Set missing Expiration field on evicted items by @0x1ee7 in https://github.com/dgraph-io/ristretto/pull/345
- uint32 -> uint64 in slice methods by @mocurin in https://github.com/dgraph-io/ristretto/pull/323
- fix: cleanupTicker not being stopped by @IlyaFloppy in https://github.com/dgraph-io/ristretto/pull/343
Full Changelog: https://github.com/dgraph-io/ristretto/compare/v0.1.1...v0.2.0