Versions in this module Expand all Collapse all v0 v0.40.4 May 19, 2022 Changes in this version + type ExpireCallback func(key interface{}) + type SizeCache struct + func New(maxSize uint64) *SizeCache + func NewWithExpireCallback(maxSize uint64, cb ExpireCallback) *SizeCache + func (c *SizeCache) Add(key interface{}, size uint64, value interface{}) + func (c *SizeCache) Drop(key interface{}) + func (c *SizeCache) Get(key interface{}) (interface{}, bool) + func (c *SizeCache) Size() uint64