Versions in this module Expand all Collapse all v0 v0.0.1 Jul 19, 2022 Changes in this version + const DefaultCompressionLevel + func Stringify(stuff ...CacheKey) []string + type CacheDir struct + func NewCacheDir(path string) (cd *CacheDir, err error) + func (cd *CacheDir) Chtime(t time.Time, key ...CacheKey) (err error) + func (cd *CacheDir) ChtimeNoLock(t time.Time, key ...CacheKey) (err error) + func (cd *CacheDir) Create(key ...CacheKey) (fh *os.File, err error) + func (cd *CacheDir) Delete(key ...CacheKey) (err error) + func (cd *CacheDir) DeleteAll(key ...CacheKey) (err error) + func (cd *CacheDir) Get(v interface{}, key ...CacheKey) (mtime time.Time, err error) + func (cd *CacheDir) GetAndExpire(v interface{}, max time.Duration, key ...CacheKey) (mtime time.Time, expired bool, err error) + func (cd *CacheDir) GetCacheDir() string + func (cd *CacheDir) GetCompressionLevel() int + func (cd *CacheDir) GetInvalid(key ...CacheKey) (ts time.Time) + func (cd *CacheDir) IsValid(maxDuration time.Duration, key ...CacheKey) bool + func (cd *CacheDir) Lock(key ...CacheKey) (*flock.Flock, error) + func (cd *CacheDir) Open(key ...CacheKey) (fh *os.File, err error) + func (cd *CacheDir) OpenFlags(flags int, key ...CacheKey) (fh *os.File, err error) + func (cd *CacheDir) Set(v interface{}, key ...CacheKey) (n int64, err error) + func (cd *CacheDir) SetCacheDir(path string) (err error) + func (cd *CacheDir) SetCompressionLevel(level int) + func (cd *CacheDir) SetInvalid(key ...CacheKey) error + func (cd *CacheDir) Stat(key ...CacheKey) (stat os.FileInfo, err error) + func (cd *CacheDir) Touch(key ...CacheKey) (err error) + func (cd *CacheDir) UnsetInvalid(key ...CacheKey) error + type CacheKey interface