Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrGettingFromCache ¶ added in v0.5.0
func (ErrGettingFromCache) Error ¶ added in v0.5.0
func (e ErrGettingFromCache) Error() string
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 ErrPurgingCache ¶ added in v0.5.0
func (ErrPurgingCache) Error ¶ added in v0.5.0
func (e ErrPurgingCache) Error() string
type ErrSettingToCache ¶ added in v0.5.0
func (ErrSettingToCache) Error ¶ added in v0.5.0
func (e ErrSettingToCache) 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.