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

Method get_params_args

redis/commands/search/commands.py:1221–1233  ·  view source on GitHub ↗
(
        self, query_params: Optional[Dict[str, Union[str, int, float, bytes]]]
    )

Source from the content-addressed store, hash-verified

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]]]
1223 ):
1224 if query_params is None:
1225 return []
1226 args = []
1227 if len(query_params) > 0:
1228 args.append("PARAMS")
1229 args.append(len(query_params) * 2)
1230 for key, value in query_params.items():
1231 args.append(key)
1232 args.append(value)
1233 return args
1234
1235 def _mk_query_args(
1236 self, query, query_params: Optional[Dict[str, Union[str, int, float, bytes]]]

Callers 6

_mk_query_argsMethod · 0.95
hybrid_searchMethod · 0.95
aggregateMethod · 0.95
profileMethod · 0.95
hybrid_searchMethod · 0.80
aggregateMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected