lru

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: MPL-2.0 Imports: 4 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 {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*LRU) Get

func (c *LRU) Get(key string) (string, error)

Get looks up a key's value from the gocache

func (*LRU) Initialize

func (c *LRU) Initialize(size int)

Initialize instantiates an LRU gocache of the provided capacity

func (*LRU) Put

func (c *LRU) Put(key, value string)

Put adds an entry to gocache

Jump to

Keyboard shortcuts

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