Commit 30297e78 authored by 张彦钊's avatar 张彦钊

add

parent c894d262
...@@ -103,7 +103,7 @@ def search(): ...@@ -103,7 +103,7 @@ def search():
r = redis.StrictRedis.from_url('redis://:ReDis!GmTx*0aN9@172.16.40.173:6379') r = redis.StrictRedis.from_url('redis://:ReDis!GmTx*0aN9@172.16.40.173:6379')
cursor = 0 cursor = 0
while True: while True:
new_cursor,keys_list = r.scan(cursor,"device:latest:action:tag:names:update:flag:*",2000) new_cursor,keys_list = r.scan(cursor,"device:latest:action:tag:names:update:flag*",2000)
if len(keys_list) > 0: if len(keys_list) > 0:
print(len(keys_list)) print(len(keys_list))
r.delete(*keys_list) r.delete(*keys_list)
......
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