重构现代化 FastAPI 后端项目框架
This commit is contained in:
5
scripts/redis_clear_all_keys.py
Normal file
5
scripts/redis_clear_all_keys.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import redis
|
||||
|
||||
redis_client = redis.Redis(host="127.0.0.1", port=6379, db=0)
|
||||
matched_keys = redis_client.keys(f"**")
|
||||
redis_client.delete(*matched_keys)
|
||||
Reference in New Issue
Block a user