Фикс ключа кэша

This commit is contained in:
Степанов Дмитрий 2024-09-02 18:53:25 +05:00
parent 194df95d28
commit 787fd478eb

View File

@ -109,7 +109,7 @@ public class WellOperationRepository : CrudRepositoryBase<WellOperationBaseDto,
public async Task<IEnumerable<SectionByOperationsDto>> GetSectionsAsync(IEnumerable<int> idsWells, CancellationToken token)
{
const string keyCacheSections = "OperationsBySectionSummarties";
var keyCacheSections = $"OperationsBySectionSummaries_{string.Join('_', idsWells.OrderBy(x => x))}";
var cache = await memoryCache.GetOrCreateAsync(keyCacheSections, async (entry) =>
{