lrucache

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

README

lrucache

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 New

func New(capacity int) *LRUCache

func (*LRUCache) Count

func (lru *LRUCache) Count() int

Count gives the current count of the elements in this cache

func (*LRUCache) Dump

func (lru *LRUCache) Dump()

Dump prints the elements in the cache.

func (*LRUCache) Get

func (lru *LRUCache) Get(key string) (string, bool)

func (*LRUCache) Put

func (lru *LRUCache) Put(key string, value string)

Jump to

Keyboard shortcuts

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