perf: 优化错误提示

This commit is contained in:
橙子
2025-03-01 23:43:19 +08:00
parent d7d4fd8a48
commit c1535fd116

View File

@@ -34,7 +34,7 @@ public class DiscussLableRepository : SqlSugarRepository<DiscussLableAggregateRo
return entities.Adapt<List<DiscussLableCacheItem>>();
}, () =>
new DistributedCacheEntryOptions()
{ AbsoluteExpirationRelativeToNow = TimeSpan.FromHours(2) }
{ AbsoluteExpirationRelativeToNow = TimeSpan.FromHours(2) },hideErrors:true
);
return cahce.ToDictionary(x => x.Id);
}