feat(dal): CacheMatchigStatusService реализация
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user