/// <summary> /// 存储数据到hash表 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="key"></param> /// <param name="dataKey"></param> /// <param name="t"></param> /// <param name="overdueStrategy"></param> /// <returns></returns> public async Task <bool> HashSetAsync <T>(string key, string dataKey, T t, OverdueStrategy overdueStrategy = null) { return((await base.Execute(overdueStrategy, () => { return QuickHelperBase.HashSetAsync(key, dataKey, ConvertJson <T>(t)); }, () => { return Task.FromResult("False"); })).Equals("TRUE", StringComparison.OrdinalIgnoreCase)); // return string.Equals(await QuickHelperBase.HashSetAsync(key, dataKey, ConvertJson<T>(t)), "TRUE", // StringComparison.OrdinalIgnoreCase); }
/// <summary> /// 存储数据到hash表 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="key"></param> /// <param name="dataKey"></param> /// <param name="t"></param> /// <returns></returns> public async Task <bool> HashSetAsync <T>(string key, string dataKey, T t) { return(string.Equals(await QuickHelperBase.HashSetAsync(key, dataKey, ConvertJson <T>(t)), "TRUE", StringComparison.OrdinalIgnoreCase)); }