public bool containsKey(string key) { var cacheObj = HttpRuntimeCache.Get($"{Default_Cache_Prefix}{key}"); if (cacheObj != null) { return(true); } return(false); }
public string get(string key) { var cacheObj = HttpRuntimeCache.Get($"{Default_Cache_Prefix}{key}"); if (cacheObj != null) { return(Convert.ToString(cacheObj)); } else { return(null); } }