解析结果缓存一分钟

This commit is contained in:
xljiulang 2021-07-24 02:17:07 +08:00
parent 33046781ac
commit eaf9d2bbad

View File

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