track/src/SJZY.Track.Application/Services/ForewarningServices/KpiAreaCacheService.cs

27 lines
786 B
C#

using SJZY.Track.Application.Contract.Services;
using SJZY.Track.Domain.Aggregates.KPIAreaAggregate;
using Volo.Abp.DependencyInjection;
namespace SJZY.Track.Application.Services.ForewarningServices;
public class KpiAreaCacheService : IKpiAreaCacheService, ITransientDependency
{
const string GlobalKpiAreaLockKey = "KpiAreaCacheService_GlobalLock";
IKpiAreaRepository _kpiAreaRepository;
public KpiAreaCacheService(IKpiAreaRepository kpiAreaRepository)
{
_kpiAreaRepository = kpiAreaRepository;
}
private string GetKey(int systemId, string country)
{
return $"{GlobalConst.KpiAreaKeyPrefix}:{systemId}:{country}";
}
public Task GetKpiArea(int systemId, string country)
{
throw new NotImplementedException();
}
}