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

Method _append_labels

redis/commands/timeseries/commands.py:1483–1488  ·  view source on GitHub ↗

Append LABELS property to params.

(params: list[EncodableT], labels: dict[str, str] | None)

Source from the content-addressed store, hash-verified

1481
1482 @staticmethod
1483 def _append_labels(params: list[EncodableT], labels: dict[str, str] | None):
1484 """Append LABELS property to params."""
1485 if labels:
1486 params.append("LABELS")
1487 for k, v in labels.items():
1488 params.extend([k, v])
1489
1490 @staticmethod
1491 def _append_count(params: list[EncodableT], count: int | None):

Callers 5

createMethod · 0.95
alterMethod · 0.95
addMethod · 0.95
incrbyMethod · 0.95
decrbyMethod · 0.95

Calls 2

appendMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected