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