Documentation
¶
Overview ¶
Package cachexp provides cache expansion mechanism using selected Provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider interface {
Marshal(v interface{}) ([]byte, error)
Unmarshal(b []byte, v interface{}) error
ReadFetch(key string, r *http.Request) ([]byte, error)
ReadFetchMulti(keys []string, r *http.Request) (map[string][]byte, error)
Normalize(key string) string
Tuner() Tuner
}
A Provider provides data and transformation for the Expand function. It's also provides Tuner to customize behaviour of the expansion.
Click to show internal directories.
Click to hide internal directories.