lru

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make(maxCapacity int) cache.ICache

Types

type LRU

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

func (*LRU) Get

func (lru *LRU) Get(key string) string

func (*LRU) Set

func (lru *LRU) Set(key, value string)

Jump to

Keyboard shortcuts

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