public T Get <T>(string key) { V_0 = DistributedCacheExtensions.GetString(this._cache, key); if (String.IsNullOrEmpty(V_0)) { V_1 = default(T); return(V_1); } return(JsonConvert.DeserializeObject <T>(V_0, this._jsonSettings)); }
public static string GetString(this IDistributedCache cache, string key) { return(DistributedCacheExtensions.GetString(cache, key)); }
public void Set <T>(string key, T value) { DistributedCacheExtensions.SetString(this._cache, key, JsonConvert.SerializeObject(value, this._jsonSettings)); return; }