cache

package
v0.0.192 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplicateCache

type DuplicateCache struct {
	Node *ttlcache.Cache[string, time.Time]
	// contains filtered or unexported fields
}

func NewDuplicateCache

func NewDuplicateCache() *DuplicateCache

func (*DuplicateCache) Start

func (d *DuplicateCache) Start(ctx context.Context) error

func (*DuplicateCache) Stop

func (d *DuplicateCache) Stop()

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func NewMetrics

func NewMetrics(namespace string) *Metrics

func (*Metrics) SetDuplicateEvictions

func (m *Metrics) SetDuplicateEvictions(count uint64, store string)

func (*Metrics) SetDuplicateHits

func (m *Metrics) SetDuplicateHits(count uint64, store string)

func (*Metrics) SetDuplicateInsertions

func (m *Metrics) SetDuplicateInsertions(count uint64, store string)

func (*Metrics) SetDuplicateMisses

func (m *Metrics) SetDuplicateMisses(count uint64, store string)

Jump to

Keyboard shortcuts

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