소스 검색

存储 account 、token 与 proxy_ip 对应关系

xubo 1 년 전
부모
커밋
c9e2ef16b5
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      tools/config.yaml
  2. 1 1
      tools/redis_util.py

+ 1 - 1
tools/config.yaml

@@ -4,4 +4,4 @@ redis:
   password: ''
   db: 0
   timeout: 600
-version: 1.0.5
+version: 1.0.6

+ 1 - 1
tools/redis_util.py

@@ -13,7 +13,7 @@ class redis_util(object):
         self.__redis = redis_pool.redis_pool.get_conn()
 
     # 设置key-value
-    def set(self, key, value, timeout=30 * 60):
+    def set(self, key, value, timeout=24 * 60 * 60):
         self.__redis.set(key, value)
         # key超时时间
         self.__redis.expire(name=key, time=timeout)