Documentation
¶
Overview ¶
Package cache provides image caching functionality for station logos.
Index ¶
Constants ¶
View Source
const ( // DefaultExpiry is how long cached images are valid (7 days). DefaultExpiry = 7 * 24 * time.Hour // ImageSubdir is the subdirectory for cached images. ImageSubdir = "images" // AppName is used for the cache directory name. AppName = "somafm" )
Variables ¶
This section is empty.
Functions ¶
func GetCacheDir ¶
GetCacheDir returns the platform-specific cache directory for the application.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache manages disk-based caching of station logo images.
func (*Cache) CleanExpired ¶
CleanExpired removes cache files older than the expiry duration.
Click to show internal directories.
Click to hide internal directories.