summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-11-17 11:55:03 +0200
committerGitHub <noreply@github.com>2021-11-17 11:55:03 +0200
commit4e9cc015e32ef305429ff9dfa200e28dd63e6663 (patch)
treebb8e2851778b3e9237a405cffd799b7523a33a6f /redis/client.py
parente74ed1942a746683ece792cb1670c544f599246f (diff)
downloadredis-py-4e9cc015e32ef305429ff9dfa200e28dd63e6663.tar.gz
Removing command on initial connections (#1722)v4.0.1
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/redis/client.py b/redis/client.py
index 753770e..3230043 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -890,12 +890,6 @@ class Redis(RedisModuleCommands, CoreCommands, object):
self.response_callbacks = CaseInsensitiveDict(
self.__class__.RESPONSE_CALLBACKS)
- # preload our class with the available redis commands
- try:
- self.__redis_commands__()
- except RedisError:
- pass
-
def __repr__(self):
return "%s<%s>" % (type(self).__name__, repr(self.connection_pool))
@@ -927,18 +921,6 @@ class Redis(RedisModuleCommands, CoreCommands, object):
"""
setattr(self, funcname, func)
- def __redis_commands__(self):
- """Store the list of available commands, for our redis instance."""
- cmds = getattr(self, '__commands__', None)
- if cmds is not None:
- return cmds
- try:
- cmds = [c[0].upper().decode() for c in self.command()]
- except AttributeError: # if encoded
- cmds = [c[0].upper() for c in self.command()]
- self.__commands__ = cmds
- return cmds
-
def pipeline(self, transaction=True, shard_hint=None):
"""
Return a new pipeline object that can queue multiple commands for