Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache caches Entry entries.
Call NewCache() for creating new Cache.
func NewCache ¶
NewCache creates new cache.
Cache size in bytes is limited by the value returned by getMaxSizeBytes() callback. Call MustStop() in order to free up resources occupied by Cache.
func (*Cache) SizeBytes ¶
SizeBytes returns an approximate size in bytes of all the blocks stored in the cache c.
func (*Cache) SizeMaxBytes ¶
SizeMaxBytes returns the max allowed size in bytes for c.
Click to show internal directories.
Click to hide internal directories.