Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed Nov 5, 2023
1 parent fd7bc93 commit 7000119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7000119

Please sign in to comment.