添加FusionCache
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2024-08-21 00:06:36 +08:00
parent 0b1a640c3e
commit f8cd361415
3 changed files with 11 additions and 2 deletions
+9
View File
@@ -140,6 +140,7 @@ builder.Services.AddJWTAuthSetup(_configuration);
// MediatR 进程内消息 事件解耦 从程序集中 注册命令和handler对应关系
//builder.Services.AddMediatR(cfg => cfg.RegisterServicesFromAssemblyContaining<ConsistencyVerificationHandler>());
#region MassTransit
//masstransit组件 也支持MediatR 中介者模式,但是支持分布式,考虑后续,所以在次替代MediatR
builder.Services.AddMediator(cfg =>
{
@@ -150,6 +151,14 @@ builder.Services.AddMassTransit(cfg =>
{
cfg.UsingInMemory();
});
#endregion
#region FusionCache
builder.Services.AddFusionCache();
#endregion
// EasyCaching 缓存
builder.Services.AddEasyCachingSetup(_configuration);