lru

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type General added in v0.8.0

type General interface {
	Get(key string) (Node, bool)
	Set(node Node) error
}

func NewGeneralCache added in v0.8.0

func NewGeneralCache(size uint) (General, error)

type KeyBytes added in v0.8.0

type KeyBytes interface {
	Get(key string) ([][]byte, bool)
	Set(key string, value [][]byte) error
}

func NewKeyBytesCache added in v0.8.0

func NewKeyBytesCache(size uint, acceptNilValue bool) (KeyBytes, error)

type Node added in v0.8.0

type Node interface {
	GetNext() Node
	SetNext(Node)
	GetPrevious() Node
	SetPrevious(Node)
	GetKey() string
	Drop()
}

Jump to

Keyboard shortcuts

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