forked from ddrilling/AsbCloudServer
Фикс ключа кэша
This commit is contained in:
parent
194df95d28
commit
787fd478eb
@ -109,7 +109,7 @@ public class WellOperationRepository : CrudRepositoryBase<WellOperationBaseDto,
|
|||||||
|
|
||||||
public async Task<IEnumerable<SectionByOperationsDto>> GetSectionsAsync(IEnumerable<int> idsWells, CancellationToken token)
|
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) =>
|
var cache = await memoryCache.GetOrCreateAsync(keyCacheSections, async (entry) =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user