Commit 036aa279 authored by 宋柯's avatar 宋柯

redis清理

parent d0215ad4
......@@ -255,7 +255,8 @@ nodes=['7877da182171e313bc9326729f82999d1b629c79'
,'d35c630aad0a8b7f579bf4100f2860401b5d4f52']
# keys = ['rims:tag_v3:coldstart:','doris:tag_v3:coldstart:']
search_keys = ['streaming:candidate:cpcDiary:device_id:']
do_delete = False
do_delete = True
idletime_max = 60 * 60
# conn2 = getRedisConn2()
for search_key in search_keys:
search_key = search_key + '*'
......@@ -283,7 +284,7 @@ for search_key in search_keys:
idletime_list = pipline.execute()
for idx,idletime in enumerate(idletime_list):
if idletime > 604800 * 4:
if idletime > idletime_max:
node_del_key_list.append(keys[idx])
if cursor == "0":
......
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