public static string Push(object obj, string type) { M_CacheMod model = new M_CacheMod(); model.obj = obj; model.Type = type; list.Add(model); return(model.id); }
public static object Pop(string guid) { M_CacheMod model = Get(guid); if (model != null) { list.Remove(model); } return(model.obj); }