Movatterモバイル変換


[0]ホーム

URL:


buildcache

package
v1.3.1Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License:GPL-3.0Imports:3Imported by:0

Details

Repository

github.com/arduino/arduino-cli

Links

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (// CreateDirErr error occurred when creating the cache directoryCreateDirErr = cacheError{Code: createDirErrCode}// FileWriteErr error occurred when writing the placeholder fileFileWriteErr = cacheError{Code: fileWriteErrCode})

Functions

This section is empty.

Types

typeBuildCache

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

BuildCache represents a cache of built files (sketches and cores), it's designedto work on directories. Given a directory as "base" it handles direct subdirectories askeys

funcNew

func New(baseDir *paths.Path) *BuildCache

New instantiates a build cache

func (*BuildCache)GetOrCreate

func (bc *BuildCache) GetOrCreate(keystring) (*paths.Path,error)

GetOrCreate retrieves or creates the cache directory at the given pathIf the cache already exists the lifetime of the cache is extended.

func (*BuildCache)Purge

func (bc *BuildCache) Purge(ttltime.Duration)

Purge removes all cache directories within baseDir that have expiredTo know how long ago a directory has been last usedit checks into the .last-used file.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp