Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[TKey comparable, TValue any] interface { TryGet(key TKey) (TValue, bool) Put(key TKey, value TValue) Clear() }
func NewMemoryCache ¶
func NewMemoryCache[TKey comparable, TValue any]() Cache[TKey, TValue]
Click to show internal directories.
Click to hide internal directories.