Versions in this module Expand all Collapse all v0 v0.7.0 Jan 24, 2016 Changes in this version + func Handler(c Cache, h http.Handler) http.Handler + func ListenAndServe(c Cache, addr string) error + type Cache interface + Clean func() error + Exists func(key string) bool + Get func(key string) (io.ReadCloser, io.WriteCloser, error) + Remove func(key string) error + func New(dir string, perms os.FileMode, expiry time.Duration) (Cache, error) + func NewCache(fs FileSystem, grim Reaper) (Cache, error) + func NewLayered(caches ...Cache) Cache + func NewPartition(d Distributor) Cache + func NewRemote(raddr string) Cache + type Distributor interface + Clean func() error + GetCache func(key string) Cache + func NewDistributor(caches ...Cache) Distributor + type File interface + Name func() string + type FileSystem interface + AccessTimes func(name string) (rt, wt time.Time, err error) + Create func(key string) (File, error) + Open func(name string) (io.ReadCloser, error) + Reload func(func(key, name string)) error + Remove func(name string) error + RemoveAll func() error + func NewFs(dir string, mode os.FileMode) (FileSystem, error) + func NewMemFs() FileSystem + type Reaper interface + Next func() time.Duration + Reap func(key string, lastRead, lastWrite time.Time) bool + func NewReaper(expiry, period time.Duration) Reaper