From 7000119c71f412b31579a39a0bbe14b2cd83e490 Mon Sep 17 00:00:00 2001 From: motoki317 Date: Sun, 5 Nov 2023 20:50:13 +0900 Subject: [PATCH] fix comment --- cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache.go b/cache.go index 62379e4..7f64777 100644 --- a/cache.go +++ b/cache.go @@ -176,7 +176,7 @@ func (c *cache[K, V]) GetIfExists(key K) (v V, ok bool) { return val.v, true } - // value doesn't exist + // value doesn't exist, or is expired c.stats.Misses++ return val.v, false }