cache

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 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 FileStore

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

FileStore persists cache entries as JSON on disk.

func NewFileStore

func NewFileStore(path string) (*FileStore, error)

func (*FileStore) Load

func (*FileStore) Save

func (f *FileStore) Save(_ context.Context, key artifact.CacheKey, result *tool.ToolResult) error

type MemoryStore

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

MemoryStore keeps cache entries in memory for the lifetime of the process.

func NewMemoryStore

func NewMemoryStore() *MemoryStore

func (*MemoryStore) Load

func (*MemoryStore) Save

func (m *MemoryStore) Save(_ context.Context, key artifact.CacheKey, result *tool.ToolResult) error

type Store

Store persists pipeline results keyed by deterministic artifact cache keys.

Jump to

Keyboard shortcuts

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