public void Save(Maybe <T> entity) { _decoretee.Save(entity); if (entity.HasValue) { ImmutableInterlocked.AddOrUpdate(ref _cache, entity.Value.Id, entity, (i, d) => entity); } }
public void Save(Maybe <T> entity) { Saving(entity); _decoretee.Save(entity); Saved(entity); }
public void Save(Maybe <Deal> deal) { _dealReadWrite.Save(deal); }