//
pkg.gl
Category
github.com/Ecosystem-Knowledge/lachesis-base
utils
simplewlru
package
0.0.1-rc
Repository:
https://github.com/ecosystem-knowledge/lachesis-base.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
3
Files
158 SLOC
#
Functions
New
New creates a weighted LRU of the given size.
NewWithEvict
NewWeightedLRU constructs an LRU of the given weight and size.
#
Structs
Cache
Cache implements a non-thread safe fixed size/weight LRU cache.
#
Type aliases
EvictCallback
EvictCallback is used to get a callback when a cache entry is evicted.