lru

package module
v0.0.0-...-8d36437 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2015 License: MIT Imports: 2 Imported by: 1

README

lru

Build Status

This package provides a simple LRU implementation.

See (http://godoc.org/github.com/droxer/lru) for documentation.

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
}

func New

func New(size int) *Cache

func (*Cache) Add

func (c *Cache) Add(key, value interface{})

func (*Cache) Get

func (c *Cache) Get(key interface{}) (value interface{}, ok bool)

func (*Cache) Reset

func (c *Cache) Reset()

Jump to

Keyboard shortcuts

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