Documentation
¶
Overview ¶
Package plugin-ramcache is a plugin to cache responses to disk.
Package plugin-ramcache is a plugin to cache responses to memory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
MaxExpiry int `json:"maxExpiry" yaml:"maxExpiry" toml:"maxExpiry"`
RefreshTime int `json:"refreshTime" yaml:"refreshTime" toml:"refreshTime"`
AddStatusHeader bool `json:"addStatusHeader" yaml:"addStatusHeader" toml:"addStatusHeader"`
CacheQueryParams bool `json:"cacheQueryParams" yaml:"cacheQueryParams" toml:"cacheQueryParams"`
ForceNoCacheHeader bool `json:"forceNoCacheHeader" yaml:"forceNoCacheHeader" toml:"forceNoCacheHeader"`
BlacklistedHeaders []string `json:"blacklistedHeaders" yaml:"blacklistedHeaders" toml:"blacklistedHeaders"`
}
Config configures the middleware.
Click to show internal directories.
Click to hide internal directories.