Documentation
¶
Index ¶
- Constants
- func DefaultPath() string
- func IsExpired(entry Entry, ttl time.Duration) bool
- func Remove(c *Cache, name string)
- func Save(path string, c *Cache) error
- func Set(c *Cache, name string, version string)
- func SetForInstalledVersion(c *Cache, name, installedVersion, latestVersion string)
- type Cache
- type Entry
Constants ¶
View Source
const DefaultTTL = 24 * time.Hour
DefaultTTL is the default time-to-live for cache entries.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
func DefaultPath() string
DefaultPath returns the default cache file path (~/.gogitup.cache).
func SetForInstalledVersion ¶ added in v0.3.0
SetForInstalledVersion caches a version check for a specific installed version.
Types ¶
Click to show internal directories.
Click to hide internal directories.