Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[K comparable, V any] interface { Get(key K, loader func(K) (V, error)) (V, error) }
func NewUnlimited ¶
func NewUnlimited[K comparable, V any](opts ...Options) Cache[K, V]
type LFU ¶
type LFU[K comparable, V any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.