How to flush Redis cache
To delete everything from redis cache, run the command
1 |
redis-cli FLUSHDB |
This will delete all keys from the current DB.
To delete cache from all DB, run
1 |
redis-cli FLUSHALL |
If Redis is on another server or needs password, you can use the following command
1 |
redis-cli -h IP_HERE -p PORT_HERE -a PASSWORD_HERE FLUSHDB |
See Redis