Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
shaypal5 authored Oct 20, 2020
1 parent cae343f commit 4e1999d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ You can set a MongoDB-based cache by assigning ``mongetter`` with a callable tha
This allows you to have a cross-machine, albeit slower, cache. This functionality requires that the installation of the ``pymongo`` python package.

In certain cases the MongoDB backend might leave a deadlock behind, blocking all subsequent requests from being processed. If you encounter this issue, supply the ``wait_for_calc_timeout`` with a reasonable number of seconds; calls will then wait at most this number of seconds before triggering a recalculation.

.. code-block:: python
@cachier(mongetter=False, wait_for_calc_timeout=2)
Contributing
============
Expand Down

0 comments on commit 4e1999d

Please sign in to comment.