diff --git a/cache.go b/cache.go index db88d2f..35aa7dd 100644 --- a/cache.go +++ b/cache.go @@ -128,6 +128,7 @@ func (c *cache) Get(k string) (interface{}, bool) { if item.Expiration > 0 { if time.Now().UnixNano() > item.Expiration { c.mu.RUnlock() + c.Delete(k) return nil, false } }