Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Adding deprecation annotations for tf config commands
  • Loading branch information
petyaslavova committed Jan 29, 2025
commit e089751e943681569da7d8df409a0940b9146dc8
8 changes: 8 additions & 0 deletions redis/commands/search/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,10 @@ def dict_dump(self, name: str):
cmd = [DICT_DUMP_CMD, name]
return self.execute_command(*cmd)

@deprecated_function(
version="8.0.0",
reason="deprecated since Redis 8.0, call config_set from core module instead",
)
def config_set(self, option: str, value: str) -> bool:
"""Set runtime configuration option.

Expand All @@ -706,6 +710,10 @@ def config_set(self, option: str, value: str) -> bool:
raw = self.execute_command(*cmd)
return raw == "OK"

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

Expand Down
Loading