FLUSHALL
Syntax
FLUSHALL
Module
genericCategories
dangerous keyspace slow writeDescription
Delete all the keys in all the existing databases. This command is always synchronous.
Examples
- Go (Embedded)
- CLI
In order to delete all the keys in all the databases, you need to pass -1 to the Flush
method:
vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
vault.Flush(-1)
Flush all the databases:
> FLUSHALL