cache

package
v0.0.0-...-c1bceec Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher

type Cacher interface {
	Get(string) (types.DataResponseV1, bool, error)
	Set(string, types.DataResponseV1) error
}

Cacher is able to get and set key value pairs.

func NewMemached

func NewMemached(ctx context.Context, interval, expiration int32, servers ...string) Cacher

type CacherWithMetrics

type CacherWithMetrics interface {
	Cacher
	prometheus.Collector
}

func NewInMemoryCache

func NewInMemoryCache(expire int32) CacherWithMetrics

Jump to

Keyboard shortcuts

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