protected virtual void ClearCache(IEnumerable <Member> members)
        {
            CustomerSearchCacheRegion.ExpireRegion();

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

            foreach (var entity in entities)
            {
                CustomerCacheRegion.ExpireInventory(entity);
            }
        }