using SJZY.Track.Application.Contract.Dtos.Forewarning;
using SJZY.Track.Application.Contract.Events;
namespace SJZY.Track.Application.Contract.Services;
public interface IForewarningCacheService
{
///
/// 获取预警规则,如果没有则返回null
///
/// 子系统id
/// 客户id
///
Task?> GetRulesAsync(int subSystemId, int customerId);
///
/// 重置本地缓存
///
///
Task Clear(ClearRulCacheEvent @event);
///
/// 清除redis 缓存
///
///
Task ClearRedisByAreaId(int areaId);
///
/// 清除redis 缓存
///
/// 子系统id
/// 客户id
///
Task ClearRedisBySystemIdAndCustomer(int subSystemId, int customerId);
}