feat(dal): CacheMatchigStatusService реализация

This commit is contained in:
Mikhail Trubnikov
2026-01-15 15:46:50 +10:00
parent b5c25f3110
commit 3205c1db8e
2 changed files with 43 additions and 26 deletions

View File

@@ -1,19 +1,18 @@
using PARR.DAL.Cache.Models;
using PARR.Constants;
using PARR.DAL.Cache.Models;
namespace PARR.DAL.Cache.Services
{
/// <summary>
/// Сервис - статус matching`a
/// </summary>
public interface ICacheMatchingStatusService
{
Task<MatchingStatus?> GetDataByJobIdAsync(Guid jobId);
Task<MatchingStatus?> GetDataAsync(Guid id, SyncTaskEntityTypeEnum type);
Task<MatchingStatus?> GetDataByJobGroupIdAsync(Guid jobGroupId);
Task SetCacheAsync(Guid id, SyncTaskEntityTypeEnum type, MatchingStatusDto data, TimeSpan cacheDuration);
Task SetCahcheByJobIdAsync(Guid jobId, MatchingStatusDto data);
Task DeleteCacheAsync(Guid id, SyncTaskEntityTypeEnum type);
Task SetCahcheByJobGroupIdAsync(Guid jobGroupId, MatchingStatusDto data);
Task DeleteCacheByJobIdAsync(Guid jobId);
Task DeleteCacheByJobGroupIdAsync(Guid jobGroupId);
}
}