Documentation
¶
Overview ¶
Package lru implements a simple LRU cache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
type Handle[K comparable] struct { // contains filtered or unexported fields }
Handle is the actual LRU cache.
func (*Handle[K]) Get ¶
Get returns the value associated with the key and a boolean indicating if the key was found. If found the node is promoted to the front.
Click to show internal directories.
Click to hide internal directories.