缓存时间修改 需要同步

Uat_Study
he 2023-12-01 11:05:16 +08:00
parent 72cb407766
commit cdf1119764
1 changed files with 1 additions and 1 deletions

View File

@ -2488,7 +2488,7 @@ namespace IRaCIS.Application.Services
var value = _provider.Get<string>(cacheKey).Value; var value = _provider.Get<string>(cacheKey).Value;
if (value == null) if (value == null)
{ {
_provider.Set(cacheKey, DateTime.Now.ToString(), TimeSpan.FromHours(5)); _provider.Set(cacheKey, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), TimeSpan.FromHours(5));
// _cache.Set(cacheKey, DateTime.Now.ToString(), TimeSpan.FromHours(5)); // _cache.Set(cacheKey, DateTime.Now.ToString(), TimeSpan.FromHours(5));
} }