Trait redis_driver::ConnectionCommands
source · [−]pub trait ConnectionCommands<T>: PrepareCommand<T> {
fn hello(&self, options: HelloOptions) -> CommandResult<'_, T, HelloResult> { ... }
fn ping<R>(&self, options: PingOptions) -> CommandResult<'_, T, R>
where
R: FromValue,
{ ... }
fn quit(&self) -> CommandResult<'_, T, ()> { ... }
fn reset(&self) -> CommandResult<'_, T, ()> { ... }
fn select(&self, index: usize) -> CommandResult<'_, T, ()> { ... }
}
Expand description
A group of Redis commands related to connection management
See Also
Provided Methods
sourcefn hello(&self, options: HelloOptions) -> CommandResult<'_, T, HelloResult>
fn hello(&self, options: HelloOptions) -> CommandResult<'_, T, HelloResult>
sourcefn ping<R>(&self, options: PingOptions) -> CommandResult<'_, T, R>where
R: FromValue,
fn ping<R>(&self, options: PingOptions) -> CommandResult<'_, T, R>where
R: FromValue,
Returns PONG if no argument is provided, otherwise return a copy of the argument as a bulk.
See Also
sourcefn quit(&self) -> CommandResult<'_, T, ()>
fn quit(&self) -> CommandResult<'_, T, ()>
sourcefn reset(&self) -> CommandResult<'_, T, ()>
fn reset(&self) -> CommandResult<'_, T, ()>
This command performs a full reset of the connection’s server-side context, mimicking the effect of disconnecting and reconnecting again.