|
|
|
@@ -66,7 +66,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = $"{redisBaseKey}:Cache:AZIONI_ALL";
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<AzioniUL>>($"{rawData}");
|
|
|
|
@@ -77,7 +77,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.ActionsGetAll();
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -98,7 +98,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = $"{redisBaseKey}:Cache:FLTrans";
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<AnagFLTransModel>>($"{rawData}");
|
|
|
|
@@ -109,7 +109,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.AnagFLTransGetAll();
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -171,7 +171,7 @@ namespace MP.Stats.Data
|
|
|
|
|
List<ConfigModel>? result = new List<ConfigModel>();
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
string currKey = $"{redisBaseKey}:Conf";
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
//if (!string.IsNullOrEmpty($"{rawData}"))
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
@@ -183,7 +183,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.ConfigGetAll();
|
|
|
|
|
// serializzo e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
redisDb.StringSet(currKey, rawData, LongCache);
|
|
|
|
|
_redisDb.StringSet(currKey, rawData, LongCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -251,7 +251,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = getCacheKey($"{redisBaseKey}:FL_DATA:FT_{fluxType}", CurrFilter);
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<FLModel>>($"{rawData}");
|
|
|
|
@@ -262,7 +262,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.FluxLogRawData(CurrFilter.IdxMacchina, CurrFilter.DateStart, CurrFilter.DateEnd, fluxType);
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -287,7 +287,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = $"{redisBaseKey}:FTList";
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<string>>($"{rawData}");
|
|
|
|
@@ -298,7 +298,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.FluxTypeList();
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, UltraLongCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, UltraLongCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -319,7 +319,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = $"{redisBaseKey}:Cache:MacchineEnergy";
|
|
|
|
|
RedisValue rawData = redisDb.StringGet(currKey);
|
|
|
|
|
RedisValue rawData = _redisDb.StringGet(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<MacchineStatModel>>($"{rawData}");
|
|
|
|
@@ -330,7 +330,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.MacchineEnergy();
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
redisDb.StringSet(currKey, rawData, FastCache);
|
|
|
|
|
_redisDb.StringSet(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -351,7 +351,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = $"{redisBaseKey}:Cache:Macchine";
|
|
|
|
|
RedisValue rawData = redisDb.StringGet(currKey);
|
|
|
|
|
RedisValue rawData = _redisDb.StringGet(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<MacchineModel>>($"{rawData}");
|
|
|
|
@@ -362,7 +362,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.MacchineGetAll().ToList();
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
redisDb.StringSet(currKey, rawData, FastCache);
|
|
|
|
|
_redisDb.StringSet(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -431,7 +431,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = getCacheKey($"{redisBaseKey}:CONTROLLI", CurrFilter);
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<ResControlli>>($"{rawData}");
|
|
|
|
@@ -442,7 +442,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.StatControlliGetAll(CurrFilter.DateStart, CurrFilter.DateEnd, CurrFilter.IdxMacchina, CurrFilter.IdxOdl, CurrFilter.KeyRichiesta, CurrFilter.CodArticolo);
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -470,7 +470,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = getCacheKeyPaged($"{redisBaseKey}:DDBT", CurrFilter);
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<DdbTurni>>($"{rawData}");
|
|
|
|
@@ -481,7 +481,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.StatDdbGetAll(CurrFilter.DateStart, CurrFilter.DateEnd, CurrFilter.IdxMacchina, CurrFilter.IdxOdl, CurrFilter.KeyRichiesta, CurrFilter.CodArticolo, CurrFilter.FirstRecord, CurrFilter.NumRecord);
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -521,7 +521,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = getCacheKey($"{redisBaseKey}:DDBT-COUNT", CurrFilter);
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
numRec = JsonConvert.DeserializeObject<int>($"{rawData}");
|
|
|
|
@@ -532,7 +532,7 @@ namespace MP.Stats.Data
|
|
|
|
|
numRec = dbController.StatDdbGetCount(CurrFilter.DateStart, CurrFilter.DateEnd, CurrFilter.IdxMacchina, CurrFilter.IdxOdl, CurrFilter.KeyRichiesta, CurrFilter.CodArticolo);
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(numRec);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
sw.Stop();
|
|
|
|
|
Log.Debug($"StatDdbGetCount | {source} | {sw.Elapsed.TotalMilliseconds}ms");
|
|
|
|
@@ -555,7 +555,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = getCacheKey($"{redisBaseKey}:ODL_ENERGY", CurrFilter);
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<OdlEnergyModel>>($"{rawData}");
|
|
|
|
@@ -566,7 +566,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.StatOdlEnergyGetFilt(CurrFilter.IdxMacchina, CurrFilter.DateStart, CurrFilter.DateEnd, CurrFilter.IdxOdl, CurrFilter.KeyRichiesta, CurrFilter.CodArticolo);
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -593,7 +593,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = getCacheKey($"{redisBaseKey}:ODL", CurrFilter);
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<StatsODL>>($"{rawData}");
|
|
|
|
@@ -604,7 +604,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.StatOdlGetAll(CurrFilter.DateStart, CurrFilter.DateEnd, CurrFilter.IdxMacchina, CurrFilter.IdxOdl, CurrFilter.KeyRichiesta, CurrFilter.CodArticolo);
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -625,7 +625,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = getCacheKey($"{redisBaseKey}:SCARTI:RAW", CurrFilter);
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<ResScarti>>($"{rawData}");
|
|
|
|
@@ -636,7 +636,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.StatScartiGetAll(CurrFilter.DateStart, CurrFilter.DateEnd, CurrFilter.IdxMacchina, CurrFilter.IdxOdl, CurrFilter.KeyRichiesta, CurrFilter.CodArticolo);
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -662,7 +662,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = getCacheKey($"{redisBaseKey}:OEE", CurrFilter);
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<TurniOee>>($"{rawData}");
|
|
|
|
@@ -673,7 +673,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.StatTurniOeeGetAll(CurrFilter.DateStart, CurrFilter.DateEnd, CurrFilter.IdxMacchina, CurrFilter.IdxOdl, CurrFilter.KeyRichiesta, CurrFilter.CodArticolo);
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -694,7 +694,7 @@ namespace MP.Stats.Data
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
DateTime adesso = DateTime.Now;
|
|
|
|
|
string currKey = getCacheKey($"{redisBaseKey}:USRACTLOG", CurrFilter);
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
|
result = JsonConvert.DeserializeObject<List<UserActionLog>>($"{rawData}");
|
|
|
|
@@ -710,7 +710,7 @@ namespace MP.Stats.Data
|
|
|
|
|
}
|
|
|
|
|
// serializzp e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
await redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
await _redisDb.StringSetAsync(currKey, rawData, FastCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -733,7 +733,7 @@ namespace MP.Stats.Data
|
|
|
|
|
List<VocabolarioModel> result = new List<VocabolarioModel>();
|
|
|
|
|
// cerco in redis...
|
|
|
|
|
string currKey = $"{redisBaseKey}:Vocabolario";
|
|
|
|
|
RedisValue rawData = await redisDb.StringGetAsync(currKey);
|
|
|
|
|
RedisValue rawData = await _redisDb.StringGetAsync(currKey);
|
|
|
|
|
//if (!string.IsNullOrEmpty($"{rawData}"))
|
|
|
|
|
if (rawData.HasValue)
|
|
|
|
|
{
|
|
|
|
@@ -745,7 +745,7 @@ namespace MP.Stats.Data
|
|
|
|
|
result = dbController.VocabolarioGetAll();
|
|
|
|
|
// serializzo e salvo...
|
|
|
|
|
rawData = JsonConvert.SerializeObject(result);
|
|
|
|
|
redisDb.StringSet(currKey, rawData, LongCache);
|
|
|
|
|
_redisDb.StringSet(currKey, rawData, LongCache);
|
|
|
|
|
}
|
|
|
|
|
if (result == null)
|
|
|
|
|
{
|
|
|
|
@@ -832,24 +832,24 @@ namespace MP.Stats.Data
|
|
|
|
|
private async Task<bool> ExecFlushRedisPattern(RedisValue pat2Flush)
|
|
|
|
|
{
|
|
|
|
|
bool answ = false;
|
|
|
|
|
var masterEndpoint = redisConn.GetEndPoints()
|
|
|
|
|
.Where(ep => redisConn.GetServer(ep).IsConnected && !redisConn.GetServer(ep).IsReplica)
|
|
|
|
|
var masterEndpoint = _redisConn.GetEndPoints()
|
|
|
|
|
.Where(ep => _redisConn.GetServer(ep).IsConnected && !_redisConn.GetServer(ep).IsReplica)
|
|
|
|
|
.FirstOrDefault();
|
|
|
|
|
|
|
|
|
|
// sepattern è "*" elimino intero DB...
|
|
|
|
|
if (masterEndpoint != null && (pat2Flush.Equals(new RedisValue("*")) || pat2Flush == RedisValue.Null))
|
|
|
|
|
{
|
|
|
|
|
redisConn.GetServer(masterEndpoint).FlushDatabase(database: redisDb.Database);
|
|
|
|
|
_redisConn.GetServer(masterEndpoint).FlushDatabase(database: _redisDb.Database);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
var server = redisConn.GetServer(masterEndpoint);
|
|
|
|
|
var keys = server.Keys(database: redisDb.Database, pattern: pat2Flush, pageSize: 1000);
|
|
|
|
|
var server = _redisConn.GetServer(masterEndpoint);
|
|
|
|
|
var keys = server.Keys(database: _redisDb.Database, pattern: pat2Flush, pageSize: 1000);
|
|
|
|
|
|
|
|
|
|
var deleteTasks = new List<Task>();
|
|
|
|
|
foreach (var key in keys)
|
|
|
|
|
{
|
|
|
|
|
deleteTasks.Add(redisDb.KeyDeleteAsync(key));
|
|
|
|
|
deleteTasks.Add(_redisDb.KeyDeleteAsync(key));
|
|
|
|
|
if (deleteTasks.Count >= 1000)
|
|
|
|
|
{
|
|
|
|
|
await Task.WhenAll(deleteTasks);
|
|
|
|
@@ -863,17 +863,17 @@ namespace MP.Stats.Data
|
|
|
|
|
}
|
|
|
|
|
answ = true;
|
|
|
|
|
#if false
|
|
|
|
|
var listEndpoints = redisConn.GetEndPoints();
|
|
|
|
|
var listEndpoints = _redisConn.GetEndPoints();
|
|
|
|
|
foreach (var endPoint in listEndpoints)
|
|
|
|
|
{
|
|
|
|
|
//var server = redisConnAdmin.GetServer(listEndpoints[0]);
|
|
|
|
|
var server = redisConn.GetServer(endPoint);
|
|
|
|
|
//var server = _redisConnAdmin.GetServer(listEndpoints[0]);
|
|
|
|
|
var server = _redisConn.GetServer(endPoint);
|
|
|
|
|
if (server != null)
|
|
|
|
|
{
|
|
|
|
|
var keyList = server.Keys(redisDb.Database, pattern);
|
|
|
|
|
var keyList = server.Keys(_redisDb.Database, pattern);
|
|
|
|
|
foreach (var item in keyList)
|
|
|
|
|
{
|
|
|
|
|
await redisDb.KeyDeleteAsync(item);
|
|
|
|
|
await _redisDb.KeyDeleteAsync(item);
|
|
|
|
|
}
|
|
|
|
|
answ = true;
|
|
|
|
|
}
|
|
|
|
|