@@ -233,7 +233,6 @@ support blocking, and expects a TTL to avoid stalled locks::
233
233
234
234
use Symfony\Component\Lock\Store\PdoStore;
235
235
236
-
237
236
// a PDO, a Doctrine DBAL connection or DSN for lazy connecting through PDO
238
237
$databaseConnectionOrDSN = 'mysql:host=127.0.0.1;dbname=lock';
239
238
$store = new PdoStore($databaseConnectionOrDSN, ['db_username' => 'myuser', 'db_password' => 'mypassword']);
@@ -336,7 +335,7 @@ Remote Stores
336
335
337
336
Remote stores (:ref: `MemcachedStore <lock-store-memcached >`,
338
337
:ref: `PdoStore <lock-store-pdo >` and :ref: `RedisStore <lock-store-redis >`) use
339
- an unique token to recognize the true owner of the lock. This token is stored
338
+ a unique token to recognize the true owner of the lock. This token is stored
340
339
in the :class: `Symfony\\ Component\\ Lock\\ Key ` object and is used internally by
341
340
the ``Lock ``, therefore this key must not be shared between processes (session,
342
341
caching, fork, ...).
@@ -478,25 +477,25 @@ method uses the Memcached's ``flush()`` method which purges and removes everythi
478
477
PdoStore
479
478
~~~~~~~~~~
480
479
481
- The PdoStore rely on the `ACID `_ properties of the SQL engine.
480
+ The PdoStore relies on the `ACID `_ properties of the SQL engine.
482
481
483
482
.. caution ::
484
483
485
- In a cluster configured with multiple master , ensure writes are
484
+ In a cluster configured with multiple primaries , ensure writes are
486
485
synchronously propagated to every nodes, or always use the same node.
487
486
488
487
.. caution ::
489
488
490
- Some SQL engine like MySQL allows to disable unique constraint check.
489
+ Some SQL engines like MySQL allow to disable the unique constraint check.
491
490
Ensure that this is not the case ``SET unique_checks=1; ``.
492
491
493
- In order to purge old lock , this store use a current datetime to define a
492
+ In order to purge old locks , this store uses a current datetime to define an
494
493
expiration date reference. This mechanism relies on all server nodes to
495
- have synchronized clock .
494
+ have synchronized clocks .
496
495
497
496
.. caution ::
498
497
499
- To ensure locks don't expire prematurely; the ttl's should be set with
498
+ To ensure locks don't expire prematurely; the TTLs should be set with
500
499
enough extra time to account for any clock drift between nodes.
501
500
502
501
RedisStore
0 commit comments