protected virtual void ClearCache(IEnumerable <Member> members) { CustomerSearchCacheRegion.ExpireRegion(); foreach (var member in members.Where(x => !x.IsTransient())) { CustomerCacheRegion.ExpireMemberById(member.Id); } }
protected virtual void ClearCache(IEnumerable <Member> entities) { CustomerSearchCacheRegion.ExpireRegion(); foreach (var entity in entities) { CustomerCacheRegion.ExpireInventory(entity); } }