@@ -223,7 +223,8 @@ support blocking, and expects a TTL to avoid stalled locks::
223
223
MongoDbStore
224
224
~~~~~~~~~~~~
225
225
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 `_.
227
228
This store does not support blocking, and expects a TTL to avoid stalled locks::
228
229
229
230
use Symfony\Component\Lock\Store\MongoDbStore;
@@ -473,10 +474,8 @@ this is ``_id`` which already has a unique index being the collection identifier
473
474
It is strongly recommended to leave this as is. If you do need to change the
474
475
``<resource_field> `` you **MUST ** ensure you place a unique index on your filed.
475
476
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:
480
479
481
480
.. code-block :: javascript
482
481
@@ -560,3 +559,4 @@ are still running.
560
559
.. _`locks` : https://en.wikipedia.org/wiki/Lock_(computer_science)
561
560
.. _Packagist : https://packagist.org/packages/symfony/lock
562
561
.. _`PHP semaphore functions` : http://php.net/manual/en/book.sem.php
562
+ .. _`mongodb/mongodb` : https://packagist.org/packages/mongodb/mongodb
0 commit comments