Documentation ¶
Index ¶
Constants ¶
View Source
const CacheType = "lru"
Variables ¶
View Source
var ( ErrMaxEntriesNegative = errors.New("max entries is negative") ErrMaxEntriesZero = errors.New("max entries is zero") )
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. // Note its type is int insted of uint* since its maximum value // is math.MaxInt (it's used as an int length). MaxEntries int // Metrics is the metrics interface to record metric information // for the cache. It defaults to a No-Op metric implementation. Metrics Metrics }
func (*Settings) SetDefaults ¶
func (s *Settings) SetDefaults()
func (*Settings) ToLinesNode ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.