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

metercacher

package
v1.29.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func New

func New[K comparable, V any](
	namespace string,
	registry metric.Registry,
	cache cache.Cacher[K, V],
) (*Cache[K, V], error)

func (*Cache[K, _]) Evict

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

func (*Cache[_, _]) Flush

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

func (*Cache[K, V]) Get

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

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