//
pkg.gl
Category
github.com/TechPay-io/sirius-base
utils
simplewlru
package
0.1.4
Repository:
https://github.com/techpay-io/sirius-base.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
4
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.