Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager[K comparable, V any] interface { Load(key K) Ref[V] // Delete marks key as expired. Delete(key K) bool // Len returns current amount of keys in cache. Len() int // Cleanup starts scanning for expired values // and removes deleted values from storage. Cleanup() int }
func NewManager ¶
func NewManager[K comparable, V any](storage Storage[K, V]) Manager[K, V]
Click to show internal directories.
Click to hide internal directories.