diff --git a/decaymap/decaymap.go b/decaymap/decaymap.go index 267841ac..93e1511e 100644 --- a/decaymap/decaymap.go +++ b/decaymap/decaymap.go @@ -151,7 +151,7 @@ func (m *Impl[K, V]) Close() { func (m *Impl[K, V]) cleanupWorker() { defer m.wg.Done() batch := make([]deleteReq[K], 0, 64) - ticker := time.NewTicker(time.Minute) + ticker := time.NewTicker(15 * time.Minute) defer ticker.Stop() flush := func() { diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md index 0c4271c7..3a58761a 100644 --- a/docs/docs/CHANGELOG.md +++ b/docs/docs/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- The memory store now decays values every 15 minutes instead of every 10 milliseconds. - Add Polish locale ([#1292](https://github.com/TecharoHQ/anubis/pull/1309))