Esempio n. 1
0
        public static string SetInitMatchList(List <long> mList, bool force)
        {
            try
            {
                var forceUpdate = force;

                if (mList.Count <= 0)
                {
                    return("");
                }

                object[] outputParam = new object[] { };
                var      results     = CacheTool.GetOrAdd <string>("InitMatchList",
                                                                   () =>
                {
                    return(JsonConvert.SerializeObject(mList));
                }
                                                                   , 43200, forceUpdate);
                if (results == null)
                {
                    results = "";
                }
                return(results);
            }
            catch (Exception e)
            {
                throw new Exception(string.Format("Cannot get check list: {0}", e.Message));
            }
        }
Esempio n. 2
0
 public static string GetInitMatchList()
 {
     try
     {
         var results = CacheTool.Get <string>("InitMatchList");
         if (results == null)
         {
             results = "";
         }
         return(results);
     }
     catch (Exception e)
     {
         throw new Exception(string.Format("Cannot get check list: {0}", e.Message));
     }
 }