Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoSuchKey is returned when a key is not found ErrNoSuchKey = errors.New("no such key") )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Get(string) ([]byte, error) Set(string, []byte) error Keys() ([]string, error) Delete(string) error }
Cache is the interface that
func NewFSCache ¶
NewFSCache returns a FileSystemcache with defaults set, and makes sure that the FSCache has a directory to store info in.
type FSCache ¶
type FSCache struct {
Root string
}
FSCache is an implementation of Cache that stores information in the filesystem
Click to show internal directories.
Click to hide internal directories.