Versions in this module Expand all Collapse all v1 v1.0.2 May 13, 2023 v1.0.1 May 13, 2023 Changes in this version + var ErrParseCacheType = errors.New("cannot parse cache type") + type Cache interface + Add func(request, response *dns.Msg) + Get func(request *dns.Msg) (response *dns.Msg) + func New(settings Settings) Cache + type Settings struct + LRU lru.Settings + Type Type + func (s *Settings) Lines(indent, subSection string) (lines []string) + func (s *Settings) SetDefaults() + func (s *Settings) String() string + type Type string + const Disabled + const LRU + func ListTypes() (types []Type) + func ParseCacheType(s string) (cacheType Type, err error)