Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
serviceRec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭羽
serviceRec
Commits
69129342
Commit
69129342
authored
3 years ago
by
宋柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis清理
parent
6cb53e3e
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
get_redis_keys_hash.py
test/get_redis_keys_hash.py
+3
-3
No files found.
test/get_redis_keys_hash.py
View file @
69129342
...
...
@@ -254,8 +254,8 @@ nodes=['7877da182171e313bc9326729f82999d1b629c79'
,
'f3f1ec6df458a5093c31663517a3cadaed5ab29c'
,
'd35c630aad0a8b7f579bf4100f2860401b5d4f52'
]
# keys = ['rims:tag_v3:coldstart:','doris:tag_v3:coldstart:']
search_keys
=
[
'
doris:user_portrait:tag3:increment_update:device_id:
'
]
do_delete
=
Tru
e
search_keys
=
[
''
]
do_delete
=
Fals
e
# conn2 = getRedisConn2()
for
search_key
in
search_keys
:
search_key
=
search_key
+
'*'
...
...
@@ -283,7 +283,7 @@ for search_key in search_keys:
idletime_list
=
pipline
.
execute
()
for
idx
,
idletime
in
enumerate
(
idletime_list
):
if
idletime
>
604800
:
if
idletime
>
604800
*
4
:
node_del_key_list
.
append
(
keys
[
idx
])
if
cursor
==
"0"
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment