Back to

Package lru

Latest Go to latest

The latest major version is .

Published: 1 day ago | License: MIT | Module:


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)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier