FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-sample-vscode-fastapi-tutorial/flushdb.py at main · microsoft/python-sample-vscode-fastapi-tutorial · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
microsoft
/
python-sample-vscode-fastapi-tutorial
Public
Notifications
You must be signed in to change notification settings
Fork
42
Star
61
Code
Issues
0
Pull requests
10
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-sample-vscode-fastapi-tutorial
/
flushdb.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (7 loc) · 267 Bytes
Breadcrumbs
python-sample-vscode-fastapi-tutorial
/
flushdb.py
Copy path
File metadata and controls
9 lines (7 loc) · 267 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
"""
This module is used to interact with a Redis database.
WARNING: This script will flush the entire Redis database. Use with caution.
"""
import
redis
redis_client
=
redis
.
StrictRedis
(
host
=
"0.0.0.0"
,
port
=
6379
,
db
=
0
,
decode_responses
=
True
)
redis_client
.
flushdb
()
Back
|
FazBrowse Home
|
New Git URL