Skip to main content

FLUSHDB

Syntax

FLUSHDB

Module

generic

Categories

dangerous keyspace slow write

Description

Delete all the keys in the currently selected database. This command is always synchronous.

Examples

For the embedded instance, you need to pass the database index to the Flush method:

vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
vault.Flush(0)