Skip to content

Commit

Permalink
md -> rst
Browse files Browse the repository at this point in the history
  • Loading branch information
kentslaney committed Feb 7, 2024
1 parent 399e4e6 commit 728ddca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ still some unsolved bugs.
Is libmc thread-safe ?
^^^^^^^^^^^^^^^^^^^^^^

Yes. `libmc.ThreadedClient` is a thread-safe client implementation. To hold
access for more than one request, `libmc.ClientPool` can be used with Python
`with` statements. `libmc.Client`, however, is a single-threaded memcached
Yes. ``libmc.ThreadedClient`` is a thread-safe client implementation. To hold
access for more than one request, ``libmc.ClientPool`` can be used with Python
``with`` statements. ``libmc.Client``, however, is a single-threaded memcached
client. If you initialize a standard client in one thread but reuse that in
another thread, a Python ``ThreadUnsafe`` Exception will be raised.

Expand All @@ -171,13 +171,13 @@ Is libmc compatible with gevent?

Yes, with the help of `greenify <https://github.com/douban/greenify>`__,
libmc is friendly to gevent. Read ``tests/shabby/gevent_issue.py`` for
details. `libmc.ThreadedClient` and `libmc.ClientPool` are not currently
details. ``libmc.ThreadedClient`` and ``libmc.ClientPool`` are not currently
compatible.

**Notice:**

`gevent.monkey.patch_all()` will override
`threading.current_thread().ident` to Greenlet's ID,
``gevent.monkey.patch_all()`` will override
``threading.current_thread().ident`` to Greenlet's ID,
this will cause libmc to throw a ThreadUnSafe error
or run into dead lock, you should only patch the things
that you need, e.g.
Expand Down

0 comments on commit 728ddca

Please sign in to comment.