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

cache

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("cache: not found")

Functions

func Load

func Load(hash string, v any) error

func LoadRemote

func LoadRemote(key string, entry *RemoteEntry) error

func Store

func Store(hash string, v any) error

func StoreRemote

func StoreRemote(key string, entry *RemoteEntry) error

Types

type RemoteEntry

type RemoteEntry struct {
	Data      []byte
	ETag      string
	FetchedAt time.Time
}

Jump to

Keyboard shortcuts

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