lru

package
Version: v0.11.9 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LRU

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

func New

func New(size int) *LRU

func (LRU) Add

func (l LRU) Add(ctx context.Context, key string, value interface{})

func (LRU) Get

func (l LRU) Get(ctx context.Context, key string) (value interface{}, ok bool)

Source Files

Jump to

Keyboard shortcuts

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