Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrInvalidFileKey ¶
type ErrInvalidFileKey struct {
// contains filtered or unexported fields
}
func (ErrInvalidFileKey) Error ¶
func (e ErrInvalidFileKey) Error() string
type ErrInvalidFileKeyParts ¶
type ErrInvalidFileKeyParts struct {
// contains filtered or unexported fields
}
func (ErrInvalidFileKeyParts) Error ¶
func (e ErrInvalidFileKeyParts) Error() string
type InitFunc ¶
InitFunc initilize a cache given a config map. The InitFunc should validate the config map, and report any errors. This is called by the For function.
type Interface ¶
type Interface interface { Get(key *Key) (val []byte, hit bool, err error) Set(key *Key, val []byte) error Purge(key *Key) error }
Interface defines a cache back end
Click to show internal directories.
Click to hide internal directories.