Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("key not found in cache")
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache implements a Least Frequently Used cache where if storage reaches max capacity, the least used items are evicted.
func NewCache ¶
NewCache creates and returns a new Cache object with storage size for up to maxItems elements.
Click to show internal directories.
Click to hide internal directories.