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); }
public static void RefreshCache() { // InitCache(); ContainerPlanCache.Clear(); ContainerPlanCacheUsername.Clear(); }