Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Registered ¶
func Registered() (c []string)
Registered returns the caché's that have been registered.
Types ¶
type ErrGettingFromCache ¶
func (ErrGettingFromCache) Error ¶
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 ¶
func (ErrPurgingCache) Error ¶
func (e ErrPurgingCache) Error() string
type ErrSettingToCache ¶
func (ErrSettingToCache) Error ¶
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.