Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageMapper ¶
type Storer ¶
type Storer interface { MapKeys(prefix string) map[string]string ListKeys() []string Prefix(key string, req *http.Request, validator *rfc.Revalidator) *http.Response 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) error }
Click to show internal directories.
Click to hide internal directories.