utils

package
v1.0.0-...-bcb789f Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2015 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ThreadsafeCache

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

func NewThreadsafeCache

func NewThreadsafeCache() *ThreadsafeCache

func (*ThreadsafeCache) Drop

func (c *ThreadsafeCache) Drop(key interface{})

func (*ThreadsafeCache) Get

func (c *ThreadsafeCache) Get(key interface{},
	defaultcb func(key interface{}) (interface{}, error)) (interface{}, error)

func (*ThreadsafeCache) Snapshot

func (c *ThreadsafeCache) Snapshot() map[interface{}]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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