public void ClearAuctionListRegion() { ICacheDataProvider CacheRepository; if (Consts.DataCachingTechnology == DataCacheTechnology.MEMORYOBJECT) { CacheRepository = new CacheDataProvider(); } else { CacheRepository = new AppFabricCacheProviderSystemRegions(Consts.ProductName); } List <string> keys = CacheRepository.Clear(DataCacheType.RESOURCE.ToString(), "AUCTIONLISTS"); StringBuilder sb = new StringBuilder(); sb.AppendLine("[(ClearAuctionListRegion) CACHE CLEARED: " + System.DateTime.Now.ToString() + "]"); keys.ForEach(k => sb.AppendLine(k)); Logger.LogInfo(sb.ToString()); }