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); } }
public void cache(string key, string value, long timeout) { HttpRuntimeCache.Set($"{Default_Cache_Prefix}{key}", value, timeout); }
public void Cache(string key, string value) { HttpRuntimeCache.Set($"{Default_Cache_Prefix}{key}", value); }