cache

package
v1.202449.18 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigurer

func NewConfigurer() config.Configurer

Types

type Cache

type Cache interface {
	Load(key string) (any, bool)
	Store(key string, value any)
	Persist()
}

func Get

func Get[T any](config *config.Config) Cache

Fetch the shared cache for a given config

func NewDiskCache

func NewDiskCache(cacheFilePath string) Cache

func Noop

func Noop() Cache

Jump to

Keyboard shortcuts

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