11** [ Requirements] ( #requirements ) ** |
22** [ Installation] ( #installation ) ** |
33** [ Usage] ( #usage ) ** |
4+ ** [ Authors] ( #authors ) ** |
45** [ License] ( #license ) **
56
67# php-lock/lock
@@ -198,10 +199,10 @@ The **MemcachedMutex** is a spinlock implementation which uses the
198199
199200Example:
200201``` php
201- $memcache = new \Memcached();
202- $memcache ->addServer('localhost', 11211);
202+ $memcached = new \Memcached();
203+ $memcached ->addServer('localhost', 11211);
203204
204- $mutex = new MemcachedMutex('balance', $memcache );
205+ $mutex = new MemcachedMutex('balance', $memcached );
205206$mutex->synchronized(function () use ($bankAccount, $amount) {
206207 $balance = $bankAccount->getBalance();
207208 $balance -= $amount;
@@ -263,7 +264,7 @@ $mutex->synchronized(function () use ($bankAccount, $amount) {
263264#### TransactionalMutex
264265
265266The ** TransactionalMutex**
266- delegates the serialization to the DBS . The exclusive code is executed within
267+ delegates the serialization to the database . The exclusive code is executed within
267268a transaction. It's up to you to set the correct transaction isolation level.
268269However if the transaction fails (i.e. a ` PDOException ` was thrown), the code
269270will be executed again in a new transaction. Therefore the code must not have
@@ -350,9 +351,9 @@ $mutex->synchronized(function () use ($bankAccount, $amount) {
350351
351352## Authors
352353
353- Since year 2015 the development was led by Markus Malkusch, Willem Stuursma-Ruwen, Michael Voříšek and many GitHub contributors.
354+ Since year 2015 the development was led by Markus Malkusch, Willem Stuursma-Ruwen and many GitHub contributors.
354355
355- Currently this library is maintained by Michael Voříšek - [ GitHub] [ https://github.com/mvorisek ] and [ LinkedIn] [ https://www.linkedin.com/mvorisek ] .
356+ Currently this library is maintained by Michael Voříšek - [ GitHub] ( https://github.com/mvorisek ) | [ LinkedIn] ( https://www.linkedin.com/mvorisek ) .
356357
357358Commercial support is available.
358359
@@ -364,10 +365,10 @@ This project is free and is licensed under the MIT.
364365[ 2 ] : https://github.com/nrk/predis
365366[ 3 ] : http://php.net/manual/en/book.pcntl.php
366367[ 4 ] : https://getcomposer.org/
367- [ 5 ] : https://github.com/php-lock/lock/blob/35526aee28 /src/mutex /Mutex.php#L15
368- [ 6 ] : https://github.com/php-lock/lock/blob/35526aee28 /src/mutex /Mutex.php#L38
369- [ 7 ] : https://github.com/php-lock/lock/blob/35526aee28 /src/mutex /Mutex.php#L60
370- [ 8 ] : https://github.com/php-lock/lock/blob/35526aee28 /src/util /DoubleCheckedLocking.php#L63
368+ [ 5 ] : https://github.com/php-lock/lock/blob/3ca295ccda /src/Mutex /Mutex.php#L15
369+ [ 6 ] : https://github.com/php-lock/lock/blob/3ca295ccda /src/Mutex /Mutex.php#L38
370+ [ 7 ] : https://github.com/php-lock/lock/blob/3ca295ccda /src/Mutex /Mutex.php#L60
371+ [ 8 ] : https://github.com/php-lock/lock/blob/3ca295ccda /src/Util /DoubleCheckedLocking.php#L61
371372[ 9 ] : https://en.wikipedia.org/wiki/Double-checked_locking
372- [ 10 ] : https://github.com/php-lock/lock/blob/35526aee28 /src/mutex/LockMutex .php
373- [ 11 ] : https://github.com/php-lock/lock/blob/35526aee28 /src/exception /LockReleaseException.php
373+ [ 10 ] : https://github.com/php-lock/lock/blob/3ca295ccda /src/Mutex/AbstractLockMutex .php
374+ [ 11 ] : https://github.com/php-lock/lock/blob/3ca295ccda /src/Exception /LockReleaseException.php
0 commit comments