forked from microsoft/python-sample-vscode-fastapi-tutorial
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflushdb.py
More file actions
Latest commit
9 lines (7 loc) · 267 Bytes
/
Copy pathflushdb.py
File metadata and controls
9 lines (7 loc) · 267 Bytes
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.
"""
importredis
redis_client=redis.StrictRedis(host="0.0.0.0", port=6379, db=0, decode_responses=True)
redis_client.flushdb()