8000 [Lock] Remove note about sharing the key by lyrixx · Pull Request #15382 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Lock] Remove note about sharing the key #15382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions components/lock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -486,12 +486,7 @@ Remote stores (:ref:`MemcachedStore <lock-store-memcached>`,
:ref:`ZookeeperStore <lock-store-zookeeper>`) use a unique token to recognize
the true owner of the lock. This token is stored in the
:class:`Symfony\\Component\\Lock\\Key` object and is used internally by
the ``Lock``, therefore this key must not be shared between processes (session,
caching, fork, ...).

.. caution::

Do not share a key between processes.
the ``Lock``.

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