MCPcopy
hub / github.com/redis/redis-py / config_get

Method config_get

redis/commands/search/commands.py:1546–1557  ·  view source on GitHub ↗

Get runtime configuration option value. ### Parameters - **option**: the name of the configuration option. For more information see `FT.CONFIG GET <https://redis.io/commands/ft.config-get>`_.

(self, option: str)

Source from the content-addressed store, hash-verified

1544 reason="deprecated since Redis 8.0, call config_get from core module instead",
1545 )
1546 def config_get(self, option: str) -> str:
1547 """Get runtime configuration option value.
1548
1549 ### Parameters
1550
1551 - **option**: the name of the configuration option.
1552
1553 For more information see `FT.CONFIG GET <https://redis.io/commands/ft.config-get>`_.
1554 """ # noqa
1555 cmd = [CONFIG_CMD, "GET", option]
1556 res = self.execute_command(*cmd)
1557 return self._parse_results(CONFIG_CMD, res)
1558
1559 def tagvals(self, tagfield: str):
1560 """

Callers

nothing calls this directly

Calls 2

_parse_resultsMethod · 0.95
execute_commandMethod · 0.45

Tested by

no test coverage detected