@@ -233,7 +233,6 @@ support blocking, and expects a TTL to avoid stalled locks::
233233
234234 use Symfony\Component\Lock\Store\PdoStore;
235235
236-
237236 // a PDO, a Doctrine DBAL connection or DSN for lazy connecting through PDO
238237 $databaseConnectionOrDSN = 'mysql:host=127.0.0.1;dbname=lock';
239238 $store = new PdoStore($databaseConnectionOrDSN, ['db_username' => 'myuser', 'db_password' => 'mypassword']);
@@ -336,7 +335,7 @@ Remote Stores
336335
337336Remote stores (:ref: `MemcachedStore <lock-store-memcached >`,
338337: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
340339in the :class: `Symfony\\ Component\\ Lock\\ Key ` object and is used internally by
341340the ``Lock ``, therefore this key must not be shared between processes (session,
342341caching, fork, ...).
@@ -478,25 +477,25 @@ method uses the Memcached's ``flush()`` method which purges and removes everythi
478477PdoStore
479478~~~~~~~~~~
480479
481- The PdoStore rely on the `ACID `_ properties of the SQL engine.
480+ The PdoStore relies on the `ACID `_ properties of the SQL engine.
482481
483482.. caution ::
484483
485- In a cluster configured with multiple master , ensure writes are
484+ In a cluster configured with multiple primaries , ensure writes are
486485 synchronously propagated to every nodes, or always use the same node.
487486
488487.. caution ::
489488
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.
491490 Ensure that this is not the case ``SET unique_checks=1; ``.
492491
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
494493expiration date reference. This mechanism relies on all server nodes to
495- have synchronized clock .
494+ have synchronized clocks .
496495
497496.. caution ::
498497
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
500499 enough extra time to account for any clock drift between nodes.
501500
502501RedisStore
0 commit comments