Skip to content

Commit 480c198

Browse files
author
Joe Bennett
committed
#27345 removed support for mongodb <2.2
1 parent 33d6d15 commit 480c198

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
@@ -287,7 +287,7 @@ MongoDbStore
287287

288288
The ``MongoDbStore`` was introduced in Symfony 4.4.
289289

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

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

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

606606
.. code-block:: javascript
@@ -616,8 +616,8 @@ about `Expire Data from Collections by Setting TTL`_ in MongoDB.
616616

617617
.. tip::
618618

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

623623
.. caution::

0 commit comments

Comments
 (0)