File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,11 @@ to acquire the lock in a blocking mode::
237
237
$lock = $factory->createLock('user'.$user->id);
238
238
$lock->acquireRead(true);
239
239
240
+ .. note ::
241
+
242
+ The `priority policy `_ of Symfony's shared locks depends on the underlying
243
+ store (e.g. Redis store prioritizes readers vs writers).
244
+
240
245
When a read-only lock is acquired with the method ``acquireRead() ``, it's
241
246
possible to **promote ** the lock, and change it to write lock, by calling the
242
247
``acquire() `` method::
@@ -915,3 +920,4 @@ are still running.
915
920
.. _`Replica Set Read and Write Semantics` : https://docs.mongodb.com/manual/applications/replication/
916
921
.. _`ZooKeeper` : https://zookeeper.apache.org/
917
922
.. _`readers–writer lock` : https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock
923
+ .. _`priority policy` : https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Priority_policies
You can’t perform that action at this time.
0 commit comments