dengch 6 years ago
parent
commit
7aef9909f2
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Cache/Cache/LotteryCache.cs

+ 5 - 5
Cache/Cache/LotteryCache.cs

@@ -20,7 +20,7 @@ namespace Cache.Cache
             {
             {
                 list = KJBLL.GetLotteryListAsync();
                 list = KJBLL.GetLotteryListAsync();
                 if (list != null)
                 if (list != null)
-                    BaseCache.Add(key, list, 20);
+                    BaseCache.Add(key, list, 60);
             }
             }
             return list;
             return list;
             
             
@@ -44,7 +44,7 @@ namespace Cache.Cache
                 model = KJBLL.GetLotteryDataAsync(lotteryType);
                 model = KJBLL.GetLotteryDataAsync(lotteryType);
 
 
                 if (model != null)
                 if (model != null)
-                    BaseCache.Add(key, model, 20);
+                    BaseCache.Add(key, model, 60);
             }
             }
             return model;
             return model;
         }
         }
@@ -208,7 +208,7 @@ namespace Cache.Cache
             {
             {
                 list = KJBLL.GetLotteryList(lotterytype, day);
                 list = KJBLL.GetLotteryList(lotterytype, day);
                 if (list != null)
                 if (list != null)
-                    BaseCache.Add(key, list, 20);
+                    BaseCache.Add(key, list, 60);
             }
             }
             var rulelist = TJDataCache.GetDataItemModelCache();
             var rulelist = TJDataCache.GetDataItemModelCache();
             for (int i = 0; i < list.Count; i++)
             for (int i = 0; i < list.Count; i++)
@@ -244,7 +244,7 @@ namespace Cache.Cache
             {
             {
                 list = KJBLL.GetLotteryList(lotterytype, queryParam);
                 list = KJBLL.GetLotteryList(lotterytype, queryParam);
                 if (list != null)
                 if (list != null)
-                    BaseCache.Add(key, list, 20);
+                    BaseCache.Add(key, list, 60);
             }
             }
             var rulelist = TJDataCache.GetDataItemModelCache();
             var rulelist = TJDataCache.GetDataItemModelCache();
             for (int i = 0; i < list.Count; i++)
             for (int i = 0; i < list.Count; i++)
@@ -272,7 +272,7 @@ namespace Cache.Cache
             {
             {
                 list = KJBLL.GetTopNumList(lottery, order, count, isdesc);
                 list = KJBLL.GetTopNumList(lottery, order, count, isdesc);
                 if (list != null)
                 if (list != null)
-                    BaseCache.Add(key, list, 20);
+                    BaseCache.Add(key, list, 60);
             }
             }
             if (list == null)
             if (list == null)
             {
             {