public void Remove(long key, ITransactionContext context) { context.Exclusive(); if (!map.Remove(key)) { throw new ArgumentException($"Key {key} not found!"); } }
public void Update(DataUnit data, ITransactionContext context) { context.Exclusive(); map[data.Key] = data; }
public void Add(DataUnit data, ITransactionContext context) { context.Exclusive(); map.Add(data.Key, data); }