lru

package
v0.0.0-...-e25560c Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 2 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(cap int) *LRU

func (*LRU) Get

func (l *LRU) Get(key interface{}) (value interface{}, exist bool)

func (*LRU) GetKeyFromValue

func (l *LRU) GetKeyFromValue(value interface{}) (key interface{}, exist bool)

func (*LRU) GetLastValue

func (l *LRU) GetLastValue() interface{}

func (*LRU) IsEmpty

func (l *LRU) IsEmpty() bool

func (*LRU) IsFull

func (l *LRU) IsFull() bool

func (*LRU) Put

func (l *LRU) Put(key, value interface{})

func (*LRU) ReplaceLastValue

func (l *LRU) ReplaceLastValue(key interface{}) interface{}

Jump to

Keyboard shortcuts

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