添加过期key日志

This commit is contained in:
pengtao 2019-10-10 20:01:42 +08:00
parent 3e6fe27d95
commit e70b3f2cc2
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ def produce_task():
line['area'] = area
str01 = f"{line.get('gameid', 0)}_{locationid}_{area}"
key = "adlist::{0}::{1}::{2}::{3}".format(str01, line['channelid'], area, locationid)
redis_key = f"{line['id']}_{locationid}"
redis_key = f"{line['id']}_{locationid}_{area}"
adinfo[redis_key] = split_ad_info(locationid, line)
if int(line['ad_num']) == 0:
adlist[key].append(redis_key)

View File

@ -34,7 +34,7 @@ elif myenv == 'test1':
log_path = "/data/logs/test/"
ad_list_interface_port = 6014
priv_i_port=6015
info_expire = 60 * 60 * 3
info_expire = 60 * 2
adkey_expire = 60 * 2
else:
raise Exception("GET config with mysql/redis failed!")