cache

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL