diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-11-17 11:55:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 11:55:03 +0200 |
commit | 4e9cc015e32ef305429ff9dfa200e28dd63e6663 (patch) | |
tree | bb8e2851778b3e9237a405cffd799b7523a33a6f /redis/commands/redismodules.py | |
parent | e74ed1942a746683ece792cb1670c544f599246f (diff) | |
download | redis-py-4e9cc015e32ef305429ff9dfa200e28dd63e6663.tar.gz |
Removing command on initial connections (#1722)v4.0.1
Diffstat (limited to 'redis/commands/redismodules.py')
-rw-r--r-- | redis/commands/redismodules.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/redis/commands/redismodules.py b/redis/commands/redismodules.py index b3cbee1..5f629fb 100644 --- a/redis/commands/redismodules.py +++ b/redis/commands/redismodules.py @@ -1,5 +1,4 @@ from json import JSONEncoder, JSONDecoder -from redis.exceptions import ModuleError class RedisModuleCommands: @@ -10,10 +9,6 @@ class RedisModuleCommands: def json(self, encoder=JSONEncoder(), decoder=JSONDecoder()): """Access the json namespace, providing support for redis json. """ - if 'JSON.SET' not in self.__commands__: - raise ModuleError("redisjson is not loaded in redis. " - "For more information visit " - "https://redisjson.io/") from .json import JSON jj = JSON( @@ -25,10 +20,6 @@ class RedisModuleCommands: def ft(self, index_name="idx"): """Access the search namespace, providing support for redis search. """ - if 'FT.INFO' not in self.__commands__: - raise ModuleError("redisearch is not loaded in redis. " - "For more information visit " - "https://redisearch.io/") from .search import Search s = Search(client=self, index_name=index_name) @@ -38,10 +29,6 @@ class RedisModuleCommands: """Access the timeseries namespace, providing support for redis timeseries data. """ - if 'TS.INFO' not in self.__commands__: - raise ModuleError("reditimeseries is not loaded in redis. " - "For more information visit " - "https://redistimeseries.io/") from .timeseries import TimeSeries s = TimeSeries(client=self) |