|
@@ -997,11 +997,9 @@ namespace TEAMModelOS.Controllers
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//为节省服务器开销, 限制只能一天清理一次
|
|
//为节省服务器开销, 限制只能一天清理一次
|
|
-#if DEBUG
|
|
|
|
- _azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", new List<UnLink>().ToJsonString(), expiry: new TimeSpan(0, 0, 30));
|
|
|
|
-#else
|
|
|
|
- _azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", new List<UnLink>().ToJsonString(), expiry: new TimeSpan(0, 3, 0));
|
|
|
|
-#endif
|
|
|
|
|
|
+
|
|
|
|
+ _azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", new List<UnLink>().ToJsonString(), expiry: new TimeSpan(0, 3, 0));
|
|
|
|
+
|
|
HashSet<string> root = null;
|
|
HashSet<string> root = null;
|
|
if (_option.Location.Contains("Test", StringComparison.OrdinalIgnoreCase) || _option.Location.Contains("Dep", StringComparison.OrdinalIgnoreCase))
|
|
if (_option.Location.Contains("Test", StringComparison.OrdinalIgnoreCase) || _option.Location.Contains("Dep", StringComparison.OrdinalIgnoreCase))
|
|
{
|
|
{
|
|
@@ -1448,11 +1446,9 @@ namespace TEAMModelOS.Controllers
|
|
summary.Add(new { prefix = x.Key, count = count, size = size });
|
|
summary.Add(new { prefix = x.Key, count = count, size = size });
|
|
});
|
|
});
|
|
//为节省服务器开销, 限制只能一天清理一次
|
|
//为节省服务器开销, 限制只能一天清理一次
|
|
-#if DEBUG
|
|
|
|
- _azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", unLinks.ToJsonString(), expiry: new TimeSpan(0, 0,30));
|
|
|
|
-#else
|
|
|
|
|
|
+
|
|
_azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", unLinks.ToJsonString(), expiry: new TimeSpan(0, 3, 0));
|
|
_azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", unLinks.ToJsonString(), expiry: new TimeSpan(0, 3, 0));
|
|
-#endif
|
|
|
|
|
|
+
|
|
var ttlVals = await _azureRedis.GetRedisClient(8).KeyExpireTimeAsync($"Blob:ScanResult:{scope}:{containerName}");
|
|
var ttlVals = await _azureRedis.GetRedisClient(8).KeyExpireTimeAsync($"Blob:ScanResult:{scope}:{containerName}");
|
|
if (ttlVals.HasValue)
|
|
if (ttlVals.HasValue)
|
|
{
|
|
{
|