Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6ae4eeb

Browse files
committed
Rename quorum into strategy
1 parentd4326c0 commit6ae4eeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎components/lock.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Locks are used to guarantee exclusive access to some shared resource. In
2828
Symfony applications, you can use locks for example to ensure that a command is
2929
not executed more than once at the same time (on the same or different servers).
3030

31-
In order to manage the state of locks,you first need to createa ``Store``
31+
In order to manage the state of locks, a ``Store`` needs to be created first
3232
and then use the:class:`Symfony\\Component\\Lock\\Factory` class to actually
3333
create the lock for some resource::
3434

@@ -235,7 +235,7 @@ is being acquired, it forwards the call to all the managed stores, and it
235235
collects their responses. If a simple majority of stores have acquired the lock,
236236
then the lock is considered as acquired; otherwise as not acquired::
237237

238-
use Symfony\Component\Lock\Quorum\ConsensusStrategy;
238+
use Symfony\Component\Lock\Strategy\ConsensusStrategy;
239239
use Symfony\Component\Lock\Store\CombinedStore;
240240
use Symfony\Component\Lock\Store\RedisStore;
241241

@@ -251,7 +251,7 @@ then the lock is considered as acquired; otherwise as not acquired::
251251

252252
Instead of the simple majority strategy (``ConsensusStrategy``) an
253253
``UnanimousStrategy`` can be used to require the lock to be acquired in all
254-
he stores.
254+
the stores.
255255

256256
.. _`locks`:https://en.wikipedia.org/wiki/Lock_(computer_science)
257257
.. _Packagist:https://packagist.org/packages/symfony/lock

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp