Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemporalCache ¶
type TemporalCache[T comparable] struct { // contains filtered or unexported fields }
func NewTemporal ¶
func NewTemporal[T comparable]() *TemporalCache[T]
func (*TemporalCache[T]) SeenWithinLast ¶
func (self *TemporalCache[T]) SeenWithinLast(key T, duration time.Duration) bool
SeenWithinLast checks if a key been seen within the last duration.
Click to show internal directories.
Click to hide internal directories.