mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-18 15:36:37 +08:00
修复问题
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
|
||||
{
|
||||
if (Appsettings.appBool("Redis_Enabled"))
|
||||
{
|
||||
services.Configure<RedisConnOptions>(Appsettings.appConfiguration("RedisConn"));
|
||||
services.Configure<RedisConnOptions>(Appsettings.appConfiguration("RedisConnOptions"));
|
||||
services.AddTransient<CacheClientDB>();
|
||||
}
|
||||
return services;
|
||||
|
||||
@@ -15,10 +15,10 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
|
||||
public static class RedisInitExtend
|
||||
{
|
||||
private static readonly ILog log = LogManager.GetLogger(typeof(RedisInitExtend));
|
||||
public static void UseRedisInitService(this IApplicationBuilder app, CacheClientDB _cacheClientDB)
|
||||
public static void UseRedisSeedInitService(this IApplicationBuilder app, CacheClientDB _cacheClientDB)
|
||||
{
|
||||
|
||||
if (Appsettings.appBool("RedisSet_Enabled"))
|
||||
if (Appsettings.appBool("RedisSeed_Enabled"))
|
||||
{
|
||||
if (app == null) throw new ArgumentNullException(nameof(app));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user