//
pkg.gl
Category
github.com/Code-Hex/go-generics-cache
policy
fifo
package
1.5.1
Repository:
https://github.com/code-hex/go-generics-cache.git
Documentation:
pkg.go.dev
Overview
Versions
2
Dependencies
1
Dependents
3
Files
78 SLOC
#
Functions
NewCache
NewCache creates a new non-thread safe FIFO cache whose capacity is the default size (128).
WithCapacity
WithCapacity is an option to set cache capacity.
#
Structs
Cache
Cache is used a FIFO (First in first out) cache replacement policy.
#
Type aliases
Option
Option is an option for FIFO cache.