Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LRU ¶
type LRU[K comparable, V any] struct { // contains filtered or unexported fields }
LRU implements a generic LRU cache backed by a min-heap.
func NewLRU ¶
func NewLRU[K comparable, V any](capacity int) *LRU[K, V]
NewLRU creates a new LRU cache with the given capacity.
Click to show internal directories.
Click to hide internal directories.