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

Method pipeline

redis/commands/search/__init__.py:102–113  ·  view source on GitHub ↗

Creates a pipeline for the SEARCH module, that can be used for executing SEARCH commands, as well as classic core commands.

(self, transaction=True, shard_hint=None)

Source from the content-addressed store, hash-verified

100 self._init_module_callbacks()
101
102 def pipeline(self, transaction=True, shard_hint=None):
103 """Creates a pipeline for the SEARCH module, that can be used for executing
104 SEARCH commands, as well as classic core commands.
105 """
106 p = Pipeline(
107 connection_pool=self.client.connection_pool,
108 response_callbacks=self.client.response_callbacks,
109 transaction=transaction,
110 shard_hint=shard_hint,
111 )
112 p.index_name = self.index_name
113 return p
114
115
116class AsyncSearch(Search, AsyncSearchCommands):

Callers 5

sugaddMethod · 0.45
sugaddMethod · 0.45
__init__Method · 0.45

Calls 1

PipelineClass · 0.70

Tested by

no test coverage detected