添加过期key日志
This commit is contained in:
parent
3e6fe27d95
commit
e70b3f2cc2
@ -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)
|
||||
|
@ -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!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user