feat(core, infrastructure): RedisCacheService - изменение/добавление полей в кэше списокм. UnitCacheService - оптимизация при получении данных.

This commit is contained in:
Mikhail Trubnikov
2026-06-03 12:09:47 +10:00
parent d1de63e939
commit 66d1fe7b0d
4 changed files with 87 additions and 9 deletions

View File

@@ -91,7 +91,7 @@ namespace PARR.API.Controllers.V1
[HttpPost(ApiRoutes.Test.CreateCache)]
public async Task<IActionResult> CreateCache([FromBody] Guid unitId)
{
//var units = await unitRepository.Get().Take(100).Select(t => t.Id).ToListAsync();
//var units = await unitRepository.Get().Take(100000).Select(t => t.Id).ToListAsync();
//var listData = await unitService.GetWithCachingAsync(units);
//foreach(var unit in units)
//{