cache

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashFile

func HashFile(filePath string) (string, error)

Types

type Manager

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

func NewManager

func NewManager(cacheDir string) (*Manager, error)

func (*Manager) Clear

func (m *Manager) Clear() error

func (*Manager) Get

func (m *Manager) Get(fileHash string) (*types.CachedAnalysis, error)

func (*Manager) IsStale

func (m *Manager) IsStale(cached *types.CachedAnalysis, currentHash string) bool

func (*Manager) Set

func (m *Manager) Set(cached *types.CachedAnalysis) error

Jump to

Keyboard shortcuts

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