Browse Source

减少缓存时长

xljiulang 4 years ago
parent
commit
15b31e6fa5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      FastGithub.DomainResolve/DomainResolver.cs

+ 1 - 1
FastGithub.DomainResolve/DomainResolver.cs

@@ -19,7 +19,7 @@ namespace FastGithub.DomainResolve
         private readonly IMemoryCache memoryCache;
         private readonly FastGithubConfig fastGithubConfig;
         private readonly ILogger<DomainResolver> logger;
-        private readonly TimeSpan cacheTimeSpan = TimeSpan.FromMinutes(1d);
+        private readonly TimeSpan cacheTimeSpan = TimeSpan.FromSeconds(10d);
 
         /// <summary>
         /// 域名解析器