xiazhengtongxue
昨天 687ed48ddc763e5674eb34b7f4e4227c30e2d384
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/HostedService/ApiRouteCacheWarmupHostedService.cs
@@ -46,8 +46,16 @@
        public Task StartAsync(CancellationToken cancellationToken)
        {
            const string cacheKey = $"{RedisPrefix.Code}";
            _cache.RemoveByPrefix($"{cacheKey}");
            const string cacheKeyPrefix = $"{RedisPrefix.Code}:{RedisName.API}:";
            int warmedCount = 0;
            foreach ((string configKey, string routePath) in ApiRouteMappings)
            {
@@ -55,7 +63,7 @@
                warmedCount++;
            }
            _logger.LogInformation("API路由缓存预热完成。数量={Count}", warmedCount);
            _logger.LogInformation("API路由缓存预热完成,共加载={Count}个路由映射", warmedCount);
            return Task.CompletedTask;
        }