Redis – Server Flushdb Command

  • Post author:
  • Post category:Redis
  • Post comments:0 Comments

Redis FLUSHDB deletes all the keys of the currently selected DB. This command never fails.

Return Value

String reply.

Syntax

Following is the basic syntax of Redis FLUSHDB command.

redis 127.0.0.1:6379> FLUSHDB

Example

redis 127.0.0.1:6379> FLUSHDB  
OK 

Leave a Reply