package
Version:
v0.0.0-...-2ee2aa9
Opens a new window with list of versions in this module.
Published: Mar 28, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package cache contains structs and methods to cache data
LRU represents a LRU cache
NewLRU creates a new LRU Cache.
func (c *LRU) Add(key, value interface{})
Add adds a value to the cache.
Clear purges all stored items from the cache.
func (c *LRU) Get(key interface{}) (value interface{}, ok bool)
Get looks up a key's value from the cache.
Len returns the number of items in the cache.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.