How to empty a Redis Database?
The following two commands can be used to empty the database.
- FLUSHDB:- Removes all the data from the database which the user is currently using.
Syntax:- redis-cli flushdb
- FLUSHALL:- Removes the data from all the databases.
Syntax:-redis-cli flushall
BY Best Interview Question ON 17 Feb 2019