添加缩略图同步功能
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
|
||||
if (Appsettings.appBool("Redis_Enabled"))
|
||||
{
|
||||
services.Configure<RedisConnOptions>(Appsettings.appConfiguration("RedisConnOptions"));
|
||||
services.AddSingleton<CacheClientDB>();
|
||||
services.AddSingleton<CacheInvoker>();
|
||||
}
|
||||
return services;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
|
||||
|
||||
if (Appsettings.appBool("RedisSeed_Enabled"))
|
||||
{
|
||||
var _cacheClientDB = app.ApplicationServices.GetService<CacheClientDB>();
|
||||
var _cacheClientDB = app.ApplicationServices.GetService<CacheInvoker>();
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user