Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheValue ¶
type CacheValue[T any] struct { // contains filtered or unexported fields }
func (*CacheValue[T]) Load ¶
func (v *CacheValue[T]) Load(newValue func() T) T
func (*CacheValue[T]) LoadTTL ¶
func (v *CacheValue[T]) LoadTTL(ttl time.Duration, newValue func() T) T
Click to show internal directories.
Click to hide internal directories.