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