public static JsonUser GetCache(string token) { try { JsonUser r = (JsonUser)CacheHelper.GetCache(token); if (r != null) { return(r); } return(null); } catch (Exception) { return(null); } }
public static void SetCache(string token, JsonUser r) { CacheHelper.SetCache(token, r, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromDays(90)); }