cache

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(key string, fetcher fetcher) error
}

func NewCache

func NewCache(useCache bool, dir string) Cache

type Fetcher added in v1.11.0

type Fetcher[T any] struct {
	Result T
	// contains filtered or unexported fields
}

func Fetch added in v1.11.0

func Fetch[T any](fn fetchFn[T]) *Fetcher[T]

Jump to

Keyboard shortcuts

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