Skip to content

Commit e089751

Browse files
committed
Adding deprecation annotations for tf config commands
1 parent d92ad3a commit e089751

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

redis/commands/search/commands.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,10 @@ def dict_dump(self, name: str):
692692
cmd = [DICT_DUMP_CMD, name]
693693
return self.execute_command(*cmd)
694694

695+
@deprecated_function(
696+
version="8.0.0",
697+
reason="deprecated since Redis 8.0, call config_set from core module instead",
698+
)
695699
def config_set(self, option: str, value: str) -> bool:
696700
"""Set runtime configuration option.
697701
@@ -706,6 +710,10 @@ def config_set(self, option: str, value: str) -> bool:
706710
raw = self.execute_command(*cmd)
707711
return raw == "OK"
708712

713+
@deprecated_function(
714+
version="8.0.0",
715+
reason="deprecated since Redis 8.0, call config_get from core module instead",
716+
)
709717
def config_get(self, option: str) -> str:
710718
"""Get runtime configuration option value.
711719

0 commit comments

Comments
 (0)