Skip to main content

SentinelBackend

Redis sentinel task result store.

Attributes​

AttributeTypeDescription
sentinelmoduleThe Redis Sentinel client module used to manage high-availability connections.
connection_class_sslclassThe SSL-enabled connection class used when connecting to Sentinel instances over a secure socket.

Constructor​

Signature​

def SentinelBackend(
*args: any,
**kwargs: any
)

Parameters​

NameTypeDescription
*argsanyVariable length argument list passed to the parent class constructor.
**kwargsanyArbitrary keyword arguments passed to the parent class constructor.

Methods​


as_uri()​

@classmethod
def as_uri(
include_password: boolean = False
) - > string

Return the server addresses as URIs, sanitizing the password or not.

Parameters​

NameTypeDescription
include_passwordboolean = FalseDetermines whether to include the plaintext password in the resulting URI string or mask it for security.

Returns​

TypeDescription
stringA semicolon-separated string of sanitized or raw Sentinel URIs.