lru

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	Key interface{}
	Val interface{}
}

type Lru

type Lru interface {
	Get(interface{}, NewLruElement) *Element
	// contains filtered or unexported methods
}

func NewLru

func NewLru(lruMaxLength int, mThresholdFactor float32) Lru

type NewLruElement

type NewLruElement func(interface{}) *Element

Jump to

Keyboard shortcuts

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