lru

package module
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: 0 Imported by: 0

README

lru

Implementation of LRU cache in Go with the ability to limit bytes and quantity of items. It is possible to work thread-safe

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key interface{}

type LRU

type LRU interface {
	Add(key Key, value Value) bool
	Len() int
	Get(key Key) (Value, bool)
}

type Value

type Value interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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