pub trait ServerCommands<T>: PrepareCommand<T> {
    fn flushdb(&self, flushing_mode: FlushingMode) -> CommandResult<'_, T, ()> { ... }
    fn flushall(&self, flushing_mode: FlushingMode) -> CommandResult<'_, T, ()> { ... }
    fn time(&self) -> CommandResult<'_, T, (u32, u32)> { ... }
}
Expand description

A group of Redis commands related to Server Management

See Also

Redis Server Management Commands

Provided 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/

The TIME command returns the current server time as a two items lists: a Unix timestamp and the amount of microseconds already elapsed in the current second.

See Also

https://redis.io/commands/time/

Implementors