From 3dd2d95b8347b2b0572a5ad90cbb7c1c84e9a07a Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 9 Jun 2026 03:05:45 +0000 Subject: internal/lru: Add sharded CLOCK --- internal/clock/doc.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 internal/clock/doc.go (limited to 'internal/clock/doc.go') diff --git a/internal/clock/doc.go b/internal/clock/doc.go new file mode 100644 index 00000000..6f28805b --- /dev/null +++ b/internal/clock/doc.go @@ -0,0 +1,9 @@ +// Package clock provides a concurrent, weight-bounded object cache. +// +// The cache is sharded by key, +// and each shard owns an independent fraction of the total budget. +// An entry heavier than that per-shard fraction is never admitted, +// so callers should keep the total budget well above the largest value. +// +// Labels: MT-Safe. +package clock -- cgit v1.3.1-10-gc9f91