Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimedCache ¶
type TimedCache[T comparable] struct { // contains filtered or unexported fields }
func NewTimedCache ¶
func NewTimedCache[T comparable](timeout time.Duration, sweepThreshold int) *TimedCache[T]
func (*TimedCache[T]) GetAndRemove ¶
func (c *TimedCache[T]) GetAndRemove(k T) (time.Time, bool)
func (*TimedCache[T]) Insert ¶
func (c *TimedCache[T]) Insert(k T)
Click to show internal directories.
Click to hide internal directories.