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

cache

package
v0.48.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultDiskLookupKeySerializer

type DefaultDiskLookupKeySerializer struct {
	// contains filtered or unexported fields
}

func (*DefaultDiskLookupKeySerializer) Serialize

type ExecutionVersionCache

type ExecutionVersionCache interface {
	Get(key *version.Version) (string, error)
}

func NewExecutionVersionLayeredLoadingCache

func NewExecutionVersionLayeredLoadingCache(
	binaryName string,
	versionRootDir string,
	loader func(v *version.Version, destPath string) (models.FilePath, error),
) ExecutionVersionCache

type ExecutionVersionDiskLayer

type ExecutionVersionDiskLayer struct {
	// contains filtered or unexported fields
}

ExecutionVersionDiskLayer is a cache layer which attempts to find the version on disk, before calling the configured loading function.

func (*ExecutionVersionDiskLayer) Get

Gets a path from cache

type ExecutionVersionMemoryLayer

type ExecutionVersionMemoryLayer struct {
	// contains filtered or unexported fields
}

ExecutionVersionMemoryLayer is an in-memory cache which delegates to a disk layer if a version's path doesn't exist yet.

func (*ExecutionVersionMemoryLayer) Get

type KeySerializer

type KeySerializer interface {
	Serialize(key *version.Version) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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