metercacher

package
v1.10.2-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[K comparable, V any](
	namespace string,
	registerer prometheus.Registerer,
	cache cache.Cacher[K, V],
) (cache.Cacher[K, V], error)

Types

type Cache

type Cache[K comparable, V any] struct {
	cache.Cacher[K, V]
	// contains filtered or unexported fields
}

func (*Cache[K, _]) Evict added in v1.10.2

func (c *Cache[K, _]) Evict(key K)

func (*Cache[_, _]) Flush added in v1.10.2

func (c *Cache[_, _]) Flush()

func (*Cache[K, V]) Get

func (c *Cache[K, V]) Get(key K) (V, bool)

func (*Cache) Initialize

func (m *Cache) Initialize(
	namespace string,
	reg prometheus.Registerer,
) error

func (*Cache[K, V]) Put

func (c *Cache[K, V]) Put(key K, value V)

Jump to

Keyboard shortcuts

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