Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/source/pipelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ number of back-and-forth TCP packets between the client and server.

Pipelines are quite simple to use:


.. code-block:: python

async with await client.pipeline() as pipe:
await pipe.delete('bar')
await pipe.set('bar', 'foo')
await pipe.execute() # needs to be called explicitly


Here are more examples:


.. code-block:: python

>>> async def example(client):
Expand Down Expand Up @@ -114,4 +126,4 @@ which is much easier to read:
... await pipe.set('OUR-SEQUENCE-KEY', next_value)
>>>
>>> await r.transaction(client_side_incr, 'OUR-SEQUENCE-KEY')
[True]
[True]