修改缓存

usertest
jianghaiqing 4 months ago
parent 9f115f2bda
commit 74fb4dbb66

@ -39,7 +39,7 @@ namespace DS.WMS.Core.Sys.Method
{
var currVal =_redisService.GetValue<List<T>>($"{cacheCategory.ToString()}_{systemKey}");
_redisService.Dispose();
//_redisService.Dispose();
if (currVal == null)
return DataResult<List<T>>.FailedData(new List<T>());
@ -61,7 +61,7 @@ namespace DS.WMS.Core.Sys.Method
_redisService.SetValue($"{cacheCategory.ToString()}_{systemKey}", JsonConvert.SerializeObject(cacheObj));
_redisService.Dispose();
//_redisService.Dispose();
return DataResult<string>.Success(string.Empty);
}
@ -76,7 +76,7 @@ namespace DS.WMS.Core.Sys.Method
{
_redisService.DeleteKey($"{cacheCategory.ToString()}_{systemKey}");
_redisService.Dispose();
//_redisService.Dispose();
return DataResult.Successed(MultiLanguageConst.RemoveCacheSucc);
}

Loading…
Cancel
Save