mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 08:10:51 +08:00
完成redis
This commit is contained in:
@@ -4,6 +4,7 @@ using Microsoft.OpenApi.Models;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Yi.Framework.Common.IOCOptions;
|
||||
using Yi.Framework.Core;
|
||||
|
||||
namespace Yi.Framework.WebCore.MiddlewareExtend
|
||||
{
|
||||
@@ -17,6 +18,7 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
|
||||
if (Appsettings.appBool("Redis_Enabled"))
|
||||
{
|
||||
services.Configure<RedisConnOptions>(Appsettings.appConfiguration("RedisConn"));
|
||||
services.AddTransient<CacheClientDB>();
|
||||
}
|
||||
return services;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user