Documentation
¶
Overview ¶
Package tinylfu is an implementation of the TinyLFU caching algorithm
http://arxiv.org/abs/1512.00727
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option[K comparable, V any] func(*T[K, V])
func OnEvict ¶
func OnEvict[K comparable, V any](f func(key K, old V)) Option[K, V]
func OnReplace ¶
func OnReplace[K comparable, V any](f func(key K, old V)) Option[K, V]
Click to show internal directories.
Click to hide internal directories.