Provo modifica durata info statoProd in redis...
This commit is contained in:
@@ -1044,7 +1044,7 @@ namespace MP.Data.Services.IOC
|
||||
/// <returns></returns>
|
||||
private async Task<StatoProdModel> StatoProdMacchinaAsync(string idxMacchina, DateTime dtReq, bool forceDb = false)
|
||||
{
|
||||
string cKey = $"{MP.Data.Utils.redisStatoProd}:{idxMacchina}:{dtReq:HHmm}";
|
||||
string cKey = $"{MP.Data.Utils.redisStatoProd}:{idxMacchina}";
|
||||
return await GetOrFetchAsync(
|
||||
operationName: "StatoProdMacchinaAsync",
|
||||
cacheKey: cKey,
|
||||
@@ -1074,7 +1074,7 @@ namespace MP.Data.Services.IOC
|
||||
#endif
|
||||
return await _repo.StatoProdMacchinaAsync(idxMacchina, dtReq);
|
||||
},
|
||||
expiration: GetRandTOut(30),
|
||||
expiration: GetRandTOut(redisShortTimeCache),
|
||||
tagList: ["IOC_StatoProd", cKey, idxMacchina]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>8.16.2606.1118</Version>
|
||||
<Version>8.16.2606.1119</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MP-IOC </i>
|
||||
<h4>Versione: 8.16.2606.1118</h4>
|
||||
<h4>Versione: 8.16.2606.1119</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
8.16.2606.1118
|
||||
8.16.2606.1119
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>8.16.2606.1118</version>
|
||||
<version>8.16.2606.1119</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
@@ -184,7 +184,7 @@ namespace MP.RIOC.Services
|
||||
}
|
||||
else
|
||||
{
|
||||
isOrphanKey = keyTtl.Value.TotalSeconds < 0 || keyTtl.Value.TotalHours > 30.25 * 24;
|
||||
isOrphanKey = keyTtl.Value.TotalSeconds < 0 || keyTtl.Value.TotalDays > 30.25;
|
||||
}
|
||||
|
||||
// Se è orfana e abbiamo il permesso, segnamola per la cancellazione
|
||||
@@ -336,7 +336,7 @@ namespace MP.RIOC.Services
|
||||
}
|
||||
else
|
||||
{
|
||||
isOrphanKey = keyTtl.Value.TotalSeconds < 0 || keyTtl.Value.TotalHours > 15.25 * 24;
|
||||
isOrphanKey = keyTtl.Value.TotalSeconds < 0 || keyTtl.Value.TotalDays > 15.25;
|
||||
}
|
||||
|
||||
// Se è orfana e abbiamo il permesso, segnamola per la cancellazione
|
||||
@@ -438,7 +438,7 @@ namespace MP.RIOC.Services
|
||||
var p = relativeKey.Split(':');
|
||||
if (p.Length < 4) return false;
|
||||
|
||||
meta.IsHourType = p[1].Equals("hour", StringComparison.InvariantCultureIgnoreCase);
|
||||
meta.IsHourType = p[1].Contains("hour", StringComparison.InvariantCultureIgnoreCase);
|
||||
meta.Dest = p[2];
|
||||
if (meta.IsHourType)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user