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

pull/4827/head
Bai 2020-10-19 17:11:55 +08:00 committed by 老广
parent 2f08f1258f
commit b3d4ebd938
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -59,7 +59,7 @@ python-dateutil==2.6.1
python-gssapi==0.6.4
pytz==2018.3
PyYAML==5.1
redis==3.2.0
redis==3.5.3
requests==2.22.0
jms-storage==0.0.31
s3transfer==0.3.3