Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalCache ¶
type LocalCache struct {
// contains filtered or unexported fields
}
func InitLocalCache ¶
func InitLocalCache(path string, debug bool) (*LocalCache, error)
init local cache and populate with data
func (LocalCache) Get ¶
func (c LocalCache) Get(hash string, maxAge int) ([]byte, error)
get file from cache
func (LocalCache) RunCleanUp ¶ added in v0.1.0
func (c LocalCache) RunCleanUp(maxAge int)
run cleanup service
Click to show internal directories.
Click to hide internal directories.