Skip to content

Commit 2d96ae0

Browse files
authored
[Lock] Remove note about sharing the key
1 parent b217159 commit 2d96ae0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

components/lock.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -486,12 +486,7 @@ Remote stores (:ref:`MemcachedStore <lock-store-memcached>`,
486486
:ref:`ZookeeperStore <lock-store-zookeeper>`) use a unique token to recognize
487487
the true owner of the lock. This token is stored in the
488488
:class:`Symfony\\Component\\Lock\\Key` object and is used internally by
489-
the ``Lock``, therefore this key must not be shared between processes (session,
490-
caching, fork, ...).
491-
492-
.. caution::
493-
494-
Do not share a key between processes.
489+
the ``Lock``.
495490

496491
Every concurrent process must store the ``Lock`` in the same server. Otherwise two
497492
different machines may allow two different processes to acquire the same ``Lock``.

0 commit comments

Comments
 (0)