Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountdownCache ¶
type CountdownCache[T any] struct { // contains filtered or unexported fields }
func NewCountdownCache ¶
func NewCountdownCache[T any](ttl time.Duration) *CountdownCache[T]
func (*CountdownCache[T]) Delete ¶
func (c *CountdownCache[T]) Delete(key string)
func (*CountdownCache[T]) Get ¶
func (c *CountdownCache[T]) Get(key string) (T, bool)
func (*CountdownCache[T]) Set ¶
func (c *CountdownCache[T]) Set(key string, value T)
Click to show internal directories.
Click to hide internal directories.