shadowcache

package
v0.0.0-...-c94801d Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 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 ShadowCache

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

func NewCache

func NewCache(cap int64) *ShadowCache

func (*ShadowCache) EnforceCapacity

func (c *ShadowCache) EnforceCapacity()

func (*ShadowCache) GetAndResetHitRatio

func (c *ShadowCache) GetAndResetHitRatio() float64

func (*ShadowCache) GetCapacity

func (c *ShadowCache) GetCapacity() int64

func (*ShadowCache) Request

func (c *ShadowCache) Request(id string, size int64)

func (*ShadowCache) SetCapacity

func (c *ShadowCache) SetCapacity(cap int64)

Jump to

Keyboard shortcuts

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