wanshenmean
7 小时以前 bd40cc9e7dd6352915568ce49baa4accd1d9645b
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;
        }