using DS.Module.Core;
using DS.Module.RedisModule;
using DS.WMS.Core.Code.Interface;
using DS.WMS.Core.Code.Method;
using DS.WMS.Core.Sys.Interface;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Sys.Method
{
///
///
///
public class SysCommonCacheService: ISysCommonCacheService
{
private readonly IServiceProvider _serviceProvider;
private readonly IRedisService _redisService;
private readonly ICodeVesselService _codeVesselService;
public SysCommonCacheService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
_redisService = _serviceProvider.GetRequiredService();
_codeVesselService = _serviceProvider.GetRequiredService();
}
///
/// 加载公共缓存数据
///
///
public async Task> LoadCommonCache()
{
//SysCacheKeyEnum.CommonMappingVessel
var codeVessleRlt = await _codeVesselService.LoadCache();
return DataResult.Success(string.Empty);
}
}
}