lru

package
v0.0.0-...-7aea3de Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: Apache-2.0, Apache-2.0 Imports: 1 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 {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewLRU

func NewLRU(size int) *LRU

func (*LRU) Add

func (l *LRU) Add(i int, v []byte)

func (*LRU) Get

func (l *LRU) Get(i int) ([]byte, bool)

Jump to

Keyboard shortcuts

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