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 ¶
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 (m *MemoryStore) Load(_ context.Context, key artifact.CacheKey) (*tool.ToolResult, bool, error)
func (*MemoryStore) Save ¶
func (m *MemoryStore) Save(_ context.Context, key artifact.CacheKey, result *tool.ToolResult) error
Click to show internal directories.
Click to hide internal directories.