lru

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LRU

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

func New

func New(settings Settings) *LRU

func (*LRU) Add

func (l *LRU) Add(request, response *dns.Msg)

func (*LRU) Get

func (l *LRU) Get(request *dns.Msg) (response *dns.Msg)

type Settings

type Settings struct {
	MaxEntries int
}

func (*Settings) Lines

func (s *Settings) Lines(indent, subSection string) (lines []string)

func (*Settings) SetDefaults

func (s *Settings) SetDefaults()

func (*Settings) String

func (s *Settings) String() string

Jump to

Keyboard shortcuts

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