cache

package
v0.13.4 Latest Latest
Warning

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

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

Documentation

Overview

Package cache implements the external provider interface providing a cache for the encapsulated provider.

Index

Constants

View Source
const (
	// MetricsSubsystem groups metrics coming from cache provider.
	MetricsSubsystem = "external_provider_cache"
)

Variables

This section is empty.

Functions

func NewCacheProvider

func NewCacheProvider(options ProviderOptions) (provider.ExternalMetricsProvider, error)

NewCacheProvider is the constructor for the cache provider.

Types

type ProviderOptions

type ProviderOptions struct {
	ExternalProvider provider.ExternalMetricsProvider
	CacheTTLSeconds  int64
	RegisterFunc     func(metrics.Registerable) error
}

ProviderOptions holds the configOptions of the provider.

Jump to

Keyboard shortcuts

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