调整缓存过期时间

This commit is contained in:
pengtao 2019-08-26 13:32:37 +08:00
parent a50172a9e0
commit b118a07541
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"10034","locationid":1001}
http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1003","area":1}
##### 请求参数说明
| 名称 | 类型 | 必填 | 说明 |

View File

@ -144,8 +144,8 @@ def send_cache_data():
for item in remove_list:
line.pop(item)
my_redis.hmset(f"ad::{line['id']}::info", line)
my_redis.expire(f"ad::{line['id']}::info", 60)
# my_redis.expire(f"ad::{line['id']}::info", 3600 * 24 * 7)
# my_redis.expire(f"ad::{line['id']}::info", 60)
my_redis.expire(f"ad::{line['id']}::info", 3600 * 24)
log.info(f"add ad::{line['id']}::info to redis!")
# 删除过期的数据