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)
Click to show internal directories.
Click to hide internal directories.