Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTTL = 2 * time.Minute
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[K comparable, V any] struct { // contains filtered or unexported fields }
Cache represents a cache layer.
func New ¶
func New[K comparable, V any]() *Cache[K, V]
New returns a pointer to a Cache struct instance.
Click to show internal directories.
Click to hide internal directories.