mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
clear redis when we get the client
This commit is contained in:
parent
76965c368b
commit
83b11254ac
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue