lru

package
v0.0.0-...-dc6e3ae Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 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 Cache

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

Cache implements an LRU cache.

func New

func New(size int) *Cache

func (*Cache) Del

func (lru *Cache) Del(key string)

func (*Cache) Get

func (lru *Cache) Get(key string) (interface{}, bool)

func (*Cache) Put

func (lru *Cache) Put(key string, value interface{})

Jump to

Keyboard shortcuts

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