Skip to content

Commit

Permalink
Deprecate RedisGraph (#2927)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvora-h committed Sep 11, 2023
1 parent e3de026 commit 7c4f167
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions redis/commands/graph/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import warnings

from ..helpers import quote_string, random_string, stringify_param_value
from .commands import AsyncGraphCommands, GraphCommands
from .edge import Edge # noqa
Expand All @@ -18,6 +20,12 @@ def __init__(self, client, name=random_string()):
"""
Create a new graph.
"""
warnings.warn(
DeprecationWarning(
"RedisGraph support is deprecated as of Redis Stack 7.2 \
(https://redis.com/blog/redisgraph-eol/)"
)
)
self.NAME = name # Graph key
self.client = client
self.execute_command = client.execute_command
Expand Down

0 comments on commit 7c4f167

Please sign in to comment.