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

Method add

redis/commands/timeseries/commands.py:231–244  ·  view source on GitHub ↗
(
        self: SyncClientProtocol,
        key: KeyT,
        timestamp: int | str,
        value: Number | str,
        retention_msecs: int | None = None,
        uncompressed: bool | None = False,
        labels: Dict[str, str] | None = None,
        chunk_size: int | None = None,
        duplicate_policy: str | None = None,
        ignore_max_time_diff: int | None = None,
        ignore_max_val_diff: Number | None = None,
        on_duplicate: str | None = None,
    )

Source from the content-addressed store, hash-verified

229
230 @overload
231 def add(
232 self: SyncClientProtocol,
233 key: KeyT,
234 timestamp: int | str,
235 value: Number | str,
236 retention_msecs: int | None = None,
237 uncompressed: bool | None = False,
238 labels: Dict[str, str] | None = None,
239 chunk_size: int | None = None,
240 duplicate_policy: str | None = None,
241 ignore_max_time_diff: int | None = None,
242 ignore_max_val_diff: Number | None = None,
243 on_duplicate: str | None = None,
244 ) -> int: ...
245
246 @overload
247 def add(

Callers

nothing calls this directly

Calls 8

_append_retentionMethod · 0.95
_append_uncompressedMethod · 0.95
_append_chunk_sizeMethod · 0.95
_append_labelsMethod · 0.95
_append_on_duplicateMethod · 0.95
execute_commandMethod · 0.45

Tested by

no test coverage detected