Documentation
¶
Index ¶
- Constants
- func CacheConnectionFactory(c t.AbstractConfigurationInterface) (types.Storer, error)
- func NewStorages(configuration configurationtypes.AbstractConfigurationInterface) ([]types.Storer, error)
- type Cache
- func (provider *Cache) Delete(key string)
- func (provider *Cache) DeleteMany(key string)
- func (provider *Cache) Get(key string) []byte
- func (provider *Cache) Init() error
- func (provider *Cache) ListKeys() []string
- func (provider *Cache) MapKeys(prefix string) map[string]string
- func (provider *Cache) Name() string
- func (provider *Cache) Prefix(key string, req *http.Request, validator *rfc.Revalidator) *http.Response
- func (provider *Cache) Reset() error
- func (provider *Cache) Set(key string, value []byte, duration time.Duration) error
- type StorerInstanciator
Constants ¶
View Source
const ( VarySeparator = "{-VARY-}" DecodedHeaderSeparator = ";" StalePrefix = "STALE_" )
Variables ¶
This section is empty.
Functions ¶
func CacheConnectionFactory ¶
func CacheConnectionFactory(c t.AbstractConfigurationInterface) (types.Storer, error)
CacheConnectionFactory function create new Cache instance
func NewStorages ¶
func NewStorages(configuration configurationtypes.AbstractConfigurationInterface) ([]types.Storer, error)
Types ¶
type Cache ¶
Cache provider type
func (*Cache) Delete ¶
Delete method will delete the response in Cache provider if exists corresponding to key param
func (*Cache) DeleteMany ¶
DeleteMany method will delete the responses in Cache provider if exists corresponding to the regex key param
func (*Cache) Prefix ¶
func (provider *Cache) Prefix(key string, req *http.Request, validator *rfc.Revalidator) *http.Response
Prefix method returns the populated response if exists, empty response then
type StorerInstanciator ¶
type StorerInstanciator func(configurationtypes.AbstractConfigurationInterface) (types.Storer, error)
Click to show internal directories.
Click to hide internal directories.