Commit 6395d4a5 authored by 宋柯's avatar 宋柯

redis清理

parent 39f2d110
......@@ -269,7 +269,7 @@ for search_key in search_keys:
node_key_count = 0
node_del_key_set = set()
while True:
cursor, keys = conn.execute_command("scan {} match {} count {} {}".format(cursor,search_key,10,node))
cursor, keys = conn.execute_command("scan {} match {} count {} {}".format(cursor,search_key,2000,node))
node_key_count += len(keys)
cursor = str(cursor,encoding='utf-8')
......@@ -289,7 +289,7 @@ for search_key in search_keys:
# print("idletime_list:{}".format(idletime_list))
break
# break
if cursor == "0":
break
......
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