Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCache ¶
func NewCache[T any]() cache.CacheInterface[T]
Types ¶
type SimpleExpirationCache ¶ added in v0.0.10
type SimpleExpirationCache[T any] struct { // contains filtered or unexported fields }
func NewSimpleExpirationCache ¶ added in v0.0.10
func NewSimpleExpirationCache[T any](expiration time.Duration) *SimpleExpirationCache[T]
func (*SimpleExpirationCache[T]) Get ¶ added in v0.0.10
func (c *SimpleExpirationCache[T]) Get() (T, bool)
func (*SimpleExpirationCache[T]) Set ¶ added in v0.0.10
func (c *SimpleExpirationCache[T]) Set(val T)
Click to show internal directories.
Click to hide internal directories.