mru

package
v0.8.13 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

func NewMap

func NewMap(cap int, maxage time.Duration) *Map

func (*Map) Add

func (m *Map) Add(k interface{}, v interface{})

func (*Map) Lookup

func (m *Map) Lookup(k interface{}, withAging, touch bool) (interface{}, bool)

Jump to

Keyboard shortcuts

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