aboutsummaryrefslogtreecommitdiff
path: root/internal/lru/entries.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lru/entries.go')
-rw-r--r--internal/lru/entries.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/lru/entries.go b/internal/lru/entries.go
new file mode 100644
index 00000000..132f8f7e
--- /dev/null
+++ b/internal/lru/entries.go
@@ -0,0 +1,7 @@
+package lru
+
+type entry[K comparable, V any] struct {
+ key K
+ value V
+ weight int64
+}