clear redis when we get the client

This commit is contained in:
dekzter 2025-04-03 13:24:32 -04:00
parent 76965c368b
commit 83b11254ac

View file

@ -50,6 +50,7 @@ def get_redis_client(max_retries=5, retry_interval=1):
# Validate connection with ping
client.ping()
client.flushdb()
logger.info(f"Connected to Redis at {redis_host}:{redis_port}/{redis_db}")
return client