cache

package
v0.0.0-...-3a2a10c Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LastKnownTTLCache = ttlcache.New[string, *cattrack.CatTrack](
	ttlcache.WithTTL[string, *cattrack.CatTrack](params.CacheLastKnownTTL))
View Source
var LastPushTTLCache = ttlcache.New[string, []*cattrack.CatTrack](
	ttlcache.WithTTL[string, []*cattrack.CatTrack](params.CacheLastPushTTL))
View Source
var PopulateDedupeCache = lru.New(10_000)

Functions

func DedupePassLRU

func DedupePassLRU(ct *cattrack.CatTrack) bool

DedupePassLRU returns true if the point is not a duplicate using a Least Recently Used (LRU) cache.

func NewDedupePassLRUFunc

func NewDedupePassLRUFunc() func(cattrack.CatTrack) bool

func SetLastKnownTTL

func SetLastKnownTTL(catID conceptual.CatID, ct *cattrack.CatTrack)

Types

This section is empty.

Jump to

Keyboard shortcuts

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