public static void setData(string key, object data) { if (cache.ContainsKey(key)) { remove(key); } MDebugLog.debug("[CacheResult-setData] key:" + key); cache.Add(key, data); }
public static object getData(string key) { MDebugLog.debug("[CacheResult-getData] key:" + key); return(cache.GetValueOrDefault(key)); }