package
module
Version:
v0.0.0-...-5cb4011
Opens a new window with list of versions in this module.
Published: Oct 22, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package tinylfu is an implementation of the TinyLFU caching algorithm
http://arxiv.org/abs/1512.00727
type Item struct {
Key string
Value interface{}
ExpireAt time.Time
OnEvict func()
}
func (t *T) Set(newItem *Item)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.