Commit 79a464dd authored by 高雅喆's avatar 高雅喆

latest:action:key add expire time

parent 4d953aca
......@@ -101,6 +101,7 @@ def get_user_service_portrait(cl_id, all_word_tags, all_tag_tag_type, all_3tag_2
set_dict.update({action_field_name: 1})
set_dict.update({'latest_action_is_change': 1})
redis_client.hmset(device_latest_action_key, set_dict)
redis_client.expire(device_latest_action_key, time=30 * 24 * 60 * 60)
# 写tidb,redis同步
stat_date = datetime.datetime.today().strftime('%Y-%m-%d')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment