/// <summary> /// 读取指定对象 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="keyValue"></param> /// <param name="key"></param> /// <returns></returns> public static async Task <T?> Get <T>(this IKeyValueService keyValue, string key) where T : class { var temp = await keyValue.GetString(key); if (string.IsNullOrEmpty(temp)) { return(JsonConvert.DeserializeObject <T>(temp)); } else { return(default);