|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|