Example #1
0
 public void Init()
 {
     while (database == null)
     {
         try
         {
             redisServer = RedisManager.GetRedisServer("RedisImbo");
             database    = redisServer.GetDatabase(0);
             return;
         }
         catch (Exception ex01)
         {
             log.Error(ex01);
             Thread.Sleep(10000);
         }
     }
 }
Example #2
0
 private CacheProductHash()
 {
     while (true)
     {
         try
         {
             redisServer = RedisManager.GetRedisServer("redisCacheCrawlerDuplicate");
             _database   = redisServer.GetDatabase(15);
             break;
         }
         catch (Exception ex)
         {
             _log.Error(ex);
             Thread.Sleep(10000);
         }
     }
 }
Example #3
0
 private CacheDuplicateProduct()
 {
     while (true)
     {
         try
         {
             _redisServer = RedisManager.GetRedisServer(ConfigRun.KeyRedisCrawlerProduct);
             _database    = _redisServer.GetDatabase(4);
             break;
         }
         catch (Exception ex)
         {
             _log.Error(ex);
             Thread.Sleep(10000);
         }
     }
 }
Example #4
0
 public void Init()
 {
     while (_database == null)
     {
         try
         {
             _redisServer = RedisManager.GetRedisServer(ConfigRun.KeyRedisCrawlerProduct);
             _database    = _redisServer.GetDatabase(8);
             return;
         }
         catch (Exception ex01)
         {
             _log.Error(ex01);
             Thread.Sleep(new Random().Next(0, 10000));
         }
     }
 }
Example #5
0
 public void Init()
 {
     while (_database == null)
     {
         try
         {
             _redisServer = RedisManager.GetRedisServer("redisDuplicateProduct");
             _database    = _redisServer.GetDatabase(12);
             return;
         }
         catch (Exception ex01)
         {
             _log.Error(ex01);
             Thread.Sleep(10000);
         }
     }
 }
Example #6
0
 public void Init()
 {
     while (database == null)
     {
         try
         {
             redisServer = RedisManager.GetRedisServer("redisLastUpdateProductInCompany");
             database    = redisServer.GetDatabase(13);
             return;
         }
         catch (Exception ex01)
         {
             log.Error(ex01);
             Thread.Sleep(10000);
         }
     }
 }
Example #7
0
 public RedisCheckDuplicateAdapter(string server)
 {
     redisServer = RedisManager.GetRedisServer(server);
     database    = redisServer.GetDatabase(4);
 }
Example #8
0
 private RedisCheckDuplicateAdapter()
 {
     redisServer = RedisManager.GetRedisServer("redisCacheCrawlerDuplicate");
     database    = redisServer.GetDatabase(4);
 }
Example #9
0
 public RedisHistoryCrawler()
 {
     redisServer = RedisManager.GetRedisServer("redisCacheCrawlerDuplicate");
     database    = redisServer.GetDatabase(10);
 }
Example #10
0
 private CacheTrackDeleteProduct()
 {
     redisServer = RedisManager.GetRedisServer("cacheTrackValidProduct");
     database    = redisServer.GetDatabase(1);
 }