Skip to content

Commit 2a7923b

Browse files
committed
Add verisonAdded
1 parent 112db87 commit 2a7923b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

components/lock.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ PHP process is terminated::
196196

197197
Beware that some file systems (such as some types of NFS) do not support
198198
locking. In those cases, it's better to use a directory on a local disk
199-
drive or a remote store based on Pdo, Redis or Memcached.
199+
drive or a remote store based on PDO, Redis or Memcached.
200200

201201
.. _lock-store-memcached:
202202

@@ -223,6 +223,9 @@ support blocking, and expects a TTL to avoid stalled locks::
223223
PdoStore
224224
~~~~~~~~
225225

226+
.. versionadded:: 4.2
227+
The PdoStore was introduced Symfony 4.2.
228+
226229

227230
The PdoStore saves locks in an SQL database, it requires a `PDO`_,
228231
`Doctrine DBAL Connection`_, or `Data Source Name (DSN)`_. This store does not
@@ -475,21 +478,21 @@ method uses the Memcached's ``flush()`` method which purges and removes everythi
475478
PdoStore
476479
~~~~~~~~~~
477480

478-
Pdo stores rely on the `ACID`_ properties of the SQL engine.
481+
The PdoStore rely on the `ACID`_ properties of the SQL engine.
479482

480483
.. caution::
481484

482485
In a cluster configured with multiple master, ensure writes are
483-
synchronously propaged to every nodes, or always use the same node.
486+
synchronously propagated to every nodes, or always use the same node.
484487

485488
.. caution::
486489

487490
Some SQL engine like MySQL allows to disable unique constraint check.
488491
Ensure that this is not the case ``SET unique_checks=1;``.
489492

490493
In order to purge old lock, this store use a current datetime to define a
491-
expiration date reference. This mechanism relies on all client and server nodes
492-
to have synchronized clock.
494+
expiration date reference. This mechanism relies on all server nodes to
495+
have synchronized clock.
493496

494497
.. caution::
495498

0 commit comments

Comments
 (0)