diff options
Diffstat (limited to 'internal/cache/clock')
| -rw-r--r-- | internal/cache/clock/clock_ops.go | 4 | ||||
| -rw-r--r-- | internal/cache/clock/shard_read.go | 4 |
2 files changed, 0 insertions, 8 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) } diff --git a/internal/cache/clock/shard_read.go b/internal/cache/clock/shard_read.go index 624e3409..279f9725 100644 --- a/internal/cache/clock/shard_read.go +++ b/internal/cache/clock/shard_read.go @@ -1,8 +1,6 @@ package clock // get returns the value for key and marks it referenced. -// -//nolint:ireturn func (shard *shard[K, V]) get(key K) (V, bool) { e, ok := shard.items.Load(key) if !ok { @@ -19,8 +17,6 @@ func (shard *shard[K, V]) get(key K) (V, bool) { } // peek returns the value for key without affecting eviction. -// -//nolint:ireturn func (shard *shard[K, V]) peek(key K) (V, bool) { e, ok := shard.items.Load(key) if !ok { |
