In the groupcache.go func (c *cache) add(key string, value ByteView). "c.nbytes += int64(len(key)) + int64(value.Len())" If the key has already exist, the nbytes calaculate will wrong.