FLUSHDB

Synopsis

FLUSHDBThis command deletes all keys from a database.

This functionality can be disabled by setting the yb-tserver gflag yedis_enable_flush to false.

Return value

Returns status string.

Examples

  1. $ SET yuga1 "America"
  1. "OK"
  1. $ SET yuga2 "Africa"
  1. "OK"
  1. $ GET yuga1
  1. "America"
  1. $ GET yuga2
  1. "Africa"
  1. $ FLUSHDB
  1. "OK"
  1. $ GET yuga1
  1. (null)
  1. $ GET yuga2
  1. (null)

See also

del, flushall,deletedb