lru

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2017 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 added in v0.7.0

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