From c468d9d91f781cb7d88931cab05607d77888d01b Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Tue, 13 Jun 2023 12:05:11 +0200 Subject: [PATCH] fix redis pattern --- WebDoorCreator.API/Controllers/QueueController.cs | 6 +++--- WebDoorCreator.Data/Services/WebDoorCreatorService.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WebDoorCreator.API/Controllers/QueueController.cs b/WebDoorCreator.API/Controllers/QueueController.cs index 343246a..d62a2ec 100644 --- a/WebDoorCreator.API/Controllers/QueueController.cs +++ b/WebDoorCreator.API/Controllers/QueueController.cs @@ -116,9 +116,9 @@ namespace WebDoorCreator.API.Controllers //RedisValue pattern = new RedisValue($"{Core.Constants.rKeyDoor}:{item.DoorId}"); await WDService.FlushCustomPattern($"Cache:Door:{item.DoorId}"); - await WDService.FlushCustomPattern($"CalcRequest:CacheDDF:{item.DoorId}"); - await WDService.FlushCustomPattern($"CalcRequest:CacheSVG:{item.DoorId}"); - await WDService.FlushCustomPattern($"CalcRequest:Errors:{item.DoorId}"); + await WDService.FlushCustomPattern($"CalcRequests:CacheDDF:{item.DoorId}"); + await WDService.FlushCustomPattern($"CalcRequests:CacheDDF:{item.DoorId}"); + await WDService.FlushCustomPattern($"CalcRequests:CacheDDF:{item.DoorId}"); } } diff --git a/WebDoorCreator.Data/Services/WebDoorCreatorService.cs b/WebDoorCreator.Data/Services/WebDoorCreatorService.cs index 0d2294a..7b9ca6a 100644 --- a/WebDoorCreator.Data/Services/WebDoorCreatorService.cs +++ b/WebDoorCreator.Data/Services/WebDoorCreatorService.cs @@ -1656,7 +1656,7 @@ namespace WebDoorCreator.Data.Services public async Task FlushCustomPattern(string keyWord) { await Task.Delay(1); - RedisValue pattern = new RedisValue($"{Constants.redisBaseAddr}:{keyWord}*"); + RedisValue pattern = new RedisValue($"{Constants.redisBaseAddr}:{keyWord}:*"); bool answ = await ExecFlushRedisPattern(pattern); return answ; }