aboutsummaryrefslogtreecommitdiff
path: root/internal/cache/clock/clock_ops.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cache/clock/clock_ops.go')
-rw-r--r--internal/cache/clock/clock_ops.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/internal/cache/clock/clock_ops.go b/internal/cache/clock/clock_ops.go
index a21f44c3..6d4785f4 100644
--- a/internal/cache/clock/clock_ops.go
+++ b/internal/cache/clock/clock_ops.go
@@ -10,15 +10,11 @@ func (clock *Clock[K, V]) Add(key K, value V) bool {
}
// Get returns the value for key and marks it recently used.
-//
-//nolint:ireturn
func (clock *Clock[K, V]) Get(key K) (V, bool) {
return clock.shardFor(key).get(key)
}
// Peek returns the value for key without changing its recency.
-//
-//nolint:ireturn
func (clock *Clock[K, V]) Peek(key K) (V, bool) {
return clock.shardFor(key).peek(key)
}