lru

package
v0.0.0-...-8d3c4b6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 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 DBNode

type DBNode struct {
	Key, Val   int
	Prev, Next *DBNode
}

type LRUCache

type LRUCache struct {
	// contains filtered or unexported fields
}

func Constructor

func Constructor(d int) *LRUCache

func (*LRUCache) Get

func (cache *LRUCache) Get(key int) int

func (*LRUCache) Put

func (cache *LRUCache) Put(key, val int)

func (*LRUCache) String

func (cache *LRUCache) String() string

Jump to

Keyboard shortcuts

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