pub trait SentinelCommands<T>: PrepareCommand<T> {
    fn sentinel_get_master_addr_by_name<N>(
        &self,
        master_name: N
    ) -> CommandResult<'_, T, Option<(String, u16)>>
    where
        N: Into<BulkString>
, { ... } fn sentinel_failover<N>(&self, master_name: N) -> CommandResult<'_, T, ()>
    where
        N: Into<BulkString>
, { ... } }
Expand description

A group of Redis commands related to Sentinel

See Also

Sentinel Commands

Provided Methods

Return the ip and port number of the master with that name.

If a failover is in progress or terminated successfully for this master, it returns the address and port of the promoted replica.

Return
  • None if sentinel does not know this master
  • A tuple made up of
    • The IP of the master
    • The port of the master

Force a failover as if the master was not reachable, and without asking for agreement to other Sentinels (however a new version of the configuration will be published so that the other Sentinels will update their configurations).

Implementors