Skip to content

Commit 6b49f2d

Browse files
author
Joe Bennett
committed
#27345 Added note about MongoDbStore's dependancy on mongodb/mongodb
1 parent 8de0db2 commit 6b49f2d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/lock.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ support blocking, and expects a TTL to avoid stalled locks::
223223
MongoDbStore
224224
~~~~~~~~~~~~
225225

226-
The MongoDbStore saves locks on a MongoDB server, it requires a ``\MongoDB\Client`` connection.
226+
The MongoDbStore saves locks on a MongoDB server, it requires a ``\MongoDB\Client``
227+
connection from `mongodb/mongodb`_.
227228
This store does not support blocking, and expects a TTL to avoid stalled locks::
228229

229230
use Symfony\Component\Lock\Store\MongoDbStore;
@@ -473,10 +474,8 @@ this is ``_id`` which already has a unique index being the collection identifier
473474
It is strongly recommended to leave this as is. If you do need to change the
474475
``<resource_field>`` you **MUST** ensure you place a unique index on your filed.
475476

476-
It's possible to automatically expire the locks in the database as described below:
477-
478-
A TTL index can be used on MongoDB 2.2+ to cleanup expired locks
479-
automatically. Such an index can for example look like this:
477+
A TTL index can be used on MongoDB 2.2+ to cleanup expired locks automatically.
478+
Such an index can for example look like this:
480479

481480
.. code-block:: javascript
482481
@@ -560,3 +559,4 @@ are still running.
560559
.. _`locks`: https://en.wikipedia.org/wiki/Lock_(computer_science)
561560
.. _Packagist: https://packagist.org/packages/symfony/lock
562561
.. _`PHP semaphore functions`: http://php.net/manual/en/book.sem.php
562+
.. _`mongodb/mongodb`: https://packagist.org/packages/mongodb/mongodb

0 commit comments

Comments
 (0)