Help us shape the future of Go! Take the 2026 Go Developer Survey

cache

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBurrowStatsCounter

func NewBurrowStatsCounter(logger log.Logger, reg prometheus.Registerer, name string, options ...Option) *burrowStatsCounter

NewBurrowStatsCounter creates a new StatsCounter.

RecordLoadSuccess and RecordLoadError methods are called by Get methods on a successful and failed load respectively. Get method only called by LoadingCache implementation.

Types

type Option

type Option func(c *burrowStatsCounter)

Option add options for default Cache.

func WithTrackLoadingCacheStats

func WithTrackLoadingCacheStats() Option

WithTrackLoadingCacheStats enables tracking of loading cache stats. It is disabled by default.

Jump to

Keyboard shortcuts

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