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

Method xadd

redis/commands/core.py:6724–6737  ·  view source on GitHub ↗
(
        self: SyncClientProtocol,
        name: KeyT,
        fields: Dict[FieldT, EncodableT],
        id: StreamIdT = "*",
        maxlen: int | None = None,
        approximate: bool = True,
        nomkstream: bool = False,
        minid: StreamIdT | None = None,
        limit: int | None = None,
        ref_policy: Literal["KEEPREF", "DELREF", "ACKED"] | None = None,
        idmpauto: str | None = None,
        idmp: tuple[str, bytes] | None = None,
    )

Source from the content-addressed store, hash-verified

6722
6723 @overload
6724 def xadd(
6725 self: SyncClientProtocol,
6726 name: KeyT,
6727 fields: Dict[FieldT, EncodableT],
6728 id: StreamIdT = "*",
6729 maxlen: int | None = None,
6730 approximate: bool = True,
6731 nomkstream: bool = False,
6732 minid: StreamIdT | None = None,
6733 limit: int | None = None,
6734 ref_policy: Literal["KEEPREF", "DELREF", "ACKED"] | None = None,
6735 idmpauto: str | None = None,
6736 idmp: tuple[str, bytes] | None = None,
6737 ) -> bytes | str: ...
6738
6739 @overload
6740 def xadd(

Callers 15

dt_stream.pyFile · 0.80
test_xackMethod · 0.80
test_xaddMethod · 0.80
test_xadd_nomkstreamMethod · 0.80
test_xadd_explicit_msMethod · 0.80
test_xautoclaimMethod · 0.80
test_xclaimMethod · 0.80
test_xclaim_trimmedMethod · 0.80
test_xdelMethod · 0.80
test_xgroup_createMethod · 0.80

Calls 4

DataErrorClass · 0.90
appendMethod · 0.45
extendMethod · 0.45
execute_commandMethod · 0.45

Tested by 15

test_xackMethod · 0.64
test_xaddMethod · 0.64
test_xadd_nomkstreamMethod · 0.64
test_xadd_explicit_msMethod · 0.64
test_xautoclaimMethod · 0.64
test_xclaimMethod · 0.64
test_xclaim_trimmedMethod · 0.64
test_xdelMethod · 0.64
test_xgroup_createMethod · 0.64