Documentation ¶ Index ¶ Variables type Cache type FsCache func New(logger *zap.Logger, rootDir string, maxAge time.Duration) FsCache func (cache FsCache) Get(ct Type, key string, receiver io.Writer) error func (cache FsCache) Set(ct Type, key string, value io.Reader) error type Type Constants ¶ This section is empty. Variables ¶ View Source var ( ErrCacheExpired = errors.New("cached value expired") ) Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache interface { Set(ct Type, key string, value io.Reader) error Get(ct Type, key string, receiver io.Writer) error } type FsCache ¶ type FsCache struct { // contains filtered or unexported fields } func New ¶ func New(logger *zap.Logger, rootDir string, maxAge time.Duration) FsCache func (FsCache) Get ¶ func (cache FsCache) Get(ct Type, key string, receiver io.Writer) error func (FsCache) Set ¶ func (cache FsCache) Set(ct Type, key string, value io.Reader) error type Type ¶ type Type int const ( TypeAvatar Type = iota TypeLists ) Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.