Skip to content

Commit 5f7b165

Browse files
author
Joe Bennett
committed
#27345 removed support for mongodb <2.2
1 parent dd48f1c commit 5f7b165

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/lock.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ MongoDbStore
285285

286286
The ``MongoDbStore`` was introduced in Symfony 4.4.
287287

288-
The MongoDbStore saves locks on a MongoDB server, it requires a
288+
The MongoDbStore saves locks on a MongoDB server ``^2.2``, it requires a
289289
``\MongoDB\Client`` connection from `mongodb/mongodb`_. This store does not
290290
support blocking and expects a TTL to avoid stalled locks::
291291

@@ -598,7 +598,7 @@ MongoDbStore
598598
collection. Beware that in MongoDB an indexed field's value can be
599599
`a maximum of 1024 bytes in length`_ inclusive of structural overhead.
600600

601-
A TTL index MUST BE used on MongoDB 2.2+ to automatically clean up expired locks.
601+
A TTL index MUST BE used to automatically clean up expired locks.
602602
Such an index can be created manually:
603603

604604
.. code-block:: javascript
@@ -614,8 +614,8 @@ about `Expire Data from Collections by Setting TTL`_ in MongoDB.
614614

615615
.. tip::
616616

617-
``MongoDbStore`` will attempt to automatically create a TTL index on MongoDB
618-
2.2+. It's recommended to set constructor option ``gcProbablity = 0.0`` to
617+
``MongoDbStore`` will attempt to automatically create a TTL index.
618+
It's recommended to set constructor option ``gcProbablity = 0.0`` to
619619
disable this behavior if you have manually dealt with TTL index creation.
620620

621621
.. caution::

0 commit comments

Comments
 (0)