//private static void InitCache(string custom) //{ // //ContainerPlanList = GetContainerPlanbyCustom(); //} public static ContainerPlan Load(string tID) { if (ContainerPlanCache.ContainsKey(tID)) { return(ContainerPlanCache[tID]); } else { ContainerPlan cp = new ContainerPlan(); cp.ID = tID; cp.Select(); if (cp != null) { ContainerPlanCache.Add(tID, cp); } return(cp); } }
public static void RefreshCache() { // InitCache(); ContainerPlanCache.Clear(); ContainerPlanCacheUsername.Clear(); }