Documentation ¶
Index ¶
Constants ¶
View Source
const CacheType = "lru"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { // MaxEntries is the maximum number of request<->response pairs // to be stored in the cache. It defaults to 10e4 if left unset. MaxEntries int // Metrics is the metrics interface to record metric information // for the cache. It defaults to a No-Op metric implementation. Metrics metrics.Interface }
func (*Settings) SetDefaults ¶
func (s *Settings) SetDefaults()
func (*Settings) ToLinesNode ¶
Click to show internal directories.
Click to hide internal directories.