Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultOnExpire ¶
func DefaultOnExpire[D any](D)
Types ¶
type Cache ¶
type Cache[K comparable, D any] struct { *sync.Map[K, *Element[D]] }
func NewCache ¶
func NewCache[K comparable, D any]() *Cache[K, D]
func (*Cache[K, D]) CheckExpirations ¶
type Element ¶
func NewElement ¶
Click to show internal directories.
Click to hide internal directories.