Commit 8c4f8a33 authored by 郭羽's avatar 郭羽

item feature clean

parent 5ee7b683
......@@ -13,11 +13,12 @@ def test():
print("keys size:{}".format(str(len(keys))))
num = 0
for k in keys:
k = str(k,encoding='utf-8')
v = conn.get(k)
if v:
data = json.loads(v,encoding='utf-8')
if "itemid" in data:
# conn.delete(k)
conn.delete(k)
num += 1
print("del {}".format(k))
......
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