diff --git a/lib/memo/drivers/memory/memory.go b/lib/memo/drivers/memory/memory.go index 6db3690b..ea158962 100644 --- a/lib/memo/drivers/memory/memory.go +++ b/lib/memo/drivers/memory/memory.go @@ -54,7 +54,7 @@ func (driver) Register() error { time.Sleep(sleep) var now = time.Now().Unix() items.Range(func(key, value any) bool { - if key.(item).expires < now { + if value.(item).expires < now { items.Delete(key) } return true