lru

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LRUIds

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

func NewLRUIds

func NewLRUIds(capacity int) *LRUIds

func (*LRUIds) LeastRecent

func (l *LRUIds) LeastRecent() (uint32, bool)

func (*LRUIds) MoveTailToHead

func (l *LRUIds) MoveTailToHead() (uint32, bool)

func (*LRUIds) PushBack

func (l *LRUIds) PushBack(id uint32)

func (*LRUIds) Put

func (l *LRUIds) Put(id uint32)

Jump to

Keyboard shortcuts

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