godropbox: github.com/dropbox/godropbox/container/lrucache Index | Files

package lrucache

import "github.com/dropbox/godropbox/container/lrucache"

Package lrucache is a standard LRU cache.

Index

Package Files

lrucache.go

type LRUCache Uses

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

func New Uses

func New(maxSize int) *LRUCache

func (*LRUCache) Delete Uses

func (cache *LRUCache) Delete(key string) (val interface{}, existed bool)

func (*LRUCache) Get Uses

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

func (*LRUCache) Len Uses

func (cache *LRUCache) Len() int

func (*LRUCache) MaxSize Uses

func (cache *LRUCache) MaxSize() int

func (*LRUCache) Set Uses

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

Package lrucache imports 1 packages (graph) and is imported by 10 packages. Updated 2018-03-12. Refresh now. Tools for package owners.