Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoCache ¶
MemoCache represents a cache with a set capacity that uses an LRU eviction policy.
func NewMemoCache ¶
NewMemoCache creates a new MemoCache given a certain capacity.
func (*MemoCache[H, T]) Get ¶
Get returns the value associated with the given hashable item. If there is no corresponding value, the method returns nil.
Click to show internal directories.
Click to hide internal directories.