//
pkg.gl
Category
github.com/ccheers/xpkg
lru
v2
package
1.2.4
Repository:
https://github.com/ccheers/xpkg.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
1
Files
413 SLOC
#
Functions
NewARC
NewARC creates an ARC of the given size.
NewLRU
NewLRU constructs an LRU of the given size.
#
Variables
ErrMustProvidePositiveSize
No description provided by the author
#
Structs
ARCCache
ARCCache is a thread-safe fixed size Adaptive Replacement Cache (ARC).
LRU
LRU implements a non-thread safe fixed size LRU cache.
#
Interfaces
LRUCache
LRUCache is the interface for simple LRU cache.
#
Type aliases
EvictCallback
EvictCallback is used to get a callback when a cache entry is evicted.