lru

package
v0.0.0-...-e831e68 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 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 LRUCache

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

func GetInstance

func GetInstance(capacity int) *LRUCache

func NewLRUCache

func NewLRUCache(capacity int) *LRUCache

func (*LRUCache) Contains

func (l *LRUCache) Contains(key string) bool

func (*LRUCache) Put

func (l *LRUCache) Put(key string)

Jump to

Keyboard shortcuts

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