cache

package
v0.0.0-...-a976c05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2022 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(maxSize int) *Cache

func (*Cache) Clear

func (c *Cache) Clear()

func (*Cache) Lookup

func (c *Cache) Lookup(q dns.Question, addr string) (*dns.Msg, time.Duration, time.Duration)

func (*Cache) Update

func (c *Cache) Update(q dns.Question, addr string, resp *dns.Msg, ttl time.Duration)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL