//
pkg.gl
Category
github.com/skyhighblockchain/push-base
utils
simplewlru
package
1.0.1
Repository:
https://github.com/skyhighblockchain/push-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.