pub trait ServerCommands {
    fn flushdb<'life0, 'async_trait>(
        &'life0 self,
        flushing_mode: FlushingMode
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn flushall<'life0, 'async_trait>(
        &'life0 self,
        flushing_mode: FlushingMode
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

A group of Redis commands related to Server Management

See Also

Redis Server Management Commands

Required Methods

Delete all the keys of the currently selected DB.

See Also

https://redis.io/commands/flushdb/

Delete all the keys of all the existing databases, not just the currently selected one.

See Also

https://redis.io/commands/flushall/

Implementors