调整缓存过期时间
This commit is contained in:
parent
a50172a9e0
commit
b118a07541
@ -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}
|
||||
##### 请求参数说明
|
||||
|
||||
| 名称 | 类型 | 必填 | 说明 |
|
||||
|
@ -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!")
|
||||
|
||||
# 删除过期的数据
|
||||
|
Loading…
x
Reference in New Issue
Block a user