perf(config): 升级依赖redis==3.5.3; 添加CACHES配置: health_check_interval=30; 解决因网络不稳定导致的redis连接失败异常

This commit is contained in:
Bai
2020-10-19 17:11:55 +08:00
committed by 老广
parent 28879d9314
commit 7d325856b9
2 changed files with 4 additions and 1 deletions

View File

@@ -242,6 +242,9 @@ CACHES = {
'host': CONFIG.REDIS_HOST,
'port': CONFIG.REDIS_PORT,
'db': CONFIG.REDIS_DB_CACHE,
},
'OPTIONS': {
"REDIS_CLIENT_KWARGS": {"health_check_interval": 30}
}
}
}