diff options
author | Bar Shaul <88437685+barshaul@users.noreply.github.com> | 2021-12-01 18:33:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 18:33:44 +0200 |
commit | d4252277a9dafed5af34b3f40ed7a57fc952d273 (patch) | |
tree | f0a96ff0e12c6446bd9ecbf7ed8248a0d5462d8c /redis/client.py | |
parent | e16e26ea597e6e0c576d7462d3a2285a8647617d (diff) | |
download | redis-py-d4252277a9dafed5af34b3f40ed7a57fc952d273.tar.gz |
Migrated targeted nodes to kwargs in Cluster Mode (#1762)
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 12 |
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 |