Documentation ¶ Index ¶ type Cache type FileCache func New(basepath string) (*FileCache, error) func (fc *FileCache) Delete(hashKey string) error func (fc *FileCache) Destroy() error func (fc *FileCache) Get(hashKey string) (value []byte, hit bool, err error) func (fc *FileCache) Set(hashKey string, value []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache interface { Get(hashKey string) (val []byte, hit bool, err error) Set(hashKey string, val []byte) error Delete(hashKey string) error Destroy() error } type FileCache ¶ type FileCache struct { Basepath string // contains filtered or unexported fields } func New ¶ func New(basepath string) (*FileCache, error) func (*FileCache) Delete ¶ func (fc *FileCache) Delete(hashKey string) error func (*FileCache) Destroy ¶ func (fc *FileCache) Destroy() error func (*FileCache) Get ¶ func (fc *FileCache) Get(hashKey string) (value []byte, hit bool, err error) func (*FileCache) Set ¶ func (fc *FileCache) Set(hashKey string, value []byte) error Source Files ¶ View all Source files filecache.go Click to show internal directories. Click to hide internal directories.