浏览代码

存储 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)