Commit 311953e8 authored by litaolemo's avatar litaolemo

update

parent 02c675e3
...@@ -26,6 +26,7 @@ def feed_url_into_redis(dict_Lst, platform, ...@@ -26,6 +26,7 @@ def feed_url_into_redis(dict_Lst, platform,
try: try:
doc_id = data_dict['doc_id'] doc_id = data_dict['doc_id']
sadd_c = rds.lpush(doc_id, json.dumps(data_dict)) sadd_c = rds.lpush(doc_id, json.dumps(data_dict))
res = rds.lpush("doc_id", doc_id)
rds.expire(doc_id,259200) rds.expire(doc_id,259200)
except: except:
print('Failed to push data into redis') print('Failed to push data into redis')
......
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