tunsafe

package
v0.0.0-...-9640324 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 3 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 BytesLimit

func BytesLimit(limit int) LRU

func New

func New(maxCnt int) LRU

func (*LRU) Add

func (l *LRU) Add(key lru.Key, value lru.Value) bool

func (*LRU) Get

func (l *LRU) Get(key lru.Key) (lru.Value, bool)

func (*LRU) Len

func (l *LRU) Len() int

Jump to

Keyboard shortcuts

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