缓存 nbytes 问题
作者: superTruth创建于 2020年5月5日更新于 2020年5月5日
在 groupcache.go 中的 func (c *cache) add(key string, value ByteView) 中, "c.nbytes += int64(len(key)) + int64(value.Len())"
内容来源: golang/groupcache
在 groupcache.go 中的 func (c *cache) add(key string, value ByteView) 中, "c.nbytes += int64(len(key)) + int64(value.Len())"
内容来源: golang/groupcache