feat(dal): Task - доработка моделей

This commit is contained in:
Mikhail Trubnikov
2026-03-19 16:52:41 +10:00
parent 01c0200c6d
commit 92ab9ea6c2
15 changed files with 132 additions and 68 deletions

View File

@@ -65,39 +65,41 @@ namespace PARR.API.Controllers.V1
///// <summary>
///// Записать в кэш
///// </summary>
///// <param name="request"></param>
///// <returns></returns>
//[HttpPost(ApiRoutes.Test.CreateCache)]
//public async Task<IActionResult> CreateCache()
//{
// var hashKey = redisCacheService.GetKey(new[] { "test", "mxa" });
// var ttl = TimeSpan.FromMinutes(10);
/// <summary>
/// Записать в кэш
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost(ApiRoutes.Test.CreateCache)]
public async Task<IActionResult> CreateCache()
{
//var val = await redisCacheService.GetCachedDataAsync<object>("96dAoIH/8Q9Bg8VY");
// await redisCacheService.SetHashFieldAsync(hashKey, "t1", "val1", ttl);
// await redisCacheService.SetHashFieldAsync(hashKey, "t2", "val2");
// await redisCacheService.SetHashFieldAsync(hashKey, "t3", "val3");
//var hashKey = redisCacheService.GetKey(new[] { "test", "mxa" });
//var ttl = TimeSpan.FromMinutes(10);
// var length = await redisCacheService.GetHashLengthAsync(hashKey);
//await redisCacheService.SetHashFieldAsync(hashKey, "t1", "val1", ttl);
//await redisCacheService.SetHashFieldAsync(hashKey, "t2", "val2");
//await redisCacheService.SetHashFieldAsync(hashKey, "t3", "val3");
// var get = await redisCacheService.GetHashFieldAsync<string>(hashKey, "t1");
//var length = await redisCacheService.GetHashLengthAsync(hashKey);
// var getAll = await redisCacheService.GetAllHashFieldsAsync<string>(hashKey);
//var get = await redisCacheService.GetHashFieldAsync<string>(hashKey, "t1");
// await redisCacheService.DeleteHashFieldAsync(hashKey, "t1");
// var getT1 = await redisCacheService.GetHashFieldAsync<string>(hashKey, "t1");
//var getAll = await redisCacheService.GetAllHashFieldsAsync<string>(hashKey);
// var exist = await redisCacheService.HashFieldExistsAsync(hashKey, "t2");
//await redisCacheService.DeleteHashFieldAsync(hashKey, "t1");
//var getT1 = await redisCacheService.GetHashFieldAsync<string>(hashKey, "t1");
// await redisCacheService.DeleteHashAsync(hashKey);
// var getT_1 = await redisCacheService.GetHashFieldAsync<string>(hashKey, "t1");
//var exist = await redisCacheService.HashFieldExistsAsync(hashKey, "t2");
// await redisCacheService.SetHashTtlAsync(hashKey, ttl);
//await redisCacheService.DeleteHashAsync(hashKey);
//var getT_1 = await redisCacheService.GetHashFieldAsync<string>(hashKey, "t1");
// return Ok();
//}
//await redisCacheService.SetHashTtlAsync(hashKey, ttl);
return Ok();
}