aboutsummaryrefslogtreecommitdiff
path: root/internal/lru/peek.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 18:38:44 +0800
committerGravatar Runxi Yu2026-03-06 18:58:30 +0800
commitf2922155de01b734e3e8b3f50be8f263ec13cacd (patch)
tree6dcfcf5689e63eea09314dce543e1de26cab89fe /internal/lru/peek.go
parentinternal/compress: Format (diff)
signatureNo signature
*: Lint v0.1.68
Diffstat (limited to 'internal/lru/peek.go')
-rw-r--r--internal/lru/peek.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/lru/peek.go b/internal/lru/peek.go
index 3a308394..8aced931 100644
--- a/internal/lru/peek.go
+++ b/internal/lru/peek.go
@@ -1,6 +1,8 @@
package lru
// Peek returns value for key without changing recency.
+//
+//nolint:ireturn
func (cache *Cache[K, V]) Peek(key K) (V, bool) {
elem, ok := cache.items[key]
if !ok {