소스 검색

oci redis测试接口4

locky 1 년 전
부모
커밋
843e5e953b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Controller/InitController.py

+ 1 - 1
Controller/InitController.py

@@ -51,7 +51,7 @@ class InitView(View):
             redis_host = 'amaaaaaayszequiamxr7cdpparig3ptmytvde5vvnz6n7gceo4232sbhhlsa-p.redis.us-phoenix-1.oci.oraclecloud.com'
 
             # 创建Redis连接
-            pool = redis.ConnectionPool(host=redis_host)
+            pool = redis.ConnectionPool(host=redis_host, port=6379, db=0)
             redis_client = redis.Redis(connection_pool=pool, ssl=True, ssl_cert_reqs=None)
             # redis_client = redis.StrictRedis(
             #     host=redis_host,