Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageMapper ¶ added in v1.6.47
type Storer ¶
type Storer interface {
MapKeys(prefix string) map[string]string
ListKeys() []string
Prefix(key string) []string
Get(key string) []byte
Set(key string, value []byte, url configurationtypes.URL, duration time.Duration) error
Delete(key string)
DeleteMany(key string)
Init() error
Name() string
Reset() error
// Multi level storer to handle fresh/stale at once
GetMultiLevel(key string, req *http.Request, validator *rfc.Revalidator) (fresh *http.Response, stale *http.Response)
SetMultiLevel(baseKey, variedKey string, value []byte, variedHeaders http.Header, etag string, duration time.Duration, realKey string) error
}
Click to show internal directories.
Click to hide internal directories.