/// <summary> /// 데이터 있나 검사 /// </summary> /// <param name="data"></param> /// <returns></returns> private bool HasData(UsaStockKeyStats data) { if (!string.IsNullOrEmpty(data?.Ticker)) { return(true); } else { return(false); } }
/// <summary> /// 캐시에 저장하기 /// </summary> /// <param name="ticker"></param> /// <param name="val"></param> private void SetUsaStockCache(string ticker, UsaStockKeyStats val) { cache.Set(ticker, Newtonsoft.Json.JsonConvert.SerializeObject(val)); }