lru

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LRUCache

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

func NewLRUCache

func NewLRUCache(cap int) *LRUCache

func (*LRUCache) Add

func (c *LRUCache) Add(key, value interface{})

func (*LRUCache) Contains

func (c *LRUCache) Contains(key interface{}) bool

func (*LRUCache) Get

func (c *LRUCache) Get(key interface{}) (value interface{})

func (*LRUCache) Len

func (c *LRUCache) Len() int

Jump to

Keyboard shortcuts

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