diff options
Diffstat (limited to 'redis/asyncio/client.py')
-rw-r--r-- | redis/asyncio/client.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/redis/asyncio/client.py b/redis/asyncio/client.py index c085571..e0ed85e 100644 --- a/redis/asyncio/client.py +++ b/redis/asyncio/client.py @@ -276,6 +276,13 @@ class Redis( """Get the connection's key-word arguments""" return self.connection_pool.connection_kwargs + def get_retry(self) -> Optional["Retry"]: + return self.get_connection_kwargs().get("retry") + + def set_retry(self, retry: "Retry") -> None: + self.get_connection_kwargs().update({"retry": retry}) + self.connection_pool.set_retry(retry) + def load_external_module(self, funcname, func): """ This function can be used to add externally defined redis modules, |