Versions in this module Expand all Collapse all v1 v1.6.1 Mar 8, 2020 Changes in this version + func Key(q dns.Question, ednsIP string) string + type Cache struct + func New(capacity int) *Cache + func (c *Cache) Capacity() int + func (c *Cache) Dump(nobody bool) (rs map[string][]string, l int) + func (c *Cache) EvictRandom() + func (c *Cache) Hit(key string, msgid uint16) *dns.Msg + func (c *Cache) InsertMessage(s string, m *dns.Msg, mTTL uint32) + func (c *Cache) Remove(s string) + func (c *Cache) Search(s string) (*dns.Msg, time.Time, bool) v1.6.1-rc1 Mar 8, 2020