(
self, query_params: Optional[Dict[str, Union[str, int, float, bytes]]]
)
| 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]]] |
no test coverage detected