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

Method info

redis/commands/search/commands.py:1210–1219  ·  view source on GitHub ↗

Get info an stats about the the current index, including the number of documents, memory consumption, etc For more information see `FT.INFO <https://redis.io/commands/ft.info>`_.

(self)

Source from the content-addressed store, hash-verified

1208 return self.execute_command(MGET_CMD, self.index_name, *ids)
1209
1210 def info(self):
1211 """
1212 Get info an stats about the the current index, including the number of
1213 documents, memory consumption, etc
1214
1215 For more information see `FT.INFO <https://redis.io/commands/ft.info>`_.
1216 """
1217
1218 res = self.execute_command(INFO_CMD, self.index_name)
1219 return self._parse_results(INFO_CMD, res)
1220
1221 def get_params_args(
1222 self, query_params: Optional[Dict[str, Union[str, int, float, bytes]]]

Callers

nothing calls this directly

Calls 2

_parse_resultsMethod · 0.95
execute_commandMethod · 0.45

Tested by

no test coverage detected