예제 #1
0
            public static List <ContainerPlan> LoadByUsername(string username)
            {
                List <ContainerPlan> list = new List <ContainerPlan>();

                if (ContainerPlanCacheUsername.ContainsKey(username))
                {
                    list = ContainerPlanCacheUsername[username];
                }
                else
                {
                    list = GetContainerPlanbyCustom(username);

                    if (list != null && list.Count > 0)
                    {
                        ContainerPlanCacheUsername.Add(username, list);
                    }
                }

                return(list);
            }
예제 #2
0
 public static void RefreshCache()
 {
     // InitCache();
     ContainerPlanCache.Clear();
     ContainerPlanCacheUsername.Clear();
 }