Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ebf724a6
authored
Oct 21, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
config prod
parent
3a6c66da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
vc.py
vc.py
View file @
ebf724a6
...
@@ -277,7 +277,15 @@ def insert_ext_attr_to_redis(conf: dict):
...
@@ -277,7 +277,15 @@ def insert_ext_attr_to_redis(conf: dict):
print
(
"jd_ext_attr"
,
key
,
value
)
print
(
"jd_ext_attr"
,
key
,
value
)
def
delete_redis_key
(
key
:
str
,
conf
:
dict
):
redis_host
=
conf
[
"redis"
][
"host"
]
redis_port
=
conf
[
"redis"
][
"port"
]
redis_password
=
conf
[
"redis"
][
"password"
]
redis_db
=
redis
.
Redis
(
host
=
redis_host
,
port
=
redis_port
,
password
=
redis_password
)
redis_db
.
delete
(
key
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
conf
=
config_dev
conf
=
config_prod
delete_redis_key
(
"jd_ext_attr"
,
conf
)
insert_ext_attr_to_redis
(
conf
)
insert_ext_attr_to_redis
(
conf
)
\ No newline at end of file
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