11from json import JSONEncoder , JSONDecoder
2- from redis .exceptions import ModuleError
32
43
54class RedisModuleCommands :
@@ -10,10 +9,6 @@ class RedisModuleCommands:
109 def json (self , encoder = JSONEncoder (), decoder = JSONDecoder ()):
1110 """Access the json namespace, providing support for redis json.
1211 """
13- if 'JSON.SET' not in self .__commands__ :
14- raise ModuleError ("redisjson is not loaded in redis. "
15- "For more information visit "
16- "https://redisjson.io/" )
1712
1813 from .json import JSON
1914 jj = JSON (
@@ -25,10 +20,6 @@ def json(self, encoder=JSONEncoder(), decoder=JSONDecoder()):
2520 def ft (self , index_name = "idx" ):
2621 """Access the search namespace, providing support for redis search.
2722 """
28- if 'FT.INFO' not in self .__commands__ :
29- raise ModuleError ("redisearch is not loaded in redis. "
30- "For more information visit "
31- "https://redisearch.io/" )
3223
3324 from .search import Search
3425 s = Search (client = self , index_name = index_name )
@@ -38,10 +29,6 @@ def ts(self):
3829 """Access the timeseries namespace, providing support for
3930 redis timeseries data.
4031 """
41- if 'TS.INFO' not in self .__commands__ :
42- raise ModuleError ("reditimeseries is not loaded in redis. "
43- "For more information visit "
44- "https://redistimeseries.io/" )
4532
4633 from .timeseries import TimeSeries
4734 s = TimeSeries (client = self )
0 commit comments