注册redis
parent
332f0f7805
commit
362639d5d9
|
|
@ -1,9 +1,9 @@
|
|||
using System.Reflection;
|
||||
using Autofac;
|
||||
using Autofac;
|
||||
using Autofac.Extensions.DependencyInjection;
|
||||
using ce.autofac.extension;
|
||||
using IdentityServer4.AccessTokenValidation;
|
||||
using Infrastructure;
|
||||
using Infrastructure.Cache;
|
||||
using Infrastructure.Extensions.AutofacManager;
|
||||
using Infrastructure.Middleware;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
|
|
@ -24,6 +24,7 @@ using OpenAuth.Repository;
|
|||
using OpenAuth.WebApi.Model;
|
||||
using SqlSugar;
|
||||
using Swashbuckle.AspNetCore.SwaggerUI;
|
||||
using System.Reflection;
|
||||
|
||||
|
||||
|
||||
|
|
@ -198,6 +199,7 @@ namespace OpenAuth.WebApi
|
|||
|
||||
#region MemoryCache
|
||||
services.AddMemoryCache();
|
||||
services.AddSingleton<RedisCacheContext>();
|
||||
#endregion
|
||||
|
||||
#region Cors
|
||||
|
|
|
|||
Loading…
Reference in New Issue