SentinelBackend
Redis sentinel task result store.
Attributes
| Attribute | Type | Description |
|---|---|---|
| sentinel | module | The Redis Sentinel client module used to manage high-availability connections. |
| connection_class_ssl | class | The SSL-enabled connection class used when connecting to Sentinel instances over a secure socket. |
Constructor
Signature
def SentinelBackend(
*args: any,
**kwargs: any
)
Parameters
| Name | Type | Description |
|---|---|---|
| *args | any | Variable length argument list passed to the parent class constructor. |
| **kwargs | any | Arbitrary 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
| Name | Type | Description |
|---|---|---|
| include_password | boolean = False | Determines whether to include the plaintext password in the resulting URI string or mask it for security. |
Returns
| Type | Description |
|---|---|
string | A semicolon-separated string of sanitized or raw Sentinel URIs. |