Documentation
¶
Overview ¶
Package cache provides a file-based cache for GitHub API responses.
Index ¶
Constants ¶
View Source
const DefaultTTL = 1 * time.Hour
DefaultTTL is the default cache expiry time.
Variables ¶
This section is empty.
Functions ¶
func GitHubRepoKey ¶
GitHubRepoKey returns the cache key for a specific repo's metadata.
func GitHubReposKey ¶
GitHubReposKey returns the cache key for an org's repo list.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache represents a file-based cache.
func New ¶
New creates a new cache instance. If baseDir is empty, uses .core/cache in current directory
Click to show internal directories.
Click to hide internal directories.