summaryrefslogtreecommitdiff
path: root/redis/commands/redismodules.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/redismodules.py')
-rw-r--r--redis/commands/redismodules.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/redis/commands/redismodules.py b/redis/commands/redismodules.py
index 2420d7b..e5ace63 100644
--- a/redis/commands/redismodules.py
+++ b/redis/commands/redismodules.py
@@ -31,3 +31,13 @@ class RedisModuleCommands:
s = TimeSeries(client=self)
return s
+
+ def graph(self, index_name="idx"):
+ """Access the timeseries namespace, providing support for
+ redis timeseries data.
+ """
+
+ from .graph import Graph
+
+ g = Graph(client=self, name=index_name)
+ return g