1.

How to empty a Redis Database?

Answer»

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



Discussion

No Comment Found