concurrent

package
v0.0.0-...-6a50f26 Latest Latest
Warning

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

Go to latest
Published: May 18, 2015 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheResult

type CacheResult struct {
	V     interface{}
	Found bool
}

type LRUCache

type LRUCache interface {
	GetMultiple(keys []string) []CacheResult
	Get(key string) (v interface{}, found bool)
	Set(key string, v interface{})
	SetMultiple(keyValues map[string]interface{})
	Delete(keys ...string)
	Clear()
}

func NewLRUCache

func NewLRUCache(size int) LRUCache

type Map

type Map interface {
	Get(key interface{}) (interface{}, bool)
	Set(key interface{}, value interface{})
	Delete(key interface{})
	Len() int
}

func NewMap

func NewMap() Map

Jump to

Keyboard shortcuts

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