cache

package
v0.0.0-...-ca44064 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ResultLabel = "result"

Variables

This section is empty.

Functions

func NewMetric

func NewMetric(name, help string) *prometheus.CounterVec

Types

type PrometheusStatsCounter

type PrometheusStatsCounter struct {
	Metric *prometheus.CounterVec
}

func (*PrometheusStatsCounter) RecordEviction

func (p *PrometheusStatsCounter) RecordEviction()

func (*PrometheusStatsCounter) RecordHits

func (p *PrometheusStatsCounter) RecordHits(count uint64)

func (*PrometheusStatsCounter) RecordLoadError

func (p *PrometheusStatsCounter) RecordLoadError(loadTime time.Duration)

func (*PrometheusStatsCounter) RecordLoadSuccess

func (p *PrometheusStatsCounter) RecordLoadSuccess(loadTime time.Duration)

func (*PrometheusStatsCounter) RecordMisses

func (p *PrometheusStatsCounter) RecordMisses(count uint64)

func (*PrometheusStatsCounter) Snapshot

func (p *PrometheusStatsCounter) Snapshot(stats *cache.Stats)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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