Commit 835c4397 authored by 张彦钊's avatar 张彦钊

change test file

parent 63d9e72e
......@@ -82,9 +82,11 @@ def write_redis(device_id,cid_list):
value.extend(cids)
cids = json.dumps(list(set(value)))
r.set(key, json.dumps(cids))
print("insert one")
else:
r.set(key, json.dumps(cids))
r.expire(key, 8*60*60)
print("insert two")
except Exception as e:
print("insert redis fail")
print(e)
......
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