//
pkg.gl
Category
github.com/unicornultrafoundation/go-hashgraph
utils
simplewlru
package
0.0.0-20240112082643-1766efa1c9d6
Repository:
https://github.com/unicornultrafoundation/go-hashgraph.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
5
Files
155 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.