Merge branch 'develop' of https://gitlab.steamware.net/steamware/mapo-core into develop
This commit is contained in:
@@ -106,7 +106,7 @@ namespace MP.Data.Services
|
||||
sw.Start();
|
||||
List<AnagEventiModel>? result = new List<AnagEventiModel>();
|
||||
// cerco in redis...
|
||||
string currKey = $"{redisBaseKey}:AnagEventi";
|
||||
string currKey = $"{redisBaseKey}:AnagEventi:{IdxMacch}";
|
||||
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
||||
if (!string.IsNullOrEmpty($"{rawData}"))
|
||||
{
|
||||
@@ -115,7 +115,7 @@ namespace MP.Data.Services
|
||||
}
|
||||
else
|
||||
{
|
||||
result = dbTabController.AnagEventiGetAll();
|
||||
result = dbTabController.AnagEventiGetAll(IdxMacch);
|
||||
// serializzp e salvo...
|
||||
rawData = JsonConvert.SerializeObject(result);
|
||||
await redisDb.StringSetAsync(currKey, rawData, LongCache);
|
||||
|
||||
Reference in New Issue
Block a user