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

Method _append_retention

redis/commands/timeseries/commands.py:1477–1480  ·  view source on GitHub ↗

Append RETENTION property to params.

(params: list[EncodableT], retention: int | None)

Source from the content-addressed store, hash-verified

1475
1476 @staticmethod
1477 def _append_retention(params: list[EncodableT], retention: int | None):
1478 """Append RETENTION property to params."""
1479 if retention is not None:
1480 params.extend(["RETENTION", retention])
1481
1482 @staticmethod
1483 def _append_labels(params: list[EncodableT], labels: dict[str, str] | None):

Callers 5

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

Calls 1

extendMethod · 0.45

Tested by

no test coverage detected