using Microsoft.Extensions.Caching.Distributed; using System; using Volo.Abp.AuditLogging; using Volo.Abp.BackgroundJobs; using Volo.Abp.Caching; using Volo.Abp.FeatureManagement; using Volo.Abp.Identity; using Volo.Abp.IdentityServer; using Volo.Abp.Modularity; using Volo.Abp.MultiTenancy; using Volo.Abp.PermissionManagement.Identity; using Volo.Abp.PermissionManagement.IdentityServer; using Volo.Abp.SettingManagement; using Volo.Abp.TenantManagement; using CompanyNameProjectName.MultiTenancy; namespace CompanyNameProjectName { [DependsOn( typeof(CompanyNameProjectNameDomainSharedModule), typeof(AbpAuditLoggingDomainModule), typeof(AbpBackgroundJobsDomainModule), typeof(AbpFeatureManagementDomainModule), typeof(AbpIdentityDomainModule), typeof(AbpPermissionManagementDomainIdentityModule), typeof(AbpIdentityServerDomainModule), typeof(AbpPermissionManagementDomainIdentityServerModule), typeof(AbpSettingManagementDomainModule), typeof(AbpTenantManagementDomainModule), typeof(EasyAbp.Abp.SettingUi.SettingUiDomainModule), typeof(AbpCachingModule) )] public class CompanyNameProjectNameDomainModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { Configure(options => { options.IsEnabled = MultiTenancyConsts.IsEnabled; }); // 设置全局默认缓存时间 //Configure(option => //{ // option.GlobalCacheEntryOptions.SetSlidingExpiration(TimeSpan.FromSeconds(7200)); //}); } } }