111
wanshenmean
8 天以前 cce642111ff2bfa5c348d5733d77e7ce5e396d54
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_RedisService/Extensions/RedisServiceSetup.cs
@@ -71,6 +71,12 @@
            services.AddSingleton<ISessionStorage, RedisSessionStorage>();
            services.AddSingleton<IRedisMonitorService, RedisMonitorService>();
            // 后台服务(仅在启用L1缓存时注册)
            if (options.EnableL1Cache)
            {
                services.AddHostedService<CacheSyncBackgroundService>();
            }
            return services;
        }
    }