Initial commit
This commit is contained in:
5
redis_clear_all_keys.py
Normal file
5
redis_clear_all_keys.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import redis
|
||||
|
||||
redis_client = redis.Redis(host="localhost", port=6379, db=0)
|
||||
matched_keys = redis_client.keys(f"**")
|
||||
redis_client.delete(*matched_keys)
|
||||
Reference in New Issue
Block a user