临时数据存储时间修改为10秒

This commit is contained in:
Hinse 2022-03-30 10:48:34 +08:00
parent 1a347f201a
commit 39c3bfa21f
2 changed files with 2 additions and 2 deletions

View File

@ -441,7 +441,7 @@ namespace Waste.Application.ThirdApiInfo
else
{
var val = await _cahce.GetAsync(result.sn);
var time = new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(5));
var time = new DistributedCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromSeconds(10));
if (val != null && val.Length > 0)
{
byte[] newval = new byte[val.Length + result.databyte.Length];

File diff suppressed because one or more lines are too long