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

Method pipeline

redis/client.py:569–579  ·  view source on GitHub ↗

Return a new pipeline object that can queue multiple commands for later execution. ``transaction`` indicates whether all commands should be executed atomically. Apart from making a group of operations atomic, pipelines are useful for reducing the back-and-forth overh

(self, transaction=True, shard_hint=None)

Source from the content-addressed store, hash-verified

567 setattr(self, funcname, func)
568
569 def pipeline(self, transaction=True, shard_hint=None) -> "Pipeline":
570 """
571 Return a new pipeline object that can queue multiple commands for
572 later execution. ``transaction`` indicates whether all commands
573 should be executed atomically. Apart from making a group of operations
574 atomic, pipelines are useful for reducing the back-and-forth overhead
575 between the client and server.
576 """
577 return Pipeline(
578 self.connection_pool, self.response_callbacks, transaction, shard_hint
579 )
580
581 def transaction(
582 self, func: Callable[["Pipeline"], None], *watches, **kwargs

Callers 15

transactionMethod · 0.95
trans_pipe.pyFile · 0.45
search_vss.pyFile · 0.45
query_geo.pyFile · 0.45
query_agg.pyFile · 0.45
query_em.pyFile · 0.45
query_ft.pyFile · 0.45
query_range.pyFile · 0.45
query_combined.pyFile · 0.45
test_pipeline_is_trueMethod · 0.45

Calls 1

PipelineClass · 0.70