summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index 14e588a..c02bc3a 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -960,6 +960,18 @@ class Redis(RedisModuleCommands, CoreCommands, SentinelCommands):
def __repr__(self):
return f"{type(self).__name__}<{repr(self.connection_pool)}>"
+ def get_encoder(self):
+ """
+ Get the connection pool's encoder
+ """
+ return self.connection_pool.get_encoder()
+
+ def get_connection_kwargs(self):
+ """
+ Get the connection's key-word arguments
+ """
+ return self.connection_pool.connection_kwargs
+
def set_response_callback(self, command, callback):
"Set a custom Response Callback"
self.response_callbacks[command] = callback