From 8d6c0f9bd6b20f5ee2ff9c598572dfef2ef5bba1 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Sep 2019 15:35:04 +0800 Subject: [PATCH] fix expire time to 24 hours --- ad_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ad_tasks.py b/ad_tasks.py index b9dec15..7bebc7c 100644 --- a/ad_tasks.py +++ b/ad_tasks.py @@ -58,7 +58,7 @@ def sadd_adkey(key, line): if new_line: my_redis.hmset(info_key, new_line) - my_redis.expire(info_key, 60 * 60 * 3) + my_redis.expire(info_key, 60 * 60 * 24) #log.info(f"add info {new_line} 2 {info_key}!") else: log.error(f"split adinfo about locationid failed! localtionid={locationid} ")