diff options
author | Hervé Beraud <hberaud@redhat.com> | 2021-06-16 17:56:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 08:56:00 -0700 |
commit | 7e243214c71661018ede3b927d11ef9172f84c4e (patch) | |
tree | 23d93b863f271a561810e07995a44e383d8c76ba | |
parent | dacfa9f06377ea1f2578fafde325417e8dcd0459 (diff) | |
download | pymemcache-7e243214c71661018ede3b927d11ef9172f84c4e.tar.gz |
Fix doc rendering (#323)
-rw-r--r-- | docs/getting_started.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/getting_started.rst b/docs/getting_started.rst index 51d675c..1b96e7e 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -185,6 +185,7 @@ comes with it's own virtual environments. It will automatically install pymemcache and fetch all the needed requirements at run. See the example below: .. code-block:: shell + $ podman run --publish 11211:11211 -it --rm --name memcached memcached $ tox -e venv -- python >>> from pymemcache.client.base import Client @@ -210,11 +211,13 @@ is abruptly closed. Below is an by example. Starting your server: .. code-block:: shell + $ podman run --publish 11211:11211 -it --name memcached memcached Starting your client and set some keys: .. code-block:: shell + $ tox -e venv -- python >>> from pymemcache.client.base import Client >>> client = Client('127.0.0.1') @@ -224,11 +227,13 @@ Starting your client and set some keys: Restarting the server: .. code-block:: shell + $ podman restart memcached The previous client is still opened, now try to retrieve some keys: .. code-block:: shell + >>> print(client.get('some_key')) Traceback (most recent call last): File "<stdin>", line 1, in <module> @@ -246,6 +251,7 @@ You can also pass a command directly from CLI parameters and get output directly: .. code-block:: shell + $ tox -e venv -- python -c "from pymemcache.client.base import Client; client = Client('127.0.01'); print(client.get('some_key'))" b'some_value' |