Skip to content

Commit 7c4f167

Browse files
authored
Deprecate RedisGraph (#2927)
1 parent e3de026 commit 7c4f167

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

redis/commands/graph/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import warnings
2+
13
from ..helpers import quote_string, random_string, stringify_param_value
24
from .commands import AsyncGraphCommands, GraphCommands
35
from .edge import Edge # noqa
@@ -18,6 +20,12 @@ def __init__(self, client, name=random_string()):
1820
"""
1921
Create a new graph.
2022
"""
23+
warnings.warn(
24+
DeprecationWarning(
25+
"RedisGraph support is deprecated as of Redis Stack 7.2 \
26+
(https://redis.com/blog/redisgraph-eol/)"
27+
)
28+
)
2129
self.NAME = name # Graph key
2230
self.client = client
2331
self.execute_command = client.execute_command

0 commit comments

Comments
 (0)