diff options
Diffstat (limited to 'redis/commands/redismodules.py')
| -rw-r--r-- | redis/commands/redismodules.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/redis/commands/redismodules.py b/redis/commands/redismodules.py index 875f3fc..7e2045a 100644 --- a/redis/commands/redismodules.py +++ b/redis/commands/redismodules.py @@ -73,8 +73,8 @@ class RedisModuleCommands: return tdigest def graph(self, index_name="idx"): - """Access the timeseries namespace, providing support for - redis timeseries data. + """Access the graph namespace, providing support for + redis graph data. """ from .graph import Graph @@ -91,3 +91,13 @@ class AsyncRedisModuleCommands(RedisModuleCommands): s = AsyncSearch(client=self, index_name=index_name) return s + + def graph(self, index_name="idx"): + """Access the graph namespace, providing support for + redis graph data. + """ + + from .graph import AsyncGraph + + g = AsyncGraph(client=self, name=index_name) + return g |
