lrucache

package
v0.0.0-...-1f32f52 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2014 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

A standard LRU cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LRUCache

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

func New

func New(maxSize int) *LRUCache

func (*LRUCache) Get

func (cache *LRUCache) Get(key string) (val interface{}, ok bool)

func (*LRUCache) Len

func (cache *LRUCache) Len() int

func (*LRUCache) Set

func (cache *LRUCache) Set(key string, val interface{})

Jump to

Keyboard shortcuts

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