metercacher

package
v1.7.7-rc.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: BSD-3-Clause Imports: 6 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	namespace string,
	registerer prometheus.Registerer,
	cache cache.Cacher,
) (cache.Cacher, error)

Types

type Cache

type Cache struct {
	cache.Cacher
	// contains filtered or unexported fields
}

func (*Cache) Get

func (c *Cache) Get(key interface{}) (interface{}, bool)

func (*Cache) Initialize

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

func (*Cache) Put

func (c *Cache) Put(key, value interface{})

Jump to

Keyboard shortcuts

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