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

Method xtrim

redis/commands/core.py:7859–7867  ·  view source on GitHub ↗
(
        self: SyncClientProtocol,
        name: KeyT,
        maxlen: int | None = None,
        approximate: bool = True,
        minid: StreamIdT | None = None,
        limit: int | None = None,
        ref_policy: Literal["KEEPREF", "DELREF", "ACKED"] | None = None,
    )

Source from the content-addressed store, hash-verified

7857
7858 @overload
7859 def xtrim(
7860 self: SyncClientProtocol,
7861 name: KeyT,
7862 maxlen: int | None = None,
7863 approximate: bool = True,
7864 minid: StreamIdT | None = None,
7865 limit: int | None = None,
7866 ref_policy: Literal["KEEPREF", "DELREF", "ACKED"] | None = None,
7867 ) -> int: ...
7868
7869 @overload
7870 def xtrim(

Callers 10

dt_stream.pyFile · 0.80
test_xinfo_streamMethod · 0.80
test_xreadgroupMethod · 0.80
test_xtrimMethod · 0.80
test_xinfo_streamMethod · 0.80
test_xreadgroupMethod · 0.80
test_xtrimMethod · 0.80

Calls 3

DataErrorClass · 0.90
appendMethod · 0.45
execute_commandMethod · 0.45

Tested by 9

test_xinfo_streamMethod · 0.64
test_xreadgroupMethod · 0.64
test_xtrimMethod · 0.64
test_xinfo_streamMethod · 0.64
test_xreadgroupMethod · 0.64
test_xtrimMethod · 0.64