sizecache

package
v0.0.0-...-f2d0646 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SizeCache

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

func New

func New(maxSize uint64) *SizeCache

func (*SizeCache) Add

func (c *SizeCache) Add(key interface{}, size uint64, value interface{})

func (*SizeCache) Get

func (c *SizeCache) Get(key interface{}) (interface{}, bool)

Jump to

Keyboard shortcuts

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