Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultMaxCacheBytes and DefaultMaxCacheFiles keep the persistent // artwork cache bounded for household deployments without adding another // required runtime setting. DefaultMaxCacheBytes int64 = 1 << 30 DefaultMaxCacheFiles = 25_000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) Prune ¶ added in v0.20.0
Prune removes stale entries and then oldest entries until both cache limits are satisfied. Files are written atomically by refresh, so a directory snapshot is safe to inspect while a fetch is in progress. Temporary files are deliberately ignored and are cleaned up by their writer.
type PruneStats ¶ added in v0.20.0
Click to show internal directories.
Click to hide internal directories.