func (m *memcacheData) setItemLocked(now time.Time, i mc.Item) { if cur, ok := m.items[i.Key()]; ok { m.stats.Items-- m.stats.Bytes -= uint64(len(cur.value)) } m.stats.Items++ m.stats.Bytes += uint64(len(i.Value())) m.items[i.Key()] = m.mkDataItemLocked(now, i) }