Exemple #1
0
 public static void Subscribe()
 {
     RedisManager.Subscribe("RefreshProductCache", (channel, info) =>
     {
         try
         {
             // Console.WriteLine(info);
             var qrefresh = JsonConvert.DeserializeObject <IEnumerable <ObjectModels.DTOs.MemoryCacheRefreshQuery> >(info);
             ProductCache.RefreshProduct(qrefresh);
         }
         catch { }
     });
 }