feat(dal): CacheService - структура + CacheMatchingStatusService
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using PARR.DAL.CacheServices;
|
||||
using PARR.DAL.Cache.Services;
|
||||
using PARR.DAL.Cache.Services.Base;
|
||||
using PARR.DAL.Configurations.DbSettings;
|
||||
using PARR.DAL.Context;
|
||||
using PARR.DAL.Contracts;
|
||||
@@ -39,7 +40,7 @@ namespace PARR.DAL
|
||||
.UseNpgsql(configuration.GetConnectionString("DefaultConnection"))
|
||||
);
|
||||
|
||||
#region Redis
|
||||
#region Redis + cache services
|
||||
|
||||
services.AddStackExchangeRedisCache(opt =>
|
||||
{
|
||||
@@ -52,6 +53,8 @@ namespace PARR.DAL
|
||||
|
||||
services.AddTransient<IRedisCacheService, RedisCacheService>();
|
||||
|
||||
services.AddTransient<ICacheMatchingStatusService, CacheMatchingStatusService>();
|
||||
|
||||
#endregion
|
||||
|
||||
#region InfluxDb
|
||||
@@ -139,6 +142,8 @@ namespace PARR.DAL
|
||||
services.AddTransient<IShortcodesService, ShortcodesService>();
|
||||
services.AddTransient<IUnitFilterService, UnitFilterService>();
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user